Skip to content

Update module go.mongodb.org/mongo-driver/v2 to v2.5.0 - abandoned#46318

Draft
renovate[bot] wants to merge 3 commits intomainfrom
renovate/go.mongodb.org-mongo-driver-v2-2.x
Draft

Update module go.mongodb.org/mongo-driver/v2 to v2.5.0 - abandoned#46318
renovate[bot] wants to merge 3 commits intomainfrom
renovate/go.mongodb.org-mongo-driver-v2-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Feb 24, 2026

This PR contains the following updates:

Package Change Age Confidence
go.mongodb.org/mongo-driver/v2 v2.3.1v2.5.0 age 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.5.0: MongoDB Go Driver 2.5.0

Compare Source

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

Release Highlights

This release adds a preview of CRUD support for prefix/suffix/substring indexes. Prefix, suffix and substring search are in preview and should be used for experimental workloads only. These features are unstable and their security is not guaranteed until released as Generally Available (GA). The GA version of these features may not be backwards compatible with the preview version.

Also, this release adds AsFloat64(), AsFloat64OK() to bson.RawValue, and DefaultDocumentMap() to bson.Decoder in the BSON package.

Additionally, this release adds ErrorCodes() to parse server error codes from an arbitrary Go error, and exposes atClusterTime in snapshot sessions.

Moreover, this release fixes several bugs, including potential heap out-of-bounds read in GSSAPI error handling.

What's Changed

✨ New Features
🐛 Fixed
📦 Dependency Updates
📝 Other Changes

New Contributors

Full Changelog: mongodb/mongo-go-driver@v2.4.2...v2.5.0

For a full list of tickets included in this release, please see the list of fixed issues.

Documentation for the Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. For issues with, questions about, or feedback for the Go Driver, please look into our support channels, including StackOverflow. 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 Go Driver is greatly appreciated!

v2.4.2: MongoDB Go Driver 2.4.2

Compare Source

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

Release Highlights

This release fixes buffer handling in GSSAPI error description and username functions.

What's Changed

🐛 Fixed

Full Changelog: mongodb/mongo-go-driver@v2.4.1...v2.4.2

For a full list of tickets included in this release, please see the list of fixed issues.

Documentation for the Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. For issues with, questions about, or feedback for the Go Driver, please look into our support channels, including StackOverflow. 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 Go Driver is greatly appreciated!

v2.4.1: MongoDB Go Driver 2.4.1

Compare Source

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

What's Changed

🐛 Fixed
📝 Other Changes

Full Changelog: mongodb/mongo-go-driver@v2.4.0...v2.4.1

For a full list of tickets included in this release, please see the list of fixed issues.

Documentation for the Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. For issues with, questions about, or feedback for the Go Driver, please look into our support channels, including StackOverflow. 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 Go Driver is greatly appreciated!

v2.4.0: MongoDB Go Driver 2.4.0

Compare Source

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

Release Highlights

[!IMPORTANT]
Go Driver v2.4 requires MongoDB 4.2 or newer.

This release adds a new method Client.AppendDriverInfo that adds information to the driver metadata sent on subsequent connection handshakes.

What's Changed

✨ New Features
📝 Other Changes

New Contributors

Full Changelog: mongodb/mongo-go-driver@v2.3.1...v2.4.0

For a full list of tickets included in this release, please see the list of fixed issues.

Documentation for the Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. For issues with, questions about, or feedback for the Go Driver, please look into our support channels, including StackOverflow. 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 Go Driver is greatly appreciated!


Configuration

📅 Schedule: Branch creation - "on tuesday" (UTC), 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 February 24, 2026 09:00
@renovate renovate bot added dependencies Pull requests that update a dependency file renovatebot labels Feb 24, 2026
@renovate renovate bot requested a review from evan-bradley February 24, 2026 09:00
Copy link
Copy Markdown
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dyl10s
Copy link
Copy Markdown
Contributor

dyl10s commented Feb 24, 2026

Previous conversation about this: #44835

Updating this package would mean dropping support for MongoDB versions < 4.2

@renovate renovate bot changed the title Update module go.mongodb.org/mongo-driver/v2 to v2.5.0 Update module go.mongodb.org/mongo-driver/v2 to v2.5.0 - abandoned Feb 27, 2026
@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Feb 27, 2026

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

@songy23 songy23 added the never stale Issues marked with this label will be never staled and automatically removed label Mar 11, 2026
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 dependency issue never stale Issues marked with this label will be never staled and automatically removed receiver/mongodb renovatebot waiting-for-code-owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants