The MongoDB Go Driver Team is pleased to release version 1.12.0-alpha1 of the official Go driver.
Release Notes
This release includes an experimental API for explicitly encrypting a range index, a patch to retry heartbeat on timeout, the deprecation of the x/bsonx package, as well as various performance optimizations to server selection functions.
Explicit Encryption for Range Index
Support "RangeOptions" for specifying index options for a Queryable Encryption field supporting "rangePreview" queries. This is an experimental feature.
Retry Heartbeat on Timeout
A patch to retry heartbeat on timeout errors to delay pool cleanup by one event loop.
X509 certificate being used as username for authentication
When adding a client certificate from bytes, the subject of the last certificate was being returned as the username for X509 auth after GODRIVER-2263, which did not match the order of loading a PEM file with multiple certs. This change updates the certificate subject string if the certDecodeBlock is never set.
Deprecate the "x/bsonx" Package
The bsonx package contains Doc, Arr, Elem, and Val types that are largely unused. These were a POC of a type-safe BSON API and were used extensively in the 1.0 driver, but the usages were replaced by bsoncore in v1.1.
For a full list of tickets included in this release, please see the links below:
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!