Skip to content

chore: update dependency mongodb to v7 - #815

Draft
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mongodb-7.x
Draft

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/mongodb-7.x

Conversation

@renovate

@renovate renovate Bot commented Nov 6, 2025 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongodb ^5.9.2 → ^7.9.0 age adoption passing confidence

Release Notes

mongodb/node-mongodb-native (mongodb)

v7.9.0

Compare Source

Features
Bug Fixes

v7.8.0

Compare Source

Features
Bug Fixes
  • NODE-7643: preserve $meta direction in [field, direction] sort pair (#​4988) (16136bb)
  • NODE-7659: key unordered bulk insertedIds by originating operation index (#​4989) (df513cf)
  • NODE-7764: use $eq to match file IDs in GridFS queries (#​5068) (218b6d7)
  • NODE-7881: hello command is compressed (#​5072) (399045a)

v7.7.0

Compare Source

Features
  • NODE-7670: update dependencies, including next BSON minor (#​5034) (995edbf)
Bug Fixes
  • NODE-7858: re-arm OIDC callback lock after a rejection (#​5056) (7e953ed)

v7.6.0

Compare Source

Features
  • NODE-7546: add HTTP Proxy support for QE & CSFLE (#​5007) (3366c21)
  • NODE-7547: bump minimum support server/wire versions to '4.4' & '9' respectively (#​4994) (3d97028)
  • NODE-7624: support baseBackoffMS and update client backpressure backoff (#​5020) (560837b)
Bug Fixes
Performance Improvements
  • NODE-7660: serialize bulk write documents a single time (#​4999) (1217aa1)

v7.5.0

Compare Source

Features
  • NODE-7537: promote QE string queries (prefix/suffix/substring) (#​4996) (dc4900c)
Bug Fixes

v7.4.0

Compare Source

Features
  • NODE-7634: remove experimental tag from async dispose methods (#​4976) (43ce3eb)
  • NODE-7549: send afterClusterTime on writes in causally-consistent sessions (#​4963) (3abfd26)

v7.3.0

Compare Source

Features
Bug Fixes
  • NODE-7548: SCRAM authentication fails on non-Node runtimes (#​4932) (a10d2c9)

v7.2.0

Compare Source

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)

v7.1.1

Compare Source

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

Release Notes

Tighten OIDC ALLOWED_HOSTS wildcard matching

The OIDC ALLOWED_HOSTS wildcard handling has been fixed to require full subdomain/path matches for *. and */ entries, preventing partial suffix matches from being incorrectly accepted.

Fixed TCP keep-alive and no-delay settings not being applied on TLS connections

Due to a Node.js bug, tls.connect() silently ignores keepAlive, keepAliveInitialDelay, and noDelay options passed through its constructor. This could cause idle connections - particularly through cloud load balancers like Azure (240s idle timeout) or AWS PrivateLink/NLB - to be dropped unexpectedly due to missing TCP keep-alive probes.

The driver now explicitly calls setKeepAlive() and setNoDelay() on the socket after creation, ensuring these settings are always applied regardless of whether TLS is used.

Bug Fixes

Documentation

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

v7.1.0

Compare Source

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)

v7.0.0

Compare Source

⚠ BREAKING CHANGES
  • NODE-7259: use alphas of all supporting packages (#​4746)
  • NODE-5510: dont filter change stream options (#​4723)
  • NODE-6296: remove cursor default batch size of 1000 (#​4729)
  • NODE-7150: update peer dependency matrix for 3rd party peer deps (#​4720)
  • NODE-7046: remove AWS uri/options support (#​4689)
  • NODE-4808: remove support for stream() transform on cursors and change streams (#​4728)
  • NODE-6377: remove noResponse option (#​4724)
  • NODE-6473: remove MONGODB-CR auth (#​4717)
  • NODE-5994: Remove metadata-related properties from public driver API (#​4716)
  • NODE-7016: remove beta namespace and move resource management into driver (#​4719)
  • NODE-4184: don't throw on aggregate with write concern and explain (#​4718)
  • NODE-7043, NODE-7217: adopt mongodb-client-encryption v7 (#​4705)
  • NODE-6065: throw MongoRuntimeError instead of MissingDependencyError in crypto connection (#​4711)
  • NODE-6584: improve typing for filepaths in AutoEncryptionOptions (#​4341)
  • NODE-6334: rename PoolRequstedRetry to PoolRequestedRetry (#​4696)
  • NODE-7174: drop support for Node16 and Node18 (#​4668)
  • NODE-7047: use custom credential provider first after URI (#​4656)
  • NODE-6988: require aws sdk for aws auth (#​4659)
Features
Bug Fixes
  • NODE-7067: Wrap socket write in a try/catch to ensure errors can be properly wrapped (#​4759) (66c18b7)
  • NODE-7232: only send endSessions during client close if the topology supports sessions (#​4722) (cc85ebf)
  • NODE-7247: clarify #rewrapManyDataKey() parameter types (#​4760) (cb522bf)
  • NODE-7270: remove extra BSONType file in docs/Next/variables (#​4754) (df3aaaa)

v6.22.0

Compare Source

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

Release Notes

[!WARNING]
Node Driver versions from v6.11.0 before v6.22.0 (this release) and from v7.0.0 before v7.8.0 are affected by a security issue related to the use of the experimental timeoutMS feature where connection pool desynchronization after operation timeout can expose other users' data (CVE-2026-119179). Users are encouraged to discontinue the use of timeoutMS as soon as possible.

timeoutMS is deprecated and now a no-op

[!WARNING]
timeoutMS and timeoutMode are deprecated and have no effect starting in this release. They are still accepted and will not throw, but operations will no longer time out because of them. They are slated for removal in a future release.

Use the per-stage timeouts instead: serverSelectionTimeoutMS, waitQueueTimeoutMS, socketTimeoutMS, and maxTimeMS for server-side execution.

Features

Documentation

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

v6.21.0

Compare Source

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

Release Notes

Deprecated items to be removed in 7.0.0

The following items have been deprecated and will be removed in 7.0.0:

MongoCredentials.authMechanismProperties.AWS_SESSION_TOKEN // URI & client options for AWS variables will no longer be respected
CommandOptions.noResponse // Unused
ConnectionOptions.cancellationToken // Unused
CursorStreamOptions // Only option, transform, removed in favor of Stream#map
Features
  • NODE-7230: add deprecations of items to be removed in v7 (#​4774) (5104c0f)

Documentation

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

v6.20.0

Compare Source

Features
  • NODE-6883: allow rawData option on time series collections (#​4642) (0fa3cd4)
  • NODE-7125: add db and client properties to collection and database objects (#​4640) (3469f86)
  • NODE-7134: allow hint with unacknowledged writes for delete, update and findAndModify commands (#​4647) (82d6ce6)
  • NODE-7139: remove pre-4.2 logic and deprecate dead code (#​4657) (14303bc)
  • NODE-7140: deprecate driver info options (#​4654) (b813c85)
  • NODE-7157: deprecate retryWrites in CommandOperationOptions (#​4661) (620972d)
Bug Fixes
  • NODE-4763: cache resumeToken in ChangeStream.tryNext() (#​4636) (8331a93)
  • NODE-6858: treat MongoServerSelectionError as a resumable error for Change Streams (#​4653) (c6d64e7)
  • NODE-7138: prevent duplicate metadata from being appended to handshake metadata (#​4651) (05c230c)

v6.19.0

Compare Source

Features

v6.18.0

Compare Source

Features
Bug Fixes
  • NODE-4845: allocate sessions lazily in cursors (#​4575) (5761703)
  • NODE-6589: background task does not prune idle connections when minPoolSize=0 (#​4569) (7cbb641)
  • NODE-6955: add missing wallTime property TS change stream event interfaces (#​4541) (f153c6f)

v6.17.0

Compare Source

Features
Bug Fixes
  • NODE-6638: throw if all atomic updates are undefined (#​4519) (9625b2d)
  • NODE-6864: socket errors are not always converted to MongoNetworkErrors (#​4473) (2d86095)
  • NODE-6962: OIDC machine workflows use OIDCCallbacks internally (#​4546) (bd6030f)

v6.16.0

Compare Source

Features
Bug Fixes
  • NODE-6630: read all messages in buffer when chunk arrives (#​4512) (8c86e30)
  • NODE-6878: documents.clear() throws a TypeError after cursor is rewound (#​4488) (a1fffeb)

v6.15.0

Compare Source

Features
Bug Fixes

v6.14.2

Compare Source

Bug Fixes
  • NODE-6803: kms proxy socket creates unhandled rejection (#​4444) (ed69cf9)

v6.14.1

Compare Source

Bug Fixes

v6.14.0

Compare Source

Features
  • NODE-6676: add support for nsType in change stream create events (#​4431) (7800067)
  • NODE-6773: add support for $lookup with automatic encryption (#​4427) (965b21a)
Bug Fixes
  • NODE-6765: FindOneAndUpdateOptions supports aggregation expressions (#​4423) (421ddeb)
  • NODE-6792: use isUint8Array from driver's utils instead of util/types (#​4436) (dfe1fba)
  • NODE-6794: revert @aws-sdk/credential-providers peer compatibility change (#​4437) (488c407)

v6.13.1

Compare Source

Bug Fixes
  • NODE-6407: use conversationId returned from server in saslContinue (#​4368) (fbefa6b)
  • NODE-6613: Update error messages when primaries go stale (#​4397) (6528c8d)
  • NODE-6690: Remove extraneous Document in replaceOne return type (#​4383) (6c81d4e)
  • NODE-6763: pass WriteConcernOptions instead on WriteConcernSettings (#​4421) (26f15d7)
  • NODE-6777: update BSON to 6.10.3 (#​4428) (db5b9e0)

v6.13.0

Compare Source

Features

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Nov 6, 2025
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 2 times, most recently from 9bbaa1f to d4b0f46 Compare November 11, 2025 18:25
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch from d4b0f46 to edfb01b Compare November 18, 2025 12:56
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch from edfb01b to f608255 Compare December 31, 2025 17:45
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from 11b93ae to 827b7e6 Compare January 12, 2026 18:10
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 2 times, most recently from 72dae89 to 2e5889e Compare January 26, 2026 04:39
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 4 times, most recently from 440bb15 to 1b7ddb9 Compare February 9, 2026 18:27
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 2 times, most recently from a4de94e to a2cd8c0 Compare February 16, 2026 05:46
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch from a2cd8c0 to a6a1c4c Compare February 23, 2026 05:27
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from 9839fab to 1a36340 Compare March 9, 2026 02:35
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from b8bf41b to edcf524 Compare March 16, 2026 05:09
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 2 times, most recently from 07c7dee to 581104b Compare March 27, 2026 12:35
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 2 times, most recently from 072e67b to 360f541 Compare April 6, 2026 05:15
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from df785fb to 64ece7e Compare April 20, 2026 04:41
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from 206d78e to 8c546a0 Compare June 11, 2026 17:59
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 2 times, most recently from 421cb9a to f7fa971 Compare June 30, 2026 21:40
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from b6df54a to 8e88f49 Compare July 12, 2026 13:06
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from 9e2486d to c8d0080 Compare July 17, 2026 08:48
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 2 times, most recently from 02d805e to 5634c7a Compare July 24, 2026 18:02
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from 49c7c26 to bc2402d Compare August 18, 2026 04:45
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch from bc2402d to 8946e3e Compare August 25, 2026 18:04
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch from 8946e3e to 7cb1c65 Compare September 16, 2026 02:10
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from 4eac79f to 2e4eb73 Compare September 30, 2026 20:59
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch from 2e4eb73 to 442e4c8 Compare October 13, 2026 12:42
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 3 times, most recently from 6ead11c to d52376e Compare October 26, 2026 04:45
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch from d52376e to e8d2ace Compare October 30, 2026 18:29
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch 2 times, most recently from bc8ba0c to 7e4a842 Compare November 13, 2026 06:36
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate
renovate Bot force-pushed the renovate/mongodb-7.x branch from 7e4a842 to 35d768e Compare November 13, 2026 22:35
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.

0 participants