TEST: chore(NODE-7804): restrict release_notes to PRs from this repository - #5045
TEST: chore(NODE-7804): restrict release_notes to PRs from this repository#5045johnmtll wants to merge 1 commit into
Conversation
|
There is an existing patch(es) for this commit SHA: Please note that the status that is posted is not in the context of this PR but rather the (latest) existing patch and that may affect some tests that may depend on the particular PR. If your tests do not rely on any PR-specific values (like base or head branch name) then your tests will report the same status. If you would like a patch to run in the context of this PR and abort the other(s), comment 'evergreen retry'. |
|
There is an existing patch(es) for this commit SHA: Please note that the status that is posted is not in the context of this PR but rather the (latest) existing patch and that may affect some tests that may depend on the particular PR. If your tests do not rely on any PR-specific values (like base or head branch name) then your tests will report the same status. If you would like a patch to run in the context of this PR and abort the other(s), comment 'evergreen retry'. |
🌱 A new release!
7.6.0 (2026-08-21)
The MongoDB Node.js team is pleased to announce version 7.6.0 of the
mongodbpackage!Release Notes
HTTP proxy support for KMS requests in CSFLE and Queryable Encryption
In-use encryption can now route KMS requests through an HTTP proxy. Set
kmsConnectCallbackon yourClientEncryptionor auto-encryption options to control how the driver connects to a KMS host. The callback receives the targethostandportand returns a connected socket (for example, a tunnelopened with HTTP CONNECT); the driver then performs the KMS TLS handshake over that socket using the provider's configured TLS options. This unblocks CSFLE and Queryable Encryption in environments that require an HTTP forward proxy for outbound KMS traffic, which the existing SOCKS5
proxyOptionsdoes not cover.Bumped minimum server version (4.2 -> 4.4) & minimum wire version (8 -> 9)
Improved Intelligent Workload Management
Improved performance for MongoDB 9.0's Intelligent Workload Management (IWM) by only retrying overload errors when doing so is expected to not worsen server conditions
Bundling the driver into ESM no longer throws
ReferenceError: require is not definedv7.2.0 introduced the experimental
runtimeAdaptersoption and, as part of it, replaced the driver’s static import of Node’sosmodule with a runtimerequire('os'). That works in a CommonJS build, but when the driver is bundled into ESM output (e.g. a Vite/esbuild/rollup server build with"type": "module"), there is norequirein module scope, so constructing a client threwReferenceError: require is not defined. The driver now loads the defaultosadapter through a dynamicimport()that survives bundling, sonew MongoClient()works in ESM bundles. CommonJS usage is unchanged, and supplying your ownruntimeAdapters.oscontinues to work.Bulk writes serialize each document only once
insertManyandbulkWritepreviously processed each document twice - once to measure its size for batch splitting (a full recursive walk viacalculateObjectSize) and again to serialize it into the command sent to the server. Documents are now serialized a single time and the resulting bytes are reused for both, decreasing the BSON-encoding CPU spent on bulk writes and reducing event-loop blocking during large batches. The improvement is most noticeable with high document counts and documents that have many fields.Features
Bug Fixes
import('os')viatsconfig(#4992) (52f5e61)Performance Improvements
Documentation
We invite you to try the
mongodblibrary immediately, and report any issues to the NODE project.