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...
- garycourt/uri-js#95 - uri-js is unmaintained
- ajv-validator/ajv#2377
- eslint/eslint#17720 - waiting for ajv
fixed