-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore(main): release 6.4.0 [skip-ci] #3935
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
nbbeeken
merged 1 commit into
main
from
release-please--branches--main--components--mongodb
Feb 29, 2024
Merged
chore(main): release 6.4.0 [skip-ci] #3935
nbbeeken
merged 1 commit into
main
from
release-please--branches--main--components--mongodb
Feb 29, 2024
+40
−3
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
Contributor
|
run release_notes |
1 similar comment
Member
|
run release_notes |
75ce6b2 to
b898b19
Compare
Contributor
|
run release_notes |
a5c793f to
9150237
Compare
377b490 to
067c64a
Compare
3d44ee2 to
7d49f45
Compare
0dd14c5 to
8b682e2
Compare
8b682e2 to
b122829
Compare
Contributor
|
run release_notes |
faec2c7 to
cc73bc0
Compare
cc73bc0 to
13c4289
Compare
75c88ee to
06b6bec
Compare
06b6bec to
8cbe74f
Compare
Contributor
|
run release_note |
Contributor
|
run release_notes |
e45ad7b to
38b37c8
Compare
6c86262 to
6a71823
Compare
959000a to
2ec1b88
Compare
Contributor
|
run release_notes |
2ec1b88 to
6666028
Compare
Contributor
|
run release_notes |
Contributor
Author
aditi-khare-mongoDB
pushed a commit
that referenced
this pull request
Mar 6, 2024
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.4.0 (2024-02-29)
The MongoDB Node.js team is pleased to announce version 6.4.0 of the
mongodbpackage!Release Notes
Server selection will use a different Mongos on retry
When retrying reads or writes on a sharded cluster, the driver will attempt to select a different mongos for the retry if multiple are present. This should heuristically avoid encountering the original error that caused the need to retry the operation.
Caching AWS credentials provider per client
Instead of creating a new AWS provider for each authentication, we cache the AWS credentials provider per client to prevent overwhelming the auth endpoint and ensure that cached credentials are not shared with other clients.
BSON upgraded to
^6.4.0BSON has had a number of performance increases in the last two releases (6.3.0 and 6.4.0). Small basic latin (ASCII) only strings, small memory allocations (ObjectId and Decimal128) and numeric parsing operations (int32, doubles, and longs) have all had optimizations applied to them.
For details check out the release notes here: BSON 6.3.0 and BSON 6.4.0 🐎
ExceededTimeLimit was made a retryable reads error
The reading operations will be resumed after receiving the
ExceededTimeLimiterror.Fixed unresolved request issue in KMS requester
Internal to the field-level encryption machinery is a helper that opens a TLS socket to the KMS provider endpoint and submits a KMS request. The code neglected to add a
'close'event listener to the socket, which had the potential to improperly leave the promise pending indefinitely if no error was encountered.The base64 padding is now preserved in the saslContinue command
The authentication was rejected by the saslContinue command from mongosh due to missing "=" padding from the client. We fixed the way we parse payload to preserve trailing "="s.
countDocumentsnow types the filter using the collection SchemaPreviously,
countDocumentshad a weakly typedDocumenttype for the filter allowing any JS object as input. The filter is now typed asFilter<Schema>to enable autocompletion, and, hopefully, catch minor bugs.Thank you to @pashok88895 for contributing to this improvement.
The type error with
$addToSetinbulkWritewas fixedPreviously the following code sample would show a type error:
It happened because the driver's
Documenttype falls back toany, and internally we could not distinguish whether or not this assignment was intentional and should be allowed.After this change, users can extend their types from
Document/any, or use properties ofanytype and we skip the$addToSetvalidation in those cases.Fixed heartbeat duration including socket creation
The ServerHeartbeatSucceeded and ServerHeartbeatFailed event have a duration property that represents the time it took to perform the
hellohandshake with MongoDB. The Monitor responsible for issuing heartbeats mistakenly included the time it took to create the socket in this field, which inflates the value with the time it takes to perform a DNS lookup, TCP, and TLS handshakes.Errors on cursor transform streams are now properly propagated.
These were previously swallowed and now will be emitted on the
errorevent:The AWS token is now optional
Users may provide an
AWS_SESSION_TOKENas a client option or AWS configuration in addition to a username and password. But if the token is not provided, the driver won't throw an exception and let AWS SDK handle the request.Features
^6.4.0(#4007) (90f2f70)^6.3.0(#3983) (9401d09)Bug Fixes
Performance Improvements
Documentation
We invite you to try the
mongodblibrary immediately, and report any issues to the NODE project.