Skip to content

Bump bson and mongodb#6

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-e4fbdfd89e
Open

Bump bson and mongodb#6
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-e4fbdfd89e

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github May 21, 2026

Bumps bson to 7.2.0 and updates ancestor dependency mongodb. These dependencies need to be updated together.

Updates bson from 0.5.6 to 7.2.0

Release notes

Sourced from bson's releases.

v7.2.0

7.2.0 (2026-01-29)

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

Release Notes

EJSON now supports ignoreUndefined

serialize supports an option, ignoreUndefined, which instructs the serializer to skip any keys whose values are undefined.

This option has been added to EJSON:

> EJSON.stringify({ a: undefined }, { ignoreUndefined: true });
'{}'
> EJSON.stringify({ a: undefined }, { ignoreUndefined: false });
'{"a":null}'
> EJSON.serialize({ a: undefined }, { ignoreUndefined: true });
{}
> EJSON.serialize({ a: undefined }, { ignoreUndefined: false });
{ a: null }

This option defaults to false.

Buffer.copy() now present in ByteUtils

ByteUtils now contains a copy() method, we behaves identically to Nodejs' Buffer.copy() method.

Features

  • NODE-7328: Add ignoreUndefined option to EJSON APIs (#853) (5cf00c2)
  • NODE-7414: add copy method to ByteUtils (#867) (ffa77c6)

Documentation

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

v7.1.1

7.1.1 (2026-01-17)

The MongoDB Node.js team is pleased to announce version 7.1.1 of the bson package!

Release Notes

... (truncated)

Changelog

Sourced from bson's changelog.

7.2.0 (2026-01-29)

Features

  • NODE-7328: Add ignoreUndefined option to EJSON APIs (#853) (5cf00c2)

Bug Fixes

  • NODE-7414: add copy method to ByteUtils (#867) (ffa77c6)

7.1.1 (2026-01-17)

Bug Fixes

  • NODE-7399: revert bson PR 859 / NODE-7334 (#861) (6511e0d)

7.1.0 (2026-01-16)

Features

  • NODE-7314: export byteUtils & add missing methods (#852) (a31c90e)
  • NODE-7316: export number utils (#850) (a23e788)
  • NODE-7334: remove ByteUtils and NumberUtils from the onDemand ns (#859) (92bbc34)

Bug Fixes

  • NODE-7397: Use type predicate for isUint8Array (#860) (89b3a2b)

7.0.0 (2025-11-05)

Miscellaneous Chores

7.0.0-alpha.2 (2025-10-24)

Bug Fixes

  • NODE-7271: revert private property usage in ObjectId (#835) (79faf75)

7.0.0-alpha.1 (2025-10-21)

... (truncated)

Commits
  • 0712bb1 chore(main): release 7.2.0 (#866)
  • ffa77c6 fix(NODE-7414): add copy method to ByteUtils (#867)
  • 5cf00c2 feat(NODE-7328): Add ignoreUndefined option to EJSON APIs (#853)
  • 51f86bc chore(main): release 7.1.1 (#862)
  • 6511e0d fix(NODE-7399): revert bson PR 859 / NODE-7334 (#861)
  • 4375ec6 chore(main): release 7.1.0 (#851)
  • 89b3a2b fix(NODE-7397): Use type predicate for isUint8Array (#860)
  • 92bbc34 feat(NODE-7334): remove ByteUtils and NumberUtils from the onDemand ns (#859)
  • a31c90e feat(NODE-7314): export byteUtils & add missing methods (#852)
  • a23e788 feat(NODE-7316): export number utils (#850)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by dbx-node, a new releaser for bson since your current version.

Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


Updates mongodb from 2.2.11 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:

const os: 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
Maintainer changes

This version was pushed to npm by dbx-node, a new releaser for mongodb since your current version.

Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [bson](https://github.com/mongodb/js-bson) to 7.2.0 and updates ancestor dependency [mongodb](https://github.com/mongodb/node-mongodb-native). These dependencies need to be updated together.


Updates `bson` from 0.5.6 to 7.2.0
- [Release notes](https://github.com/mongodb/js-bson/releases)
- [Changelog](https://github.com/mongodb/js-bson/blob/main/HISTORY.md)
- [Commits](mongodb/js-bson@V0.5.6...v7.2.0)

Updates `mongodb` from 2.2.11 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@V2.2.11...v7.2.0)

---
updated-dependencies:
- dependency-name: bson
  dependency-version: 7.2.0
  dependency-type: indirect
- dependency-name: mongodb
  dependency-version: 7.2.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants