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: punycode module due to tr46 in mongoose dependency chain #14104

Closed
2 tasks done
elgwhoppo opened this issue Nov 21, 2023 · 3 comments
Closed
2 tasks done
Labels
underlying library issue This issue is a bug with an underlying library, like the MongoDB driver or mongodb-core
Milestone

Comments

@elgwhoppo
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

I am encountering a DeprecationWarning for the punycode module in my Node.js application. This warning is traced back to the tr46 package, which is a sub-dependency of the latest release of mongoose, which at the time of writing is 8.0.1. The dependency chain is as follows.

└─┬ mongoose@8.0.1
└─┬ mongodb@6.2.0
└─┬ mongodb-connection-string-url@2.6.0
└─┬ whatwg-url@11.0.0
└─┬ tr46@3.0.0
└── punycode@2.3.1

The error message I received today was:
2023-11-21 09:55:05 (node:1) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.

While this is not a bug, it is a warning that I would like to bring to the attention of the team.

vkarpov15 added a commit that referenced this issue Nov 22, 2023
@vkarpov15 vkarpov15 added this to the 8.1 milestone Nov 22, 2023
@vkarpov15
Copy link
Collaborator

This was fixed upstream with https://jira.mongodb.org/browse/NODE-5709, we will bump mongodb driver to 6.3.0 for the fix.

@vkarpov15 vkarpov15 added the underlying library issue This issue is a bug with an underlying library, like the MongoDB driver or mongodb-core label Nov 22, 2023
@merlinstardust
Copy link

What is the ETA for 8.1 to be released?

@vkarpov15
Copy link
Collaborator

@merlinstardust next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
underlying library issue This issue is a bug with an underlying library, like the MongoDB driver or mongodb-core
Projects
None yet
Development

No branches or pull requests

3 participants