Closed MikeMcC399 closed 10 months ago
punycode
in the Node.js 21.x
current release, which is certain to increase the interest and visibility into this repo!DEP0040 in the History section of the Node.js documentation shows that Node.js punycode
has been deprecated since Node.js v7.0.0
and, starting with Node.js v21.0.0
, this has been changed to a runtime deprecation (see https://github.com/nodejs/node/pull/47202). The runtime deprecation is causing it to now become visible.
Node.js v21.0.0 was released on Oct 17, 2023 as the first release of the 21.x
major version, so the issue is quite new.
Typically the deprecation notice looks like this:
(node:2136) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created)
and I'm seeing this appearing in many places, including when Yarn Classic is used to add a package.
Thanks!
@mathiasbynens
You're very welcome!
This PR bumps
14
, which reached end-of-life on Apr 30, 2023, to Node.js20
, which is the current Long Term Support (LTS) version, announced as Node.js v20.9.0 on Oct 24, 2023.Also in GitHub Actions workflows
the following GitHub Action are bumped
actions/checkout@v4
actions/setup-node@v4
to resolve the GitHub Actions deprecation warning:
and the planned deprecation of node16 (see blog post GitHub Actions: Transitioning from Node 16 to Node 20 Sep 22, 2023).