-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update @whatwg-node/fetch to avoid punycode deprecation warning in Node #9955
Comments
Have you tried to update your lockfile? |
This issue doesn't have anything to do with the lockfile. Very simple reproduction steps:
The punycode warning appears immediately: npx graphql-code-generator init
(node:2916) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created) This same warning appears when running |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
It looks like this package is using an old version of @whatwg-node/fetch. After upgrading to Node v22.0.0, I see warnings about punycode being deprecated. The source is graphql-codegen.
Describe the solution you'd like
Upgrade @whatwg-node/fetch to the latest version.
Describe alternatives you've considered
No response
Is your feature request related to a problem? Please describe.
punycode is deprecated but used by old versions of @whatwg-node/fetch.
The text was updated successfully, but these errors were encountered: