Skip to content

chore(deps): bump mongodb from 2.0.0-alpha.1 to 2.0.0-beta.2#12

Closed
dependabot[bot] wants to merge 1 commit intoreleasefrom
dependabot/cargo/mongodb-2.0.0-beta.2
Closed

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

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Jun 28, 2021

Bumps mongodb from 2.0.0-alpha.1 to 2.0.0-beta.2.

Release notes

Sourced from mongodb's releases.

v2.0.0-beta.2

Description

The MongoDB Rust driver team is pleased to announce the v2.0.0-beta.2 release of the mongodb crate. This is the third beta release in preparation for the 2.0.0 stable release, and it contains a few breaking changes, API improvements, and bug fixes that were not included in the first two betas. As with the previous betas, we do not intend to make any further breaking changes before v2.0.0, but we may do so in another beta if any issues arise before then.

Highlighted changes

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

Update version of bson to v2.0.0-beta.2

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

Enable passing Option to builder methods (RUST-858)

In a previous release, the builder methods were updated to accept non-Option types, which came with a few ergonomic benefits. Unfortunately, this update made it difficult to pass in Options when needed. After receiving some feedback on this change from beta users, we decided to revert the builders back to the 1.x driver behavior, namely that the builder methods will now take Into<T>, regardless of whether T is an Option or not.

Remove default generic type of Collection (RUST-851)

In a previous release, the Database::collection methods and Cursor types were updated to no longer have Document as their default generic types. It was intended that Collection would be updated in the same manner, but the changes for it were accidentally omitted. This release fixes that, updating Collection to no longer have a default generic type, meaning the generic type of Collection must now always be specified.

Eliminate redundant clones (RUST-536)

A number of unnecessary clones of input documents and command responses were removed from the driver's operation execution logic, leading to significant performance improvements in certain situations. This is part of an ongoing effort to improve the driver's performance, with more changes to come in future releases.

Move trait bounds from Collection to implementation blocks (RUST-852)

In prior releases, the generic type T on Collection had a few trait bounds (e.g. DeserializeOwned and Serialize). These bounds could become cumbersome in certain situations where only a subset of them was required, such as when performing a find with a projection (i.e. a read-only type only needs to implement DeserializeOwned). To resolve this issue, the trait bounds were moved from Collection itself to the implementation blocks for the methods that require them, so the T only needs to implement the trait requirements for the methods it's used in.

For example, if a collection is only used for insertion, T only needs to implement Serialize:

#[derive(Debug, Serialize)]
struct Foo {
    name: String,
}
// wouldn't compile before because Foo isn't DeserializeOwned, but now compiles because T has no trait bounds
let collection = db.collection::<Foo>("foo");
// compiles because Foo is Serialize
collection.insert_one(Foo { name: "Foo".to_string() }, None).await?;
// doesn't compile since Foo isn't DeserializeOwned
collection.find_one(doc! {}, None).await?;

This also has the added benefit of allowing other structs and enums to contain Collection<T> without also having to inherit the trait bounds, as Collection<T> no longer has any.

Full Release Notes

... (truncated)

Commits
  • 08e2301 release v2.0.0-beta.2
  • d8eda15 RUST-852 Move Collection generic trait bounds to implementation (#379)
  • 9da94ab RUST-697 / RUST-701 Add sessions and transactions to unified runner (#376)
  • 38a3099 RUST-662 Expose errInfo as details in WriteError (#375)
  • 3312975 RUST-536 Eliminate redundant clones (#377)
  • 2f6d83b RUST-777 Sync cmap spec tests to pick up race condition fix (#378)
  • 4bd9f8e RUST-853 Only mark connection pools ready for data bearing servers or single ...
  • ab01ac0 RUST-695 Retry ConnectionPoolCleared errors (#365)
  • cce91ce minor: fix readme typo (#373)
  • 008e368 RUST-858 Use into field setter for typed-builder (#368)
  • 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)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Jun 28, 2021

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

@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Aug 9, 2021

Superseded by #20.

@dependabot dependabot Bot closed this Aug 9, 2021
@dependabot dependabot Bot deleted the dependabot/cargo/mongodb-2.0.0-beta.2 branch August 9, 2021 04:29
moogeric pushed a commit that referenced this pull request Oct 27, 2021
Signed-off-by: Stuart Broad <stuart@moogsoft.com>
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