-
Notifications
You must be signed in to change notification settings - Fork 433
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 Deprecated Error, a Future Major Version of Node.js the Module Will Be Removed #1018
Comments
As far as I can tell, this is due to gaxios, one of clasp's dependencies. Luckily, there's a pull request in the works and it looks like it could be merging soon! 🎉 |
The pull request have been merged, but the deprecation error still persists. Am I missing something? |
@m3n94 I'm not positive what all needs to happen, but afaik we have to wait for that version of gaxios to get released (it's currently v6.7.1, and this change is going to be included in the upcoming v7.0.0). Then that change has to trickle through the various packages that clasp is dependent on (directly or indirectly). For those that understand npm and versioning better, please jump in and clarify where I may be off. |
@andyconlin I believe you are correct, PR #657 of gaxios does show that we are waiting for the v7.0.0 to release. I am not entirely aware of what is using gaxios in clasp. It could either be a clasp dependency or a nested dependency for something else in clasp's other dependencies. We would need those to also use v7.0.0 as well if it does include a fix for punycode's deprecation. However, are we confident v7.0.0 includes the punycode fix as issue #640 says it is closed as a not planned issue. I did a quick scan of the v7.0.0 release notes and saw no relevant references to it. The |
@mattjmoran It looks like clasp v2.4.2 doesn't have a direct dependency on gaxios, but the dependency is there via google-auth-library (possibly others). However, the current (unreleased/unversioned?) package.json for clasp does list gaxios as a dependency. Like you said, we might be waiting for gaxios v7.0.0 to trickle through updates on several other packages. Iirc, gaxios v7.0.0 fixes the punycode error because of something to do with dropping support for older versions of node where punycode was. It doesn't directly address punycode, but the fix is a side effect of other changes they made. ...I think This is all coming from my attempts to understand these systems, so I could be totally off 😆 |
Expected Behavior
Should not receive a punycode deprecation warning for running
clasp push
or otherclasp
commands that rely on punycode.Actual Behavior
When running
clasp push
or otherclasp
commands that rely on punycode, the following deprecation error occurs:This issue can be resolved by using the userland-provided
Punycode.js
instead, per the Node.js v22.9.0 documentation. Steps to resolve the issue are detailed in the provided documentation.Steps to Reproduce the Problem
clasp push
or otherclasp
commands that rely on punycodeSpecifications
node -v
): 22.9.0clasp -v
): 2.4.2The text was updated successfully, but these errors were encountered: