# MongoDB Node.js Driver v7.5.0 - Product: MongoDB Node.js Driver (https://whatsnew.fyi/product/mongodb-node-driver) - Vendor: MongoDB - Date: 2026-07-07 - Version: v7.5.0 - Original notes: https://github.com/mongodb/node-mongodb-native/releases/tag/v7.5.0 - Permalink: https://whatsnew.fyi/product/mongodb-node-driver/releases/v7.5.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Support for Queryable Encryption string queries in MongoDB 9.0 with exact and range-style string matching against encrypted fields - **changed** — TextOpts API is replaced with StringOpts - **changed** — TextPreview algorithm is replaced with String - **deprecated** — prefixPreview, suffixPreview, and substringPreview query types are deprecated and will be removed in a future release - **fixed** — MongoClient.close() now closes checked-out connections on all servers in replica sets and sharded clusters ##### [7.5.0](https://github.com/mongodb/node-mongodb-native/compare/v7.4.0...v7.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 String Query 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 `TextOpts` API is replaced with `StringOpts`. - The `TextPreview` algorithm is replaced with `String`. - The `prefix`, `suffix`, and `substring` query types are now generally available. - The `prefixPreview`, `suffixPreview`, and `substringPreview` query 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. Thank you to @Nepomuk5665 and @sarthaksoni25 for bringing this to our attention/providing an initial implementation! ###### Features * **NODE-7537:** promote QE string queries (prefix/suffix/substring) ([#4996](https://github.com/mongodb/node-mongodb-native/issues/4996)) ([dc4900c](https://github.com/mongodb/node-mongodb-native/commit/dc4900c36207d70b718c6fc013c5233ceb9f343c)) ###### Bug Fixes * **NODE-7411:** iterate all servers on close ([#4967](https://github.com/mongodb/node-mongodb-native/issues/4967)) ([72c0296](https://github.com/mongodb/node-mongodb-native/commit/72c02969f49ebc239dd15ef3deaf9be15fbbb94f)) ##### Documentation * [Reference](https://docs.mongodb.com/drivers/node/current/) * [API](https://mongodb.github.io/node-mongodb-native/7.5/) * [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v7.5.0/HISTORY.md) We invite you to try the `mongodb` library immediately, and report any issues to the [NODE project](https://jira.mongodb.org/projects/NODE).