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

DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. #483

Open
VarunGuptaPy opened this issue Jun 17, 2024 · 0 comments

Comments

@VarunGuptaPy
Copy link

Deprecation Warning: punycode module usage in connect-mongo

Issue Description

I'm encountering a deprecation warning related to the use of the punycode module when using the connect-mongo package. The warning message is as follows:

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

Dependency Tree

The punycode module is being used indirectly through the dependency chain of connect-mongo. Here is the relevant portion of the dependency tree:

Screenshot 2024-06-17 at 12 08 50 PM

Steps to Reproduce

  1. Install connect-mongo in an Express project.
  2. Run the project and observe the deprecation warning in the console.

Expected Behavior

No deprecation warnings should be present, and the punycode module should be replaced with a suitable userland alternative.

Environment

  • Node.js version: 21.7.1
  • connect-mongo version: 5.1.0
  • Operating System: [your operating system]

Suggested Solution

Investigate the possibility of updating the dependencies or using alternative packages that do not rely on the deprecated punycode module.

Additional Information

This issue affects the stability and future compatibility of projects using connect-mongo, as reliance on deprecated modules may lead to unexpected behavior or security vulnerabilities.

Thank you for your attention to this matter. If any additional information is required, please let me know.

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

No branches or pull requests

1 participant