You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though the command executes successfully, a warning about punycode being deprecated is shown:
$ NODE_OPTIONS=--trace-deprecation pnpm typegen:github
(node:23082) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
at loadBuiltinModule (node:internal/modules/helpers:114:7)
at Function._load (node:internal/modules/cjs/loader:1100:17)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:141:16)
at Object.<anonymous> (/home/diegoaquino/www/zimic-punycode-deprecated/node_modules/.pnpm/[email protected]/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
[zimic] ✔ Generated ./src/types/github/typegen/generated.ts (3.06s)
Expected behavior
No deprecation warnings.
The text was updated successfully, but these errors were encountered:
### 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: