Skip to content

chore(deps): update go.mongodb.org/mongo-driver to v2 - autoclosed#67

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/go.mongodb.org-mongo-driver-2.x
Closed

chore(deps): update go.mongodb.org/mongo-driver to v2 - autoclosed#67
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/go.mongodb.org-mongo-driver-2.x

Conversation

@renovate

@renovate renovate Bot commented Feb 23, 2025

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
go.mongodb.org/mongo-driver v1.17.9v2.7.0 age adoption passing confidence

Release Notes

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

v2.7.0: MongoDB Go Driver 2.7.0

Compare Source

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

Release Highlights

This release adds support for sending afterClusterTime on writes in causally consistent sessions, improving alignment between read and write behavior in session-based workflows. It also continues cleanup of session-related and internal-only APIs by deprecating the experimental session API, helping clarify which surfaces are intended for long-term public use. Alongside that, the release includes a handful of targeted quality improvements across BSON validation, change streams, and error reporting to make the driver more predictable and easier to debug.

What's Changed

✨ New Features
🐛 Fixed
📝 Other Changes

New Contributors

Full Changelog: mongodb/mongo-go-driver@v2.6.2...v2.7.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.6.2: MongoDB Go Driver 2.6.2

Compare Source

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

Release Highlights

This release excludes non-I/O TLS errors from backpressure labels, aligning error labeling more closely with the CMAP specification. This fixes cases where protocol-level TLS handshake failures, such as certificate validation, hostname mismatch, fatal alerts, or malformed record headers, could be incorrectly classified as overload-related errors. As a result, these failures are handled more accurately during connection establishment and SDAM/pool error processing.

What's Changed

🐛 Fixed

Full Changelog: mongodb/mongo-go-driver@v2.6.1...v2.6.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.6.1: MongoDB Go Driver 2.6.1

Compare Source

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

Release Highlights

This release fixes batched writes to split by full wire-message size instead of document payload size, preventing near-limit InsertMany failures; fixes unmarshaling of null and undefined values into raw BSON types such as bson.Raw, bsoncore.Document, and bsoncore.Array; and fixes mongo.ErrorCodes() to return codes for ClientBulkWriteException, including duplicate-key errors from client bulk writes.

What's Changed

🐛 Fixed

New Contributors

Full Changelog: mongodb/mongo-go-driver@v2.6.0...v2.6.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.6.0: MongoDB Go Driver 2.6.0

Compare Source

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

Release Highlights

[!IMPORTANT]
Go Driver v2.6 will be the last minor version to support MongoDB 4.2. Go Driver v2.7 will require MongoDB 4.4 or newer.

This release adds support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features. The driver now gracefully handles write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability.

Two new methods of ClientOptions are available:

  • SetMaxAdaptiveRetries - specifies the maximum number of times the driver should retry operations that fail with a server side overload error. If not invoked, the default is 2. MaxAdaptiveRetries can also be set through the "maxAdaptiveRetries" URI option (e.g. "maxAdaptiveRetries=5").
  • SetEnableOverloadRetargeting - specifies whether the driver should enable overload retargeting for operations that fail with a server side overload error. If not invoked, the default is false. EnableOverloadRetargeting can also be set through the "enableOverloadRetargeting" URI option (e.g. "enableOverloadRetargeting=true").

What's Changed

✨ New Features

Full Changelog: mongodb/mongo-go-driver@v2.5.1...v2.6.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.5.1: MongoDB Go Driver 2.5.1

Compare Source

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

Release Highlights

This release fixes two BSON unmarshaling edge cases.

What's Changed

🐛 Fixed

Full Changelog: mongodb/mongo-go-driver@v2.5.0...v2.5.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.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.4: MongoDB Go Driver 2.4.4

Compare Source

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

[!NOTE]
Due to a bug in the Go Driver release automation, there are no release notes for version 2.4.3. Go Driver 2.4.4 and 2.4.3 are functionally identical.

Release Highlights

This release fixes a resource leak in the RTT monitor and fixes logging for transaction operations.

What's Changed
🐛 Fixed

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

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

Compare Source

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!

v2.3.1: MongoDB Go Driver 2.3.1

Compare Source

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

Release Highlights

This release applies client-level timeouts for tailable/awaitData cursors, and fixes a bug that causes a tight loop when there are no selectable servers.

What's Changed

🐛 Fixed
📝 Other Changes

Full Changelog: mongodb/mongo-go-driver@v2.3.0...v2.3.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.3.0: MongoDB Go Driver 2.3.0

Compare Source

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

Release Highlights

[!IMPORTANT]
Go Driver v2.3 will be the last release to support MongoDB 4.0. Go Driver v2.4 will require MongoDB 4.2 or newer.

[!IMPORTANT]
The minimum Go version for Go Driver v2.3 is Go 1.19.

This release improves BSON unmarshal performance to fix the regression in v2.0 and fixes bugs in logging truncation and cursor timeouts.

What's Changed

🐛 Fixed
📦 Dependency Updates
📝 Other Changes

New Contributors

Full Changelog: mongodb/mongo-go-driver@v2.2.3...v2.3.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. 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 Go Driver is greatly appreciated!

v2.2.3: MongoDB Go Driver 2.2.3

Compare Source

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

Release Notes

This release updates the DefaultClient to use a non-default global DefaultTransport. This way, the program will not panic if the user changes the global http.DefaultTransport variable. The client is created as needed.


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

Full Changelog: v2.2.2...v2.2.3

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. 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 Go Driver is greatly appreciated!

v2.2.2: MongoDB Go Driver 2.2.2

Compare Source

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

Release Notes

This release resolves three bugs in the Go Driver: it removes a buggy and unnecessary connection liveness check that could run unexpectedly or fail intermittently when maxIdleTimeMS was set, and it fixes an issue in decoding to overwrite prepopulated slice. Also, a unmarshaler for gridfs.File is added.


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

Full Changelog: v2.2.1...v2.2.2

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. 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 Go Driver is greatly appreciated!

What's Changed

New Contributors

Full Changelog: mongodb/mongo-go-driver@v2.2.1...v2.2.2

v2.2.1: MongoDB Go Driver 2.2.1

Compare Source

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

Release Notes

This release enhances BSON encoding performance by using sync.Pool for value writers and readers during encoding and decoding, leading to better memory allocation and improved efficiency. Note that further regressions from version 1 may be addressed in GODRIVER-3450, with this update focusing on reinstating optimizations removed in the version 2 implementation. Performance may not be 1-1 with v1 since v2 suggests using the bufio package for byte management rather than a raw byte slice.

What's Changed

Full Changelog: mongodb/mongo-go-driver@v2.2.0...v2.2.1
JIRA Release Notes: https://jira.mongodb.org/projects/GODRIVER/versions/43096

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. 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 Go Driver is gre

Note

PR body was truncated to here.

@codecov-commenter

codecov-commenter commented Feb 23, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 15.16%. Comparing base (9f5f2b7) to head (8f92e6a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #67   +/-   ##
=======================================
  Coverage   15.16%   15.16%           
=======================================
  Files          28       28           
  Lines         897      897           
=======================================
  Hits          136      136           
  Misses        755      755           
  Partials        6        6           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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-2.x branch 2 times, most recently from 172515b to 4bd7841 Compare February 27, 2025 03:30
@renovate

renovate Bot commented Feb 27, 2025

Copy link
Copy Markdown
Contributor Author

ℹ Artifact update notice

File name: 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

@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from 4bd7841 to 66e8dc6 Compare March 2, 2025 22:21
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from 66e8dc6 to 2949e3d Compare March 11, 2025 11:37
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from 6468c83 to 7fa12dd Compare April 9, 2025 19:58
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from 7fa12dd to c0a8c15 Compare April 24, 2025 13:42
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from c0a8c15 to f4461c4 Compare May 6, 2025 20:18
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from 4049a67 to e9bbda4 Compare June 9, 2025 03:01
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from e9bbda4 to b4c1123 Compare July 20, 2025 20:29
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from b4c1123 to f49018d Compare August 6, 2025 00:51
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from 36e9009 to d4943f4 Compare August 14, 2025 01:44
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from d4943f4 to 9a13372 Compare September 7, 2025 17:39
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from 9a13372 to fb1c047 Compare September 22, 2025 05:48
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from 16e8596 to d1df3da Compare October 9, 2025 17:38
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from 169fe82 to 633f7a7 Compare November 3, 2025 05:45
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from 633f7a7 to 807268b Compare December 10, 2025 02:15
@renovate

renovate Bot commented Dec 15, 2025

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: 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/xdg-go/scram v1.1.2 -> v1.2.0

@renovate renovate Bot changed the title chore(deps): update go.mongodb.org/mongo-driver to v2 chore(deps): update go.mongodb.org/mongo-driver to v2 - autoclosed Dec 17, 2025
@renovate renovate Bot closed this Dec 17, 2025
@renovate renovate Bot deleted the renovate/go.mongodb.org-mongo-driver-2.x branch December 17, 2025 14:54
@renovate renovate Bot changed the title chore(deps): update go.mongodb.org/mongo-driver to v2 - autoclosed chore(deps): update go.mongodb.org/mongo-driver to v2 Dec 21, 2025
@renovate renovate Bot reopened this Dec 21, 2025
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from 807268b to 957e074 Compare December 21, 2025 18:44
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 3 times, most recently from 007bd84 to 816fb6d Compare January 28, 2026 19:01
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from 754ac64 to 9d5e61c Compare February 2, 2026 17:37
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from e6bd00a to ab1d656 Compare February 12, 2026 12:05
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from ab1d656 to 6e25e61 Compare February 24, 2026 15:19
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from 6e25e61 to d2a0e1c Compare March 13, 2026 16:50
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from d2a0e1c to 50f1549 Compare April 1, 2026 17:37
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from 50f1549 to b171a96 Compare April 15, 2026 01:31
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from b171a96 to 14aae33 Compare April 28, 2026 01:35
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from e9c4128 to 2dd8cba Compare May 18, 2026 20:02
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch from 2dd8cba to 75050e5 Compare June 16, 2026 02:12
@renovate renovate Bot changed the title chore(deps): update go.mongodb.org/mongo-driver to v2 chore(deps): update go.mongodb.org/mongo-driver to v2 - autoclosed Jun 16, 2026
@renovate renovate Bot closed this Jun 16, 2026
@renovate renovate Bot changed the title chore(deps): update go.mongodb.org/mongo-driver to v2 - autoclosed chore(deps): update go.mongodb.org/mongo-driver to v2 Jun 21, 2026
@renovate renovate Bot reopened this Jun 21, 2026
@renovate renovate Bot force-pushed the renovate/go.mongodb.org-mongo-driver-2.x branch 2 times, most recently from 75050e5 to 8f92e6a Compare June 21, 2026 16:48
@renovate renovate Bot changed the title chore(deps): update go.mongodb.org/mongo-driver to v2 chore(deps): update go.mongodb.org/mongo-driver to v2 - autoclosed Jun 24, 2026
@renovate renovate Bot closed this Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant