Skip to content

Punycode deprecation error in Node 21 and later #2267

@NGPixel

Description

@NGPixel

In Node 21.x and later, using this library produces a deprecation warning because of your use of "punycode", via the node-fetch library.

Since you list Node 18.x as the oldest supported version of this library, you shouldn't be using node-fetch at all. Native fetch was added in 18.x.

Please remove the node-fetch dependency from this library and use fetch() directly instead.


In the meantime, users affected by this issue can add an override to their package.json as a workaround:

"overrides": {
  "whatwg-url": "^14.0.0"
}

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