-
Notifications
You must be signed in to change notification settings - Fork 2
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
DeprecationWarning: The punycode
module is deprecated
#459
Comments
This issue is not caused specifically by Zimic, but by Related issues:
For now, Zimic could dynamically import For a complete fix, we have to wait for Redocly/redocly-cli#1332 and a transitive upgrade in |
Dynamic import implemented in #460. I'm marking this as blocked by Redocly/redocly-cli#1332 for the full fix. |
### Fixes - [#zimic] Changed the `openapi-typescript` import to be dynamic, reducing the [`punycode` deprecated warning](#459) to `zimic typegen openapi` commands. ### Refactoring - [#zimic, zimic-test-client] Abstracted dynamic import singletons to a utility `createDynamicImportSingleton`. Part of #459.
Prerequisites
Operating system
Ubuntu 22.04
Runtime
Node.js
Runtime version
22.11.0
Zimic version
0.9.3
Reproduction repository
https://github.com/diego-aquino/zimic-punycode-deprecated
Reproduction steps
pnpm install
NODE_OPTIONS=--trace-deprecation pnpm typegen:github
Current behavior
Even though the command executes successfully, a warning about
punycode
being deprecated is shown:Expected behavior
No deprecation warnings.
The text was updated successfully, but these errors were encountered: