-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Connection String
When using the MongoDB Node.js driver, a deprecation warning related to the punycode module is being thrown. After investigating, it appears this warning originates from the tr46 module, a dependency of the whatwg-url package. This, in turn, is a dependency for mongodb-connection-string-url, which the MongoDB Node.js driver utilizes.
The exact warning message is:
(node:17504) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
Steps to Reproduce:
- Install the MongoDB Node.js driver.
- Connect to a MongoDB instance using the driver.
- Observe the deprecation warning in the console output.
Expected Behavior:
No deprecation warnings should be thrown when using the MongoDB Node.js driver.
Actual Behavior:
A deprecation warning related to the punycode module, stemming from the tr46 module, is shown.
Environment Details:
- MongoDB Node.js Driver Version: 6.1.0
- Node.js Version: v21.0.0
- Operating System: Windows 11
Additional Context:
The dependency chain causing this issue seems to be:
mongodb -> mongodb-connection-string-url -> whatwg-url -> tr46
It would be great if this could be addressed, as such warnings can be concerning for users and might become breaking changes in future Node.js releases.
- is related to
-
NODE-5408 Change host address temporary url string to use http protocol
- Backlog
- links to