Skip to content

chore(main): release 7.6.0 - #5001

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main--components--mongodb
Open

chore(main): release 7.6.0#5001
github-actions[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main--components--mongodb

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

🌱 A new release!

7.6.0 (2026-08-21)

The MongoDB Node.js team is pleased to announce version 7.6.0 of the mongodb package!

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 kmsConnectCallback on your ClientEncryption or auto-encryption options to control how the driver connects to a KMS host. The callback receives the target host and port and returns a connected socket (for example, a tunnel
opened 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 proxyOptions does not cover.

const clientEncryption = new ClientEncryption(keyVaultClient, {
  keyVaultNamespace,
  kmsProviders,
  // Establish the KMS connection through your HTTP proxy; the driver adds TLS.
  kmsConnectCallback: ({ host, port }) => connectThroughHttpProxy(host, port)
});

Bumped minimum server version (4.2 -> 4.4) & minimum wire version (8 -> 9)

  • This change finalizes dropping support for mongo server v4.2, which has been marked EOL. To continue using the driver, use mongo server v4.4 at minimum.

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 defined

v7.2.0 introduced the experimental runtimeAdapters option and, as part of it, replaced the driver’s static import of Node’s os module with a runtime require('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 no require in module scope, so constructing a client threw ReferenceError: require is not defined. The driver now loads the default os adapter through a dynamic import() that survives bundling, so new MongoClient() works in ESM bundles. CommonJS usage is unchanged, and supplying your own runtimeAdapters.os continues to work.

Bulk writes serialize each document only once

insertMany and bulkWrite previously processed each document twice - once to measure its size for batch splitting (a full recursive walk via calculateObjectSize) 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

Performance Improvements

Documentation

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


@github-actions
github-actions Bot requested a review from a team as a code owner July 10, 2026 16:35
@github-actions
github-actions Bot force-pushed the release-please--branches--main--components--mongodb branch 2 times, most recently from e4a0454 to e283e1a Compare July 15, 2026 14:56
@github-actions
github-actions Bot force-pushed the release-please--branches--main--components--mongodb branch 4 times, most recently from 419a726 to 6a61b15 Compare July 27, 2026 12:59
@github-actions github-actions Bot changed the title chore(main): release 7.5.1 chore(main): release 7.6.0 Jul 29, 2026
@github-actions
github-actions Bot force-pushed the release-please--branches--main--components--mongodb branch 2 times, most recently from 8399e10 to 930276e Compare August 3, 2026 19:00
@github-actions
github-actions Bot force-pushed the release-please--branches--main--components--mongodb branch 2 times, most recently from 86bbcef to da15456 Compare August 10, 2026 20:37
@github-actions
github-actions Bot force-pushed the release-please--branches--main--components--mongodb branch 3 times, most recently from d57e58d to 1ed778c Compare August 19, 2026 15:57
@seanrmilligan

Copy link
Copy Markdown
Contributor

run release_notes

@github-actions
github-actions Bot force-pushed the release-please--branches--main--components--mongodb branch from 1ed778c to 4863fe0 Compare August 21, 2026 16:04
@seanrmilligan

Copy link
Copy Markdown
Contributor

run release_notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant