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

Deprecation Warning: Punycode Module #1447

Open
MichaelvdVeer opened this issue Sep 23, 2024 · 3 comments
Open

Deprecation Warning: Punycode Module #1447

MichaelvdVeer opened this issue Sep 23, 2024 · 3 comments
Labels
lib/javascript JavaScript client library

Comments

@MichaelvdVeer
Copy link

Bug Report

Version

Svix version 1.35.0

Platform

Node.js v22.9.0
Express.js version 4.21.0.

Description

I'm currently using the Svix library in my project and have encountered a deprecation warning related to the punycode module. After investigating, I identified the following dependency chain:

Svix depends on svix-fetch
svix-fetch depends on node-fetch (version 2.7.0)
node-fetch relies on whatwg-url, which in turn depends on punycode
Could you provide guidance on how to address this warning? Is there an upcoming update or an alternative approach I should consider to avoid this deprecation?

I tried this code:

"dev": "nodemon src/index.js"

I expected to see this happen: Run the server without warnings.

Instead, this happened:
(node:2701) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

Thank you in advance for your assistance!

@svix-lucho svix-lucho added grooming lib/javascript JavaScript client library labels Sep 24, 2024
@MichaelvdVeer
Copy link
Author

Update: I was using node v22.9.0. Im now using the LTS version and the deprecation warning is gone.

@tasn
Copy link
Member

tasn commented Sep 29, 2024

So it was only an issue because you were using an old version? (I guess the deps are smart about it?)

@MichaelvdVeer
Copy link
Author

I was using the latest Node version, v22.9.0, where punycode was likely marked as deprecated. Now, I’m using an older version of Node, but it’s an LTS version. In this version, I’m not getting any deprecation warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib/javascript JavaScript client library
Projects
None yet
Development

No branches or pull requests

4 participants