Merged
Conversation
02a5af3 to
61177ea
Compare
65218ec to
f837baa
Compare
d6fc09b to
b6aed61
Compare
69391d1 to
e8f6e3c
Compare
aed8122 to
d75af35
Compare
dd4b436 to
14a48f6
Compare
e1047cb to
73d7e76
Compare
0f3e8bb to
a9a7bdf
Compare
a9a7bdf to
07d0cf6
Compare
Contributor
|
run release_notes |
dariakp
approved these changes
Feb 4, 2026
Contributor
Author
|
🤖 Created releases: 🌻 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🌱 A new release!
7.1.0 (2026-02-02)
The MongoDB Node.js team is pleased to announce version 7.1.0 of the
mongodbpackage!Release Notes
🧩 Runtime and platform compatibility improvements
aws4package no longer required for AWS authenticationThe aws4 package is no longer required to use AWS authentication, reducing the dependency footprint.
Usages of
util.promisifyhave been removedThe driver no longer relies on Node.js’s
util.promisify()API, which improves compatibility with alternate runtimes.Explicit
node:processimport instead ofglobal.processThe driver now explicitly imports
node:processinstead of relying onglobal.process, allowing bundlers and alternate runtimes to supply and optimize theprocessimplementation more consistently.Node-specific platform APIs replaced with standards-based equivalents
The driver replaces several Node-specific APIs with standards-based equivalents:
process.arch→os.arch()process.platform→os.platform()os.endianness()→BSON.NumberUtilsprocess.hrtime()→performance.now()process.nextTick()→queueMicrotask()These changes reduce the number of patches required to run the driver outside of Node.js and improve compatibility with non-Node.js runtimes.
🔁 Connection resilience and retry behavior improvements
Connection churn avoidance in server overload scenarios
When server-side connection rate limiting is enabled and the rate limiter kicks in under periods of high connection establishment,the driver will additionally churn connections by clearing the pool every time the rate limiter rejects an incoming connection request.
In this new driver release, connection establishment failures no longer clear the pool, preventing unnecessary connection churn in these scenarios.
withTransactionnow applies exponential backoff during transaction retriesThe convenient transaction API,
withTransaction, now uses exponential backoff between retries when a transaction must be retried. Under high server load, this can help prevent transaction retry storms.Server selection deprioritizes servers during retries
When retrying a command, the driver now deprioritizes servers during server selection, improving stability and reducing the likelihood of repeatedly targeting overloaded or previously failed servers.
🔐 OIDC authentication improvements
Expanded the list of
ALLOWED_HOSTSfor OIDCOIDC authentication now supports hosts matching
*.mongo.comin its defaultALLOWED_HOSTSlist.OIDC reauthentication now works with
promoteValues: falseWhen
MongoClientis configured withpromoteValues: false(for applications that rely on raw BSON types), OIDC reauthentication now succeeds as expected.✅ Fixed read preference adherence for
$mergeand$outaggregationsResolved an issue where the driver failed to detect MongoDB 5.0+ capabilities due to incorrect
commonWireVersioninitialization. As a result, aggregations with write stages now correctly respectsecondaryandsecondaryPreferredread preferences, rather than forcing execution on the primary.Huge thanks to @crehbichler for discovering and investigating this bug and for implementing a fix!
RenameCollectionOptions.new_collectionThis option has been unused since driver 4.x. It is now deprecated and will be removed in a future major release. Existing code that sets this option can safely remove it with no behavioral change.
Features
Bug Fixes
Documentation
We invite you to try the
mongodblibrary immediately, and report any issues to the NODE project.