Skip to content

chore(deps)(deps): bump mongodb from 6.21.0 to 7.2.0 - #1239

Merged
hotlong merged 1 commit into
mainfrom
dependabot/npm_and_yarn/mongodb-7.2.0
May 22, 2026
Merged

chore(deps)(deps): bump mongodb from 6.21.0 to 7.2.0#1239
hotlong merged 1 commit into
mainfrom
dependabot/npm_and_yarn/mongodb-7.2.0

Conversation

@dependabot

@dependabotdependabotBot commented on behalf of githubMay 11, 2026

Copy link
Copy Markdown
Contributor

Bumps mongodb from 6.21.0 to 7.2.0.

Release notes

Sourced from mongodb's releases.

v7.2.0

7.2.0 (2026-04-17)

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

Release Notes

⚙️ Added support for MongoDB's Intelligent Workload Management

Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features. The driver now gracefully handles write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability.

Two new client options are available:

  • maxAdaptiveRetries (default: 2) - configures the maximum number of retries during server overload. Set to 0 to disable overload retries.
  • enableOverloadRetargeting (default: false) - when enabled, the driver will deprioritize servers that return overload errors during retry server selection.

🧩 Runtime and platform compatibility improvements

Node-specific platform APIs replaced with standards-based equivalents

The following Node-specific APIs have been replaced with standards-based equivalents:

  • The driver now uses the standard Uint8Array APIs instead of the Node‑specific Buffer APIs.
  • The driver now uses the standard Web Crypto API globalThis.crypto instead of the Node‑specific crypto API.

These changes reduce the number of patches required to run the driver outside of Node.js and improve compatibility with non-Node.js runtimes.

Experimental Support for Dependency Injection of Nodejs Runtime Dependencies

This release introduces a new MongoClient option, runtimeAdapters. runtimeAdapters allows injection of core Nodejs APIs, to allow users of the driver to use alternative runtimes that don't support Nodejs compatibility or work in restricted environments.

[!WARNING] runtimeAdapters is experimental and the actual interface of each dependency might change at any time.

Notes about usage of runtimeAdapters:

  1. If no runtimeAdapter is provided for a core Nodejs module that the driver uses, the driver will import the corresponding module from Nodejs.
  2. Adapters are per-client.
  3. Each adapter specifies the required APIs as a part of its Typescript API definition. There are no runtime checks to ensure all required functions are provided; the onus is on users to ensure that all required module dependencies are provided.
  4. The runtimeAdapters Typescript types currently rely on Nodejs' type definitions (@types/node). To use runtimeAdapters in a Typescript project, @types/node must be installed as well.
  5. When providing a module in runtimeAdapters, all required functions inside that module must be provided. For example, when injecting the os module, the platform() function cannot be omitted.
runtimeAdapters supports injecting Nodejs' os module

The os module is pluggable using runtimeAdapters:

constos: OsAdapter={// implement the required OSAdapter interface}</tr></table>

... (truncated)

Changelog

Sourced from mongodb's changelog.

7.2.0 (2026-04-17)

Features

  • NODE-7142: Exponential backoff and jitter in retry loops (#4871) (22c6031)
  • NODE-7315: Use BSON ByteUtils instead of Nodejs Buffer (#4840) (1add538)
  • NODE-7335: Create dedicated mocha runner with isolated vm context (#4876) (a4cba4c)
  • NODE-7379: Refactor Crypto to Web Crypto API (#4862) (ac98f4a)
  • NODE-7385: add experimental os runtime adapter (#4851) (d2ad07f)
  • NODE-7441: add ChangeStream.bufferedCount (#4870) (f7ea421)
  • NODE-7452: restrict server deprioritization on replica sets to overload errors (#4875) (87a3465)
  • NODE-7467: make token bucket optional in client backpressure (#4878) (4fb0a0a)
  • NODE-7491: finalize client backpressure implementation for phase 1 rollout (#4920) (2cc7983)

Bug Fixes

  • NODE-7430: throw timeout error when withTransaction retries exceed deadline (#4897) (16a899d)
  • NODE-7459: explicitly call setKeepAlive and setNoDelay on socket (#4879) (778a2a1)
  • NODE-7469: overload retry when retryReads/Writes=false (#4888) (4157b26)
  • NODE-7478: OIDC host allowlist fix (#4905) (f36b754)

7.1.0 (2026-02-02)

Features

  • NODE-5393: aws4 no longer required for AWS authentication (#4824) (0f46db8)
  • NODE-7121: prevent connection churn on backpressure errors when establishing connections (#4800) (4cb2b87)
  • NODE-7122: exponential backoff between retries in convenient transaction API (#4765) (e70fdc9)
  • NODE-7304: remove usages in src of promisify (#4799) (761b9bf)
  • NODE-7306: Replace global process with import node:process (#4820) (cc503cb)
  • NODE-7310: Replace process.arch with os.arch() (#4823) (f0af829)
  • NODE-7311: Replace process.platform with os.platform() (#4822) (c58ca1f)
  • NODE-7317: use BSON.NumberUtils to determine endianness (#4808) (4e9467e)
  • NODE-7319: update allowed hosts list with *.mongo.com (#4802) (bfb7160)
  • NODE-7330: deprecate RenameCollectionOptions.new_collection (#4815) (a96fa26)
  • NODE-7333: add support for deprioritized servers to all topologies (#4821) (a4211e7)

Bug Fixes

  • NODE-7290: use valueof for error code check (#4791) (1cc3d1c)
  • NODE-7298: ensure commonWireVersion is computed from server maxWireVersion (#4805) (2b2366d)
  • NODE-7307: Replace node:process.hrtime() with performance.now() (#4816) (ae2e037)
  • NODE-7308: replace process.nextTick with queueMicrotask (#4817) (b1b6e81)

7.0.0 (2025-11-06)

... (truncated)

Commits
  • 7e53685 chore(main): release 7.2.0 (#4861)
  • dbdd932 test(NODE-7540): run BSON compability tests against server version 8.0 (#4923)
  • fb70658 test(NODE-7538): ignore unknown fields in listIndexes (#4922)
  • affc3f9 docs: generate docs from latest main [skip-ci] (#4863)
  • 2cc7983 feat(NODE-7491): finalize client backpressure implementation for phase 1 roll...
  • 16a899d fix(NODE-7430): throw timeout error when withTransaction retries exceed dea...
  • 1fc0e09 test(NODE-7513): relax regression test for emptyGetMore (#4916)
  • 01eb278 ci: exclude spec files from copilot review (#4919)
  • 1cf791f test(NODE-7508): Fix inconsistent wording for prose retryable writes test 6, ...
  • f36b754 fix(NODE-7478): OIDC host allowlist fix (#4905)
  • Additional commits viewable in compare view

@dependabotdependabotBot added dependencies Pull requests that update a dependency file javascript labels May 11, 2026
@vercel

vercelBot commented May 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
objectstack-cloudErrorErrorMay 21, 2026 1:53pm
objectstack-objectosReadyReadyPreview, CommentMay 21, 2026 1:53pm
specReadyReadyPreview, CommentMay 21, 2026 1:53pm

Request Review

@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from 1b9dc50 to f49d624CompareMay 15, 2026 12:05
@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from f49d624 to 175e815CompareMay 15, 2026 14:41
@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from 175e815 to 9048f8dCompareMay 16, 2026 09:21
@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from 9048f8d to 7b42c61CompareMay 16, 2026 11:15
@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from 7b42c61 to 2c44418CompareMay 17, 2026 02:29
@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from 2c44418 to 40a471cCompareMay 18, 2026 15:32
@dependabot@github

dependabotBot commented on behalf of githubMay 20, 2026

Copy link
Copy Markdown
ContributorAuthor

Dependabot can't resolve your JavaScript dependency files. Because of this, Dependabot cannot update this pull request.

@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from fbd04e4 to 4383a91CompareMay 20, 2026 08:54
@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from 4383a91 to f314e0dCompareMay 20, 2026 12:04
@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from f314e0d to 226319cCompareMay 20, 2026 13:01
@dependabot
dependabotBotforce-pushed the dependabot/npm_and_yarn/mongodb-7.2.0 branch from 226319c to 2b93295CompareMay 20, 2026 13:15
@hotlong
hotlongforce-pushed the main branch 2 times, most recently from 2411935 to f8d33a9CompareMay 20, 2026 13:50
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 6.21.0 to 7.2.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md)
- [Commits](mongodb/node-mongodb-native@v6.21.0...v7.2.0)
---
updated-dependencies:
- dependency-name: mongodb
dependency-version: 7.2.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependenciesPull requests that update a dependency filesize/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@hotlong