Skip to content
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

Module punycode is deprecated since Node.js 21 #204

Open
cedx opened this issue Oct 18, 2023 · 5 comments · May be fixed by #207
Open

Module punycode is deprecated since Node.js 21 #204

cedx opened this issue Oct 18, 2023 · 5 comments · May be fixed by #207

Comments

@cedx
Copy link

cedx commented Oct 18, 2023

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

@MikeMcC399
Copy link

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?

@montanaflynn
Copy link

Still seeing this every time I run vercel dev

@MikeMcC399
Copy link

@mamiu
Copy link

mamiu commented May 6, 2024

Docusaurus has the same problem.

@BatMiles
Copy link

Also still seeing this, node v22.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants