-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
punycode deprecation #166
Comments
Thanks for the report. This is coming via jsdom, where they have an open issue about it. The easiest path is probably to wait for a fix for them - or alternatively, jsdom could be replaced - it's just used to parse some XML in the maven updater. |
Using jsdom to parse XML seems like overkill. There must be lighter weight XML parsers out there. In the meantime I fixed it with the following function readPackage(pkg, context) {
if (pkg.name === 'jsdom' && pkg.version.startsWith('23.2')) {
// Replace tough-cookie v4 with v5
pkg.dependencies = {
...pkg.dependencies,
'tough-cookie': '^5.0.0-rc.3'
}
context.log('tough-cookie@4 => tough-cookie@5 in dependencies of jsdom')
}
return pkg
}
module.exports = {
hooks: {
readPackage
}
} |
Thanks. It’s helpful to have the pnpmfile on the issue in case it helps others who want to work around it. I’m not super keen to muck with the dependencies of our dependencies in a released version, though. in the meantime, it’s just a deprecation warning, there’s no loss of functionality until there are breaking changes in a later version of node Very happy to accept a PR replacing jsdom with something lighter if you have the time |
The tough-cookie maintainers said v5 is API compatible with v4.
...which should be taken seriously. punycode was deprecated 3 years ago in node 16. |
It may be better to just add this into package.json:
It also works with yarn:
and for npm:
|
Thanks, I forgot about that config option. |
Describe the bug
When running under node v22.4.1, I get a deprecation warning for punycode.
Current behavior
The following error is printed to the console:
(node:72996) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.Expected behavior
No error.
Environment
commit-and-tag-version
version(s): 12.4.1The text was updated successfully, but these errors were encountered: