Skip to content

v7.0.2

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Jul 14:55
a084dac

7.0.2 (2026-07-15)

The MongoDB Node.js team is pleased to announce version 7.0.2 of the mongodb-connection-string-url package!

Release Notes

Loosened type restriction on generic arugments

  • .typedSearchParams<...>()
  • CommaAndColonSeparatedRecord<...>

The generics passed into these APIs were inadvertently made stricter than desirable. They've been updated to use the extends {} condition which permits string keyed types as a type argument. Notably improving the compatibility with the driver's AuthMechanismProperties type, a possible output of connection string parsing.

Fixed parsing issue

Unescaped @ in credentials now throws instead of silently misparsing.

Error messages no longer reveal invalid connection strings

Invalid connection strings are no longer revealed in error messages, reducing sensitive information disclosure. Historically we've had URI's embedded in error messages from validation failures.

Bug Fixes

  • NODE-7449: loosen type requirement for generics on typedSearchParams and CommaAndColonSeparatedRecord (#116) (69bd1af)
  • NODE-7597: handle unescaped @ in the password (#125) (9b39443)
  • NODE-7663: uri disclosure on error (#131) (7a1f4ce)

Documentation

We invite you to try the mongodb-connection-string-url library immediately, and report any issues to the NODE project.