Skip to content

punycode module is deprecated #135

Open
@HereIsKevin

Description

@HereIsKevin

What version of pkg are you using?

6.2.0

What version of Node.js are you using?

22.9.0

What operating system are you using?

macOS

What CPU architecture are you using?

x86_64

What Node versions, OSs and CPU architectures are you building for?

default

Describe the Bug

@yao-pkg/pkg uses the deprecated punycode module, causing the following warning to appear every time the command is invoked:

(node:3363) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

The punycode module should be replaced with the punycode package on npm.

Expected Behavior

No warning about the deprecated punycode module.

To Reproduce

Run npx -p @yao-pkg/pkg pkg --help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions