Skip to content

MongoDB Go Driver 2.0.1

Latest
Compare
Choose a tag to compare
@mongodb-dbx-release-bot mongodb-dbx-release-bot released this 21 Feb 18:24
· 23 commits to master since this release

The MongoDB Go Driver team is pleased to release version 2.0.1 of the official MongoDB Go Driver.

Release Notes

This release includes various bug fixes and improvements:

  • Allows SRV hostnames with only a domain name and TLD (e.g. "service-name.tld").
  • Detects joined errors correctly in IsNetworkError and WithTransaction.
  • Fixes a memory buffer reuse bug in MarshalValue that can cause marshaled bytes to become corrupted.
  • No longer returns nil from MergeClientOptions when only one nil argument is passed.
  • Skips calling UnmarshalBSONValue only if the associated BSON field value is null and the Go value is a pointer.

For a full list of tickets included in this release, please see the links below:

Full Changelog: v2.0.0...v2.0.1

Documentation for the MongoDB 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 MongoDB Go Driver is greatly appreciated!