Skip to content

chore(deps): bump mongodb from 2.0.0-alpha.1 to 2.0.1#37

Closed
dependabot[bot] wants to merge 1 commit intoreleasefrom
dependabot/cargo/mongodb-2.0.1
Closed

chore(deps): bump mongodb from 2.0.0-alpha.1 to 2.0.1#37
dependabot[bot] wants to merge 1 commit intoreleasefrom
dependabot/cargo/mongodb-2.0.1

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Oct 13, 2021

Bumps mongodb from 2.0.0-alpha.1 to 2.0.1.

Release notes

Sourced from mongodb's releases.

v2.0.1

The MongoDB Rust driver team is pleased to announce the 2.0.1 release of the mongodb crate. This release includes a number of bug fixes:

  • RUST-1046 Fix iteration of cursors when batchSize doesn't divide result size (#484, #482)
  • RUST-1047 Ensure TopologyClosedEvent is the last SDAM event emitted (#485)
  • RUST-856 Fix race between server selection and server monitoring (#460)
  • RUST-992 Enable auth tests for PLAIN and fix default authSource for such (#451)

v2.0.0

Description

The MongoDB Rust driver team is pleased to announce the v2.0.0 release of the mongodb crate. This release is the culmination of several months of work, and it contains a number of new features, API improvements, and bug fixes. It is intended that this release will be very stable and that mongodb will not have another major release for quite a long time.

Note that the new minimum supported Rust version (MSRV) is now 1.48.0.

Highlighted changes

The following sections detail some of the more important breaking changes included in this release. For a full list of changes, see the Full Release Notes section below.

Update dependency on tokio to v1.x (RUST-633)

The async runtime crate tokio reached 1.0, and the driver's dependency on it was updated to 1.0 accordingly. This is a breaking change, since the driver will no longer work with earlier versions of tokio.

Update dependency on bson to v2.0.0 (RUST-1006)

The exported version of bson was updated to v2.0.0, which includes its own set of breaking changes. Check out the bson release notes for more information.

Transactions support (RUST-90)

This release adds driver support for transactions, which are supported on replica sets in MongoDB 4.0+ and on sharded clusters in MongoDB 4.2+. Transactions require the use of a ClientSession. Each operation in the transaction must pass the ClientSession into it via the _with_session suffixed version of the operation. For more information and detailed examples, see the ClientSession documentation.

use mongodb::options::{Acknowledgment, ReadConcern, TransactionOptions};
use mongodb::{
    bson::{doc, Document},
    options::WriteConcern,
};
let mut session = client.start_session(None).await?;
let txn_options = TransactionOptions::builder()
.write_concern(WriteConcern::builder().w(Acknowledgment::Majority).build())
.read_concern(ReadConcern::majority())
.build();
session.start_transaction(txn_options).await?;
collection
.insert_one_with_session(doc! { "x": 1 }, None, &mut session)
</tr></table>

... (truncated)

Commits
  • 9d6dd0b release v2.0.1
  • 1dc143b RUST-1047 Ensure TopologyClosedEvent is the last SDAM event emitted (#485)
  • 9944ae0 RUST-856 Fix race between server selection and server monitoring (#460)
  • 339d5b8 minor: use new rustdoc:: warn prefix (#457)
  • e6d4ab0 RUST-992 Enable auth tests for PLAIN and fix default authSource for such (#451)
  • ad22c49 RUST-1046 Fix iteration of cursors when batchSize doesn't divide result size ...
  • 648ebe3 release v2.0.0
  • 22adc2a RUST-1015 Publicly export ClusterTime type
  • ed94211 minor: fix options doc example
  • 13b8110 RUST-1006 Bump bson dependency to 2.0.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Oct 13, 2021

The following labels could not be found: domain: deps.

Bumps [mongodb](https://github.com/mongodb/mongo-rust-driver) from 2.0.0-alpha.1 to 2.0.1.
- [Release notes](https://github.com/mongodb/mongo-rust-driver/releases)
- [Commits](mongodb/mongo-rust-driver@v2.0.0-alpha.1...v2.0.1)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/cargo/mongodb-2.0.1 branch from c65cc5f to 40a9880 Compare October 27, 2021 17:30
@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Nov 15, 2021

Superseded by #48.

@dependabot dependabot Bot closed this Nov 15, 2021
@dependabot dependabot Bot deleted the dependabot/cargo/mongodb-2.0.1 branch November 15, 2021 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

0 participants