PerimeterX/restringer

punycode module is deprecated

Closed this issue ยท 4 comments

this warning shows at the end of every restringer run

(node:65863) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

i am installing dependencies with pnpm install so im ignoring the npm lockfile

@milahu Thanks for reaching out.
I can't reproduce on my machine. I've cloned and installed using pnpm, but didn't get the error.
If you can provide a minimal reproducible example I can continue to investigate the issue.

I see. On version 21 it does show this error.
This is something to do with nested dependencies:

restringer@1.10.2
โ”œโ”€โ”ฌ eslint@8.56.0
โ”‚ โ””โ”€โ”ฌ ajv@6.12.6
โ”‚   โ””โ”€โ”ฌ uri-js@4.4.1
โ”‚     โ””โ”€โ”€ punycode@2.3.1 deduped
โ””โ”€โ”ฌ jsdom@23.2.0
  โ”œโ”€โ”ฌ tough-cookie@4.1.3
  โ”‚ โ””โ”€โ”€ punycode@2.3.1
  โ””โ”€โ”ฌ whatwg-url@14.0.0
    โ””โ”€โ”ฌ tr46@5.0.0
      โ””โ”€โ”€ punycode@2.3.1 deduped

Unfortunately, the only fix I can think of right now is living with the error until the dependencies are updated.
You can roll back to a previous Node.js version where this error doesn't show up, but since it's not a direct dependency on my side, I don't think there's anything for me to do here.

I'll be closing the issue, but I'll be happy for other recommendations if anyone has any - feel free to re-open the issue.

aah, the joy of waiting for maintainers...

fixed