Skip to content

DeprecationWarning for punycode module #2649

@tleonhardt

Description

@tleonhardt

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

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

When using the latest version@google-cloud/storage@7.17.1, 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?

I originally reported this issue for the gemini-cli which has a dependency on this library: google-gemini/gemini-cli#8405

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

google-gemini/gemini-cli#8405

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

  1. Launch any application with a dependency on the latest version of this library in a terminal such as just running gemini-cli --version
  2. 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. **

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

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/nodejs-storage API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions