vercel / serve-handler

The foundation of `serve`

Home Page:https://npmjs.com/serve-handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module `punycode` is deprecated since Node.js 21

cedx opened this issue · comments

This library depends on the fast-url-parser package which depends on the punycode builtin module... but since Node.js 21, this module is deprecated:

(node:4284) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

Issue also raised on the fast-url-parser repository: cf. petkaantonov/urlparser#20

fast-url-parser@1.1.3 was released more than 8 years ago in Jan 2015.

fast-url-parser > README says:


#API

This module has exactly the same API and semantics as the require("url");- module that comes with node.

See Node.JS URL API documentation.


so perhaps the serve-handler module could be refactored to use Node.js' url instead?

Still seeing this every time I run vercel dev

Also still seeing this, node v22.1.0