Skip to content

chore(main): release 7.1.0#4795

Merged
dariakp merged 1 commit intomainfrom
release-please--branches--main--components--mongodb
Feb 4, 2026
Merged

chore(main): release 7.1.0#4795
dariakp merged 1 commit intomainfrom
release-please--branches--main--components--mongodb

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 13, 2025

🌱 A new release!

7.1.0 (2026-02-02)

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

Release Notes

🧩 Runtime and platform compatibility improvements

aws4 package no longer required for AWS authentication

The aws4 package is no longer required to use AWS authentication, reducing the dependency footprint.

Usages of util.promisify have been removed

The driver no longer relies on Node.js’s util.promisify() API, which improves compatibility with alternate runtimes.

Explicit node:process import instead of global.process

The driver now explicitly imports node:process instead of relying on global.process, allowing bundlers and alternate runtimes to supply and optimize the process implementation more consistently.

Node-specific platform APIs replaced with standards-based equivalents

The driver replaces several Node-specific APIs with standards-based equivalents:

  • process.archos.arch()
  • process.platformos.platform()
  • os.endianness()BSON.NumberUtils
  • process.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.

withTransaction now applies exponential backoff during transaction retries

The 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_HOSTS for OIDC

OIDC authentication now supports hosts matching *.mongo.com in its default ALLOWED_HOSTS list.

OIDC reauthentication now works with promoteValues: false

When MongoClient is configured with promoteValues: false (for applications that rely on raw BSON types), OIDC reauthentication now succeeds as expected.

✅ Fixed read preference adherence for $merge and $out aggregations

Resolved an issue where the driver failed to detect MongoDB 5.0+ capabilities due to incorrect commonWireVersion initialization. As a result, aggregations with write stages now correctly respect secondary and secondaryPreferred read preferences, rather than forcing execution on the primary.

Huge thanks to @crehbichler for discovering and investigating this bug and for implementing a fix!

⚠️ Deprecations

RenameCollectionOptions.new_collection

This 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 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 November 13, 2025 16:42
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch 2 times, most recently from 02a5af3 to 61177ea Compare November 18, 2025 18:18
@github-actions github-actions bot changed the title chore(main): release 7.0.1 chore(main): release 7.1.0 Nov 20, 2025
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch 2 times, most recently from 65218ec to f837baa Compare November 24, 2025 16:12
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch 4 times, most recently from d6fc09b to b6aed61 Compare December 3, 2025 19:54
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch 5 times, most recently from 69391d1 to e8f6e3c Compare December 17, 2025 15:13
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch 3 times, most recently from aed8122 to d75af35 Compare December 19, 2025 13:13
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch 7 times, most recently from dd4b436 to 14a48f6 Compare January 14, 2026 15:37
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch 4 times, most recently from e1047cb to 73d7e76 Compare January 23, 2026 09:29
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch 3 times, most recently from 0f3e8bb to a9a7bdf Compare January 30, 2026 17:01
@github-actions github-actions bot force-pushed the release-please--branches--main--components--mongodb branch from a9a7bdf to 07d0cf6 Compare February 2, 2026 18:37
@dariakp
Copy link
Contributor

dariakp commented Feb 3, 2026

run release_notes

@dariakp dariakp merged commit b7cd1ef into main Feb 4, 2026
22 of 27 checks passed
@dariakp dariakp deleted the release-please--branches--main--components--mongodb branch February 4, 2026 01:22
@github-actions
Copy link
Contributor Author

github-actions bot commented Feb 4, 2026

🤖 Created releases:

🌻

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

Comments