Description
Running serve under Node.js 22.x version causes a deprecation notice similar to the following to be displayed:
$ serve -v
(node:3752) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
14.2.2
Node.js v22.0.0 (Current) was released on Apr 24, 2024.
Steps to reproduce
On Ubuntu 22.04.4 LTS with Node.js v22.0.0
On Ubuntu 22.04.5 LTS with Node.js v22.9.0
npm install serve@latest -g
export NODE_OPTIONS='--trace-deprecation'
serve -v
shows
$ serve -v
(node:4155) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
at loadBuiltinModule (node:internal/modules/helpers:113:7)
at Module._load (node:internal/modules/cjs/loader:1053:17)
at Module.require (node:internal/modules/cjs/loader:1290:19)
at require (node:internal/modules/helpers:188:18)
at Object.<anonymous> (/home/mike/n/lib/node_modules/serve/node_modules/fast-url-parser/src/urlparser.js:401:16)
at Module._compile (node:internal/modules/cjs/loader:1455:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1534:10)
14.2.2
Library version
14.2.2 and 14.2.3
Node version
v22.0.0 and v22.9.0
punycodemodule is deprecated." #789Description
Running
serveunder Node.js22.xversion causes a deprecation notice similar to the following to be displayed:Node.js v22.0.0 (Current) was released on Apr 24, 2024.
Steps to reproduce
On Ubuntu22.04.4LTS with Node.jsv22.0.0On Ubuntu
22.04.5LTS with Node.jsv22.9.0shows
Library version
14.2.2and14.2.3Node version
andv22.0.0v22.9.0