node-js-server-sdk icon indicating copy to clipboard operation
node-js-server-sdk copied to clipboard

Deprecated package warning

Open seripap opened this issue 1 year ago • 2 comments

While integrating statsig-node, I am receiving some deprecation warnings using node v22.4;

(node:13621) [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:398:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
    at loadBuiltinModule (node:internal/modules/helpers:96:7)
    at Module._load (node:internal/modules/cjs/loader:1070:17)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at Module.require (node:internal/modules/cjs/loader:1304:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/dseripap/local/workspace/app/node_modules/node-fetch/node_modules/whatwg-url/lib/url-state-machine.js:2:18)

Tracing the package leads here;

├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ └─┬ [email protected]
│ │   ├── [email protected]
│ │   └── [email protected]
│ ├── [email protected] deduped
│ └── [email protected]

A suggestion is to perhaps update node-fetch to the latest version and maybe that'll fix it.

seripap avatar Jul 16 '24 13:07 seripap

Thanks for the report, we'll take a look!

tore-statsig avatar Jul 17 '24 22:07 tore-statsig

@seripap the punycode dependency is coming from eslint and jest-environment-jsdom which are both dev dependencies. From what I can tell neither of them has a new version that fixes the issue yet but it seems like something they are looking to do in the near future so we can update them once those are available. ├─┬ [email protected] │ └─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] └─┬ [email protected] └─┬ [email protected] ├─┬ [email protected] │ └── [email protected] deduped └─┬ [email protected] └─┬ [email protected] └── [email protected] deduped

sroyal-statsig avatar Jul 22 '24 22:07 sroyal-statsig