garycourt/uri-js

DeprecationWarning: The `punycode` module is deprecated

Opened this issue ยท 8 comments

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

Can we update the module to replace "punycode"?

See #95

I've published a fork that I intend to keep maintaining that addresses this issue: https://www.npmjs.com/package/toad-uri-js

any update on this?

Hi there,
I created a replacement for library uri-js

  • Based on Node.js and browser URL api
  • 99% compatible with original URI.js library
  • Solves "The punycode module is deprecated" warning in Node
  • Tested with libraries: ESLint, Webpack, Ajv

https://github.com/andreinwald/uri-js-replace

You can add to package.json of your project:

"overrides": {
    "uri-js": "npm:uri-js-replace"
}

it only can be used in local dev environment, does it can support npm i -g @package/a if @package/a has

"overrides": {
    "uri-js": "npm:uri-js-replace"
}

it seems that npm i -g xxx xxx package won't replace uri-js to uri-js-replace

@tianyingchun if any library has "uri-js" as direct dependency, then maintainers of that library can just replace "uri-js" to "uri-js-replace" in dependencies zone of package.json

why uri-js can not bump a new version? cause of so many lib indirect dependents uri-js rather than uri-js-replace?

Creator and maintainer @garycourt haven't updated it for last 3 years.

That's why I ended up with the replacement.