-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore(main): release 6.16.0 [skip-ci] #4489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
baileympearson
merged 1 commit into
main
from
release-please--branches--main--components--mongodb
Apr 21, 2025
Merged
chore(main): release 6.16.0 [skip-ci] #4489
baileympearson
merged 1 commit into
main
from
release-please--branches--main--components--mongodb
Apr 21, 2025
+18
−4
Conversation
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
b1d691d
to
61f44c1
Compare
remember: server version warning |
run release_notes |
2 similar comments
run release_notes |
run release_notes |
32650b6
to
a7efa3c
Compare
6d464e1
to
05f199e
Compare
e51048e
to
55a735e
Compare
run release_notes |
55a735e
to
3334517
Compare
run release_notes |
3334517
to
3a64368
Compare
run release_notes |
3a64368
to
52d7c6e
Compare
run release_notes |
3 similar comments
run release_notes |
run release_notes |
run release_notes |
baileympearson
approved these changes
Apr 21, 2025
🤖 Created releases: 🌻 |
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!
6.16.0 (2025-04-21)
The MongoDB Node.js team is pleased to announce version 6.16.0 of the
mongodb
package!Release Notes
distinct commands now support an index hint
The
Collection.distinct()
method now supports an optionalhint
, which can be used to tell the server which index to use for the command:This requires server 7.1+.
Driver support for servers <=4.0 deprecated
Warning
Node driver support for server 4.0 will be removed in an upcoming minor release. Reference: MongoDB Software Lifecycle Schedules.
Fix processing of multiple messages within one network data chunk
During elections, or other scenarios where the server is pushing multiple topology updates to the driver in a short period of time, a bug in the driver's socket code led to backlog of topology updates that would remain in the buffer until another heartbeat arrived from the server. This could lead to delays in the driver recovering from an election and/or an increase in MongoServerSelectionErrors.
Now, all messages in the current buffer are returned to the driver leading to faster processing times.
Huge thank you to @andreim-brd for sharing a self-contained reproduction that proved to be instrumental in the identification of the underlying issue!
FindCursor.rewind() throws
documents?.clear() is not a function
errors in certain scenariosIn certain scenarios where limit and batchSize are both set on a FindCursor, an internal driver optimization intended to prevent unnecessary requests to the server when the driver knows the cursor is exhausted would prevent the cursor from being rewound. This issue has been resolved.
Features
hint
on distinct commands (#4487) (40d0e87)Bug Fixes
Documentation
We invite you to try the
mongodb
library immediately, and report any issues to the NODE project.