Skip to content

fix(deps): update module go.mongodb.org/mongo-driver/v2 to v2.2.1 - #7306

Merged
dmathieu merged 1 commit into
mainfrom
renovate/go.mongodb.org-mongo-driver-v2-2.x
May 7, 2025
Merged

fix(deps): update module go.mongodb.org/mongo-driver/v2 to v2.2.1#7306
dmathieu merged 1 commit into
mainfrom
renovate/go.mongodb.org-mongo-driver-v2-2.x

Conversation

@renovate

@renovate renovate Bot commented May 7, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
go.mongodb.org/mongo-driver/v2 v2.0.0 -> v2.2.1 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

mongodb/mongo-go-driver (go.mongodb.org/mongo-driver/v2)

v2.2.1

Compare Source

v2.2.0: MongoDB Go Driver 2.2.0

Compare Source

The MongoDB Go Driver team is pleased to release version 2.2.0 of the official MongoDB Go Driver.

Release Notes

This release includes support for a global omitempty setting to omit empty values when encoding BSON, instead of requiring tagging on individual struct fields. We have implemented support for errors.Is and errors.As in all stable public APIs for improved error management. Also included is support to configure the lifetime of the Data Encryption Key (DEK) cache as well as Kubernetes Support for OIDC.

Additionally MongoDB Server Version 3.6 has been marked as end-of-life (EOL) and is no longer supported by the driver. Users are advised to upgrade to a supported version.


For a full list of tickets included in this release, please see the links below:

Full Changelog: v2.1.0...v2.2.0

Note: The Go Driver team has implemented a workflow action to automatically merge up PRs between v1 and master. This has resulted in an over-extended changelog for this version, including v1 commits for PRs that have already been cherry-picked to master. Please see the associated tickets for commits directly associated with this release.

Documentation for the MongoDB Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. Questions and inquiries can be asked on the MongoDB Developer Community. Bugs can be reported in the Go Driver project in the MongoDB JIRA where a list of current issues can be found. Your feedback on the MongoDB Go Driver is greatly appreciated!

v2.1.0: MongoDB Go Driver 2.1.0

Compare Source

The MongoDB Go Driver Team is pleased to release version 2.1.0 of the official MongoDB Go Driver.

Release Notes

This release adds support for the new bulk write API added in MongoDB 8.0 and the new BSON vector datatype used in Atlas Vector Search.

Additionally, support for MongoDB 3.6 and below was deprecated in v2.0.0 and will be dropped in the next minor version release (v2.2.0).

New BulkWrite API

The new Client.BulkWrite method can perform many insert, update, and delete operations on multiple databases and collections in one request. In contrast, the existing Collection.BulkWrite method can only modify a single collection.

BSON Vector Datatype

The new bson.Vector type makes inserting and querying vector data using Atlas Vector Search easier and more efficient.


For a full list of tickets included in this release, please see the links below:

Full Changelog: v2.0.1...v2.1.0

Documentation for the MongoDB Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. Questions and inquiries can be asked on the MongoDB Developer Community. Bugs can be reported in the Go Driver project in the MongoDB JIRA where a list of current issues can be found. Your feedback on the MongoDB Go Driver is greatly appreciated!

v2.0.1: MongoDB Go Driver 2.0.1

Compare Source

The MongoDB Go Driver team is pleased to release version 2.0.1 of the official MongoDB Go Driver.

Release Notes

This release includes various bug fixes and improvements:

  • Allows SRV hostnames with only a domain name and TLD (e.g. "service-name.tld").
  • Detects joined errors correctly in IsNetworkError and WithTransaction.
  • Fixes a memory buffer reuse bug in MarshalValue that can cause marshaled bytes to become corrupted.
  • No longer returns nil from MergeClientOptions when only one nil argument is passed.
  • Skips calling UnmarshalBSONValue only if the associated BSON field value is null and the Go value is a pointer.

For a full list of tickets included in this release, please see the links below:

Full Changelog: v2.0.0...v2.0.1

Documentation for the MongoDB Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. Questions and inquiries can be asked on the MongoDB Developer Community. Bugs can be reported in the Go Driver project in the MongoDB JIRA where a list of current issues can be found. Your feedback on the MongoDB Go Driver is greatly appreciated!


Configuration

📅 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from a team as a code owner May 7, 2025 08:16
@renovate renovate Bot added dependencies Pull requests that update a dependency file Skip Changelog Allow PR to succeed without requiring an addition to the CHANGELOG labels May 7, 2025
@renovate

renovate Bot commented May 7, 2025

Copy link
Copy Markdown
Contributor Author

ℹ Artifact update notice

File name: instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
github.com/golang/snappy v0.0.4 -> v1.0.0

@github-actions
github-actions Bot requested a review from prestonvasquez May 7, 2025 08:16
@codecov

codecov Bot commented May 7, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.2%. Comparing base (72e3037) to head (ded9d04).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #7306   +/-   ##
=====================================
  Coverage   81.2%   81.2%           
=====================================
  Files        207     207           
  Lines      18263   18263           
=====================================
  Hits       14835   14835           
  Misses      3007    3007           
  Partials     421     421           

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renovate
renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-v2-2.x branch from e92286e to ded9d04 Compare May 7, 2025 08:32
@dmathieu
dmathieu merged commit 64d23e0 into main May 7, 2025
@dmathieu
dmathieu deleted the renovate/go.mongodb.org-mongo-driver-v2-2.x branch May 7, 2025 08:44
@MrAlias MrAlias added this to the v1.36.0 milestone May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file Skip Changelog Allow PR to succeed without requiring an addition to the CHANGELOG

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants