fix(deps): update rust crate mongodb to 2.3.0 #37
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.
This PR contains the following updates:
2.2.2->2.3.0Release Notes
mongodb/mongo-rust-driver
v2.3.0Compare Source
The MongoDB Rust driver team is pleased to announce the v2.3.0 release of the
mongodbcrate, now available for download from crates.io.Highlighted Changes
The following sections detail some of the major changes included in this release. For a full list of changes, see the Full Release Notes section below.
MSRV Increase (RUST-1263)
The minimum supported Rust version (MSRV) for this crate is now Rust 1.53.
MongoDB 6.0 Support
This release adds support for a number of new features added in MongoDB 6.0, including change streams with document pre- and post-images and clustered collections.
MongoDB 6.0 is now GA and available for use on MongoDB Atlas, and can also be downloaded here. Release notes for MongoDB 6.0 can be found here.
Changes to
mongodb::Collection::estimated_document_countimplementation (RUST-1216)When adding support for MongoDB 5.0, the driver's implementation of
estimated_document_countwas changed from using thecountcommand to theaggregatecommand with the$collStatsaggregation stage. This change first appeared in our2.0.0-alpha.1release. This change inadvertently broke support for using this method on views, as they do not support using$collStats.In this release, we have reverted that change, and
estimated_document_countis now once again implemented using thecountcommand.Please note that due to an oversight,
countwas omitted from the MongoDB Stable API version 1 in MongoDB server versions 5.0.0-5.0.8 and 5.1.0-5.3.1. Consequently, users of the Stable API who useestimated_document_countare recommended to either upgrade their MongoDB clusters to 5.0.9+ or 5.3.2+ (if on Atlas), or to setClientOptions.server_api.stricttofalsewhen constructingClients.New
ConnectionStringtypeRUST-1193 introduced a new public
mongodb::options::ConnectionStringtype, which models a MongoDB connection string. This type can be used to parse a connection string and inspect and manipulate its contents, and to initialize amongodb::options::ClientOptions, and in turn amongodb::Client.For example:
The differences between a
ConnectionStringandClientOptionsare that:ConnectionStringonly contains client options that are universal across MongoDB drivers and can be set via a MongoDB connection string, whereasClientOptionsalso contains Rust driver-specific options,mongodb+srvconnection string, initializing aClientOptionswill perform SRV and TXT lookup, whereas initializing aConnectionStringwill not. Note that if aConnectionStringis initialized and then used to construct aClientOptionsor aClient, SRV/TXT lookup will be performed at that time.Included Tickets
Below are a selected list of tickets with user impact; for a full list of completed tickets see this Jira query.
Bug
commitTransactionretry sometimes fails withInvalidOptionserrorServerDescriptionChangedEvents for servers with errors always emitted even when description does not changeNew Feature
letoption for multiple CRUD commandsConnectionStringtypecommentoption toEstimatedDocumentCountOptionswallTimein the change stream event outputTask
maxWireVersionfor MongoDB 6.0Improvement
estimated_document_countConfiguration
📅 Schedule: 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.
This PR has been generated by Mend Renovate. View repository job log here.