Closed Drarig29 closed 6 months ago
The ent package is still using the native punycode module which used to be bundled in Node.js < 21.
ent
punycode
Starting in Node.js 21, this native module was deprecated (see official Node.js docs), and we now have to use the userland punycode.
And the following warning shows:
(node:1) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
Since the latest version of ent is 9-years-old and the repository was removed from GitHub, I think we could replace ent with another heavily-used package, e.g. html-entities.
html-entities
macOS
v21.7.3
10.5.0
@google-cloud/common
5.0.1
npm install @google-cloud/common
node --trace-deprecation -e "require('@google-cloud/common')"
I'll make a PR.
Solving this will close https://github.com/DataDog/datadog-ci/issues/1283
@sofisl Thanks for merging the PRs! 🙇
Could you publish a patch release of @google-cloud/common? Cheers!
The
ent
package is still using the nativepunycode
module which used to be bundled in Node.js < 21.Starting in Node.js 21, this native module was deprecated (see official Node.js docs), and we now have to use the userland
punycode
.And the following warning shows:
Since the latest version of
ent
is 9-years-old and the repository was removed from GitHub, I think we could replaceent
with another heavily-used package, e.g.html-entities
.Environment details
macOS
v21.7.3
10.5.0
@google-cloud/common
version:5.0.1
Steps to reproduce
npm install @google-cloud/common
node --trace-deprecation -e "require('@google-cloud/common')"
(on Node.js 21)I'll make a PR.