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
- GODRIVER-3473 Short-cicruit cursor.next() on invalid timeouts by @prestonvasquez in #2135
- GODRIVER-3605 Refactor StringN by @qingyang-hu in #2128
- fix wiremessage oob in case of intmin by @kobrineli in #2076
📦 Dependency Updates
- GODRIVER-3515 Bump the minimum Go Version to 1.19 by @prestonvasquez in #2054
📝 Other Changes
- GODRIVER-3587 Use raw bytes in valueReader by @prestonvasquez in #2120
- optimize allocations in redactStartedInformationCmd by @isopov in #2129
- GODRIVER-3102: Perf comparison by @zhouselena in #2134
- GODRIVER-3102: Perf comp PR comment pipeline by @zhouselena in #2149
- Add CODEOWNERS file by @alcaeus in #2018
- GODRIVER-3444 Adjust getMore maxTimeMS Calculation for tailable awaitData Cursors by @prestonvasquez in #1925
- DEVPROD-17319 - update perf.send command to new results end point by @MAhmadShah in #2029
- GODRIVER-3550 Update Documentation for Go Driver Branching and Merge … by @prestonvasquez in #2045
- GODRIVER-3361 Improve connection error message. by @qingyang-hu in #2027
- Add configuration for automated release notes by @alcaeus in #2047
- Update README.md by @rishitb-mongodb in #2055
- GODRIVER-3494 Deprecate hedged read preference methods. by @matthewdale in #2100
- GODRIVER-3457: Pilot using OpenSSF Scorecard by @zhouselena in #2104
- GODRIVER-3457: Add OpenSSF Scorecard to README by @zhouselena in #2105
- GODRIVER-3518: Test flexible numeric comparisons with $$lte by @zhouselena in #2106
- drivertest: name an anonymous error by @mmcclimon in #2115
- GODRIVER-3397 Remove the MONGODB-CR auth mechanism. by @matthewdale in #2103
- GODRIVER-3399: PoolClearedError should have TransientTransactionError label appended to it by @zhouselena in #2114
- Add guidelines for contributing features to the Go Driver by @alcaeus in #2125
New Contributors
- @MAhmadShah made their first contribution in #2029
- @rishitb-mongodb made their first contribution in #2055
- @mmcclimon made their first contribution in #2115
Full Changelog: 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!