Repository navigation
The MongoDB Go Driver Team is pleased to release version 2.10.0 of the official MongoDB Go Driver.
Release Highlights
This release fixes a bug that prevented timeoutMS from being applied to session and transaction operations, and adds two new options intended for internal use only.
addCommandFields for Collection & IndexView APIs
Warning
The addCommandFields option is intended for internal use only. It may be changed or removed without notice at any time.
Allows adding arbitrary fields to Collection and IndexView commands.
collectionUUID for Client.BulkWrite
Warning
The collectionUUID option is intended for internal use only. It may be changed or removed without notice at any time.
Allows specifying a collectionUUID for bulk write requests.
What's Changed
✨ New Features
- GODRIVER-4000 Extend addCommandFields to all Collection & IndexView APIs by @qingyang-hu in #2649
- GODRIVER-3699 Add internal option to specify collection UUIDs in Client.BulkWrite by @matthewdale in #2691
🐛 Fixed
- GODRIVER-3787 Inherit timeoutMS at the session level by @ayesha-ilm in #2586
📦 Dependency Updates
- Bump github.com/klauspost/compress from 1.20.1 to 1.20.3 by @dependabot[bot] in #2686
- GODRIVER-4241 Update github.com/xdg-go/scram to v1.4.0 by @matthewdale in #2706
📝 Other Changes
- GODRIVER-4086 Add a CI section in AGENTS.md. by @qingyang-hu in #2612
- GODRIVER-4186: Reinforce that input to UpdateByID is a filter by @prestonvasquez in #2697
Full Changelog: v2.9.3...v2.10.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!