-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.7.4
-
Component/s: Connection String
The 3.x branch of the driver will throw a deprecation warning when run in Node 20 (https://nodejs.org/api/deprecations.html#DEP0170)
> $ node test.js
(node:98413) [DEP0170] DeprecationWarning: The URL mongodb://127.0.0.1:27017,127.0.0.1:27018/ is invalid. Future versions of Node.js will throw an error.
(Use `node --trace-deprecation ...` to show where the warning was created)
This appears to be raised by https://github.com/mongodb/node-mongodb-native/blob/3.7/lib/core/uri_parser.js#L578.
Note this does not affect 4.x+ of the driver.