Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Punycode deprecation error in Node 21 and later #2267

Open
NGPixel opened this issue Dec 20, 2024 · 0 comments
Open

Punycode deprecation error in Node 21 and later #2267

NGPixel opened this issue Dec 20, 2024 · 0 comments

Comments

@NGPixel
Copy link

NGPixel commented Dec 20, 2024

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant