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
- GODRIVER-3858 Split write batches by wire-message size, not document payload by @koenno in #2360
- GODRIVER-3858 split write batches by wire-message size, not document payload by @qingyang-hu in #2382
- GODRIVER-3924 Fix bug of unmarshaling null. by @qingyang-hu in #2401
- GODRIVER-3832: Fix mongo.ErrorCodes() with ClientBulkWriteException (… by @prestonvasquez in #2426
New Contributors
Full Changelog: 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!