7.5.0 (2026-07-07)
The MongoDB Node.js team is pleased to announce version 7.5.0 of the mongodb package!
Release Notes
Support for Queryable Encryption GA in MongoDB 9.0
Queryable Encryption string queries are now available for MongoDB 9.0. Building on the technical preview introduced in earlier releases, this feature lets you run exact and range-style string matching against encrypted fields. As part of the promotion to GA, the API has been renamed:
- The
TextOptsAPI is replaced withStringOpts. - The
TextPreviewalgorithm is replaced withString. - The
prefix,suffix, andsubstringquery types are now generally available. - The
prefixPreview,suffixPreview, andsubstringPreviewquery types are deprecated and will be removed in a future release.
MongoClient.close() now closes in-use connections on all servers
Since v6.17.0, MongoClient.close() has eagerly closed checked-out (in-use) connections so that in-flight operations are interrupted promptly with a MongoClientClosedError instead of holding the client open. However, due to a bug, on replica sets and sharded clusters operations in flight on other servers were not interrupted, and their connections stayed open until the operations completed on their own. Calls to closeCheckedOutConnections() will now ensure all checked out connections are closed across all servers.
Features
Bug Fixes
Documentation
We invite you to try the mongodb library immediately, and report any issues to the NODE project.