Skip to content

chore(deps): bump go.mongodb.org/mongo-driver/v2 from 2.1.0 to 2.6.1#21

Merged
kamir merged 1 commit into
mainfrom
dependabot/go_modules/go.mongodb.org/mongo-driver/v2-2.6.0
Jun 17, 2026
Merged

chore(deps): bump go.mongodb.org/mongo-driver/v2 from 2.1.0 to 2.6.1#21
kamir merged 1 commit into
mainfrom
dependabot/go_modules/go.mongodb.org/mongo-driver/v2-2.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 2, 2026

Copy link
Copy Markdown
Contributor

Bumps go.mongodb.org/mongo-driver/v2 from 2.1.0 to 2.6.1.

Release notes

Sourced from go.mongodb.org/mongo-driver/v2's releases.

MongoDB Go Driver 2.6.1

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!

MongoDB Go Driver 2.6.0

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

... (truncated)

Commits
  • 685cf13 BUMP v2.6.1
  • 7dba78a GODRIVER-3832: Fix mongo.ErrorCodes() with ClientBulkWriteException (… (#2426)
  • 6019145 GODRIVER-3924 Fix bug of unmarshaling null. (#2401)
  • a1840dc GODRIVER-3858 Split write batches by wire-message size, not document payload ...
  • 997abc7 GODRIVER-3858 Split write batches by wire-message size, not document payload ...
  • 19576a6 GODRIVER-3845 Add AGENTS.md and Claude configs. (#2375)
  • fd85a83 BUMP v2.6.0
  • 52b385d GODRIVER-3829 Cleanup skip list. (#2369)
  • 71375d7 Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp from 1.1...
  • 65f4e94 GODRIVER-3870 Use a generic type parameter for retry func in overload code ex...
  • Additional commits viewable in compare view

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label May 2, 2026
@kamir

kamir commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot dependabot Bot changed the title chore(deps): bump go.mongodb.org/mongo-driver/v2 from 2.1.0 to 2.6.0 chore(deps): bump go.mongodb.org/mongo-driver/v2 from 2.1.0 to 2.6.1 Jun 17, 2026
@dependabot dependabot Bot force-pushed the dependabot/go_modules/go.mongodb.org/mongo-driver/v2-2.6.0 branch from 029bc6c to 05199bc Compare June 17, 2026 13:59
@kamir

kamir commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot dependabot Bot force-pushed the dependabot/go_modules/go.mongodb.org/mongo-driver/v2-2.6.0 branch from 05199bc to 2ccbba8 Compare June 17, 2026 14:20
@kamir

kamir commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot dependabot Bot force-pushed the dependabot/go_modules/go.mongodb.org/mongo-driver/v2-2.6.0 branch from 2ccbba8 to 1b5e356 Compare June 17, 2026 14:29
@kamir

kamir commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

Bumps [go.mongodb.org/mongo-driver/v2](https://github.com/mongodb/mongo-go-driver) from 2.1.0 to 2.6.1.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](mongodb/mongo-go-driver@v2.1.0...v2.6.1)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver/v2
  dependency-version: 2.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/go_modules/go.mongodb.org/mongo-driver/v2-2.6.0 branch from 1b5e356 to 0c773dd Compare June 17, 2026 14:38
@kamir kamir merged commit 6d6c8e0 into main Jun 17, 2026
2 checks passed
@kamir kamir deleted the dependabot/go_modules/go.mongodb.org/mongo-driver/v2-2.6.0 branch June 17, 2026 14:40
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant