nodejs-storage icon indicating copy to clipboard operation
nodejs-storage copied to clipboard

DeprecationWarning for punycode module

Open agmsb opened this issue 3 months ago • 1 comments

Please make sure you have searched for information in the following guides.

  • [x] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
  • [x] Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
  • [x] Check our Troubleshooting guide: https://github.com/googleapis/google-cloud-node/blob/main/docs/troubleshooting.md
  • [x] Check our FAQ: https://github.com/googleapis/google-cloud-node/blob/main/docs/faq.md
  • [x] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
  • [x] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
  • [x] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples

A screenshot that you have tested with "Try this API".

When using the latest version@google-cloud/[email protected], a runtime warning appears:

(node:99526) [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 fundamental problem is that google-cloud/storage latest version is pinned to gaxios 6.x which has a dependency on punycode.

gaxios 7.x does not have a dependency on punycode anymore.

Would it be possible to migrate to gaxios 7.x to eliminate this dependency?

Users have reported this in the gemini-cli repository, which has a dependency on this library: https://github.com/google-gemini/gemini-cli/issues/8405

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

https://github.com/google-gemini/gemini-cli

A step-by-step description of how to reproduce the issue, based on the linked reproduction.

Launch any application with a dependency on the latest version of this library in a terminal such as just running gemini-cli --version

A red DeprecationWarning appears on the screen about the punycode module being deprecated

A clear and concise description of what the bug is, and what you expected to happen.

Latest version of googleapis/nodejs-storage dependes on gaxios 6.x. This bug has been fixed in gaxios 7.x.

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

We expect the latest version to not have any deprecation warnings.

agmsb avatar Sep 17 '25 18:09 agmsb