NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules, #428 by repository stars
Latest stable
v1.17.10
Last release 2 months ago
10 Sep 2026
Release timing varies
gaps range from 8 days to 7 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
14 versions withdrawn
withdrawn after publishing
10 years old
1482 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release includes an experimental API for explicitly encrypting a range index, a patch to retry heartbeat on timeout, the deprecation of the x/bso…
The MongoDB Go Driver Team is pleased to release version 1.12.0-alpha1 of the official Go driver.
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.
Support "RangeOptions" for specifying index options for a Queryable Encryption field supporting "rangePreview" queries. This is an experimental feature.
A patch to retry heartbeat on timeout errors to delay pool cleanup by one event loop.
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.
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!
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
The MongoDB Go Driver Team is pleased to release version 1.11.9 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.11.9 of the official Go driver.
This release fixes a bug in the Go Driver where connections are leaked if a user runs a transaction while connected to a load balancer. To resolve this issue, the Go Driver will now unpin connections when ending a session.
This release will also include a new feature to allow setting batch size on a ChangeStream after it's returned by a Watch method.
For a full list of tickets included in this release, please see the links below:
Full Changelog: v1.11.7...v1.11.9
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!
v1.11.8 has been retracted because it incorrectly contains minor release changes intended for 1.12.1.
v1.11.8 has been retracted because it incorrectly contains minor release changes intended for 1.12.1.
Please use version 1.11.9 or higher.
The MongoDB Go Driver Team is pleased to release version 1.12.1 of the official Go driver.
This release fixes a bug in the Go Driver where connections are leaked if a user runs a transaction while connected to a load balancer. To resolve this issue, the Go Driver will now unpin connections when ending a session.
This release fixes a logging design oversight in which enabling logging with "options.LogComponentAll" does not result in the publication of logs.
This release fixes two runtime errors, which occur on unmarshaling an empty bson.RawValue with an invalid type, specifically the 0x00 (null) type, and on marshaling a nil pointer of ReadConcern.
For a full list of tickets included in this release, please see the links below:
Full Changelog: v1.12.0...v1.12.1
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!
Nothing published for this version
Nothing published for this version
The MongoDB Go Driver Team is pleased to release version 1.11.7 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.11.7 of the official Go driver.
This release fixes various bugs, including:
decimal128 values from Extended JSON can take a long time.RewrapManyDataKey should return an error if it's called with masterKey and without provider.int64.It also adds the Cursor.SetBatchSize API, which allows changing the document batch size requested for subsequent cursor iterations.
For a full list of tickets included in this release, please see the links below:
Full Changelog: v1.11.6...1.11.7
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!
The MongoDB Go Driver Team is pleased to release version 1.11.6 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.11.6 of the official Go driver.
This release fixes the import failure introduced in 1.11.5.
This release also includes the patch in the retracted 1.11.5, which fixes a bug that can squash the FullDocument configuration value when merging multiple ChangeStreamOptions structs.
For a full list of tickets included in this release, please see the links below:
Full Changelog: v1.11.4...v1.11.6
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!
Nothing published for this version
This release has been retracted due to an import failure.
This release has been retracted due to an import failure.
Please use version 1.11.6 or higher.
The MongoDB Go Driver Team is pleased to release version 1.11.5 of the official Go driver.
This release fixes a bug that can squash the FullDocument configuration value when merging multiple ChangeStreamOptions structs.
For a full list of tickets included in this release, please see the links below:
Full Changelog: v1.11.4...v1.11.5
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!
Nothing published for this version
The MongoDB Go Driver Team is pleased to release version 1.11.4 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.11.4 of the official Go driver.
This release includes optimizations to reduce memory consumption in reading compressed wire messages. The release also offers codec support for decoding struct container fields as either map or document types, rather than an ancestor type.
Additionally, the mongo package will support a closed approach for checking transaction error labels. For example:
err = client.Ping(ctx, nil)
var le mongo.LabeledError
if errors.As(err, &le) && le.HasErrorLabel("TransientTransactionError") {
log.Fatalf("transient transaction error: %v", le)
}
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!
Nothing published for this version
The MongoDB Go Driver Team is pleased to release version 1.11.3 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.11.3 of the official Go driver.
This release reduces memory usage under some query workloads and fixes a bug that can cause undefined behavior when reading the Raw field on database error types, including CommandError and WriteException.
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!
This release has been retracted due to a bug that can cause undefined behavior when reading the Raw field on database error types, including CommandEr
This release has been retracted due to a bug that can cause undefined behavior when reading the Raw field on database error types, including CommandError and WriteException.
Please use version 1.11.3 or higher.
The MongoDB Go Driver Team is pleased to release version 1.11.2 of the official Go driver.
This release includes various bug fixes.
bson.Raw to Extended JSONPreviously, calling bson.Raw.String would output the wrong Extended JSON type if the BSON document contained a "UTC timestamp" field. This release updates String to output the correct Extended JSON type for timestamps.
Previously, retried reads could fail if an operation used read concern "linearizable" or "available" because the Go driver set a conflicting configuration for implicit sessions. This release resolves conflicts with "linearizable" or "available" read concerns in retried reads.
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!
Nothing published for this version
Nothing published for this version
This release has been retracted due to a bug that can cause undefined behavior when reading the Raw field on database error types, including CommandEr
This release has been retracted due to a bug that can cause undefined behavior when reading the Raw field on database error types, including CommandError and WriteException.
Please use version 1.11.3 or higher.
The MongoDB Go Driver Team is pleased to release version 1.11.1 of the official Go driver.
This release contains a bug fix for heartbeat buildup with streaming protocol when the Go driver process is paused in an FAAS environment (e.g. AWS Lambda). This release also includes a bug fix for handling sequential "NoWritesPerformed" labeled operation errors, in that they should still return the "previous indefinite error".
P.S. We want to hear about how Go developers use MongoDB and the MongoDB Go Driver! If you haven't already, please take the 2022 MongoDB Go Developer Survey.
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!
Nothing published for this version
This release has been retracted due to a bug that can cause undefined behavior when reading the Raw field on database error types, including CommandEr
This release has been retracted due to a bug that can cause undefined behavior when reading the Raw field on database error types, including CommandError and WriteException.
Please use version 1.11.3 or higher.
The MongoDB Go Driver Team is pleased to release version 1.11.0 of the official Go driver.
This release improves the Timeout API and behavior, reduces memory allocations when running most operations, and fixes several bugs. It also removes support for some legacy versions of MongoDB and Go. See below for more details.
Setting Timeout on a mongo.Client to enable a client-level default operation timeout is a feature added in version 1.10.0 of the driver. Various improvements have been made to this API. In particular:
Timeout is set, the driver will now retry as many times as possible before the context's deadline instead of just once. This should improve application resiliency when using Timeout.mongo.IsTimeout error helper has been extended to catch more timeout errors.SetReadDeadline and SetWriteDeadline.This feature will remain a provisional API while we gather feedback on its design and solidify our specification.
Reduce memory allocations in several critical paths in operation execution.
Fix a severe bug in SRV polling which may prevent changes in SRV records from updating the servers that the Go driver attempts to connect to when the MongoDB connection string includes a username and password.
As of this release, the Go driver now requires MongoDB 3.6 or newer.
As of this release, the Go driver now requires Go 1.13 or newer.
Cursor.All and Session.WithTransaction functions.SERVICE_HOST Kerberos authentication parameter in the authMechanismProperties connection string option.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!
The MongoDB Go Driver Team is pleased to release version 1.10.6 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.10.6 of the official Go driver.
This release resolves a panic when aborting a transaction. More specifically, from the pull request:
Users are occasionally seeing panics from the ServerConnectionID() call here. The driver was panic'ing because topology.Connection did not implement a ServerConnectionID() method that guarded against the underlying, embedded connection being nil.
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!
The MongoDB Go Driver Team is pleased to release version 1.10.5 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.10.5 of the official Go driver.
This release contains a bugfix for heartbeat buildup with streaming protocol when the Go driver process is paused in an FAAS environment (e.g. AWS Lambda).
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!
The MongoDB Go Driver Team is pleased to release version 1.10.4 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.10.4 of the official Go driver.
This release contains several bugfixes. One of the bugfixes removes a severe bug in SRV polling which may prevent changes in SRV records from updating the servers that the Go Driver attempts to connect to when the MongoDB connection string includes a username and password.
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!
The MongoDB Go Driver Team is pleased to release version 1.10.3 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.10.3 of the official Go driver.
This release contains several bugfixes.
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!
The MongoDB Go Driver Team is pleased to release version 1.10.2 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.10.2 of the official Go driver.
This release stops treating context errors as retryable network errors where possible.
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!
Nothing published for this version
This release also removes potentially confusing deprecation warnings added to some existing timeout mechanisms in the v1.10.0 release.
The MongoDB Go Driver Team is pleased to release version 1.10.1 of the official Go driver.
This release, along with the libmongocrypt v1.5.2 release, fixes a potential encryption key corruption bug in ClientEncryption.RewrapManyDataKey that can lead to encrypted data corruption when rotating encryption keys backed by GCP or Azure key services.
This release also removes potentially confusing deprecation warnings added to some existing timeout mechanisms in the v1.10.0 release.
Fixes a potential encryption key corruption bug in ClientEncryption.RewrapManyDataKey that can lead to encrypted data corruption when rotating encryption keys backed by GCP or Azure key services. See the libmongocrypt v1.5.2 release notes for more details about the bug. ClientEncryption.RewrapManyDataKey will now return an error if the linked version of libmongocrypt is less than 1.5.2.
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!
Nothing published for this version
This release has been retracted due to a potential encryption key corruption bug in `ClientEncryption.RewrapManyDataKey` that can lead to encrypted da
This release has been retracted due to a potential encryption key corruption bug in ClientEncryption.RewrapManyDataKey that can lead to encrypted data corruption when rotating encryption keys backed by GCP or Azure key services.
Please use version 1.10.1 or higher.
The MongoDB Go Driver Team is pleased to release version 1.10.0 of the official Go driver.
This release supports several new features introduced in MongoDB v6.0, including the following notable changes.
This release includes new options to AutoEncryptionOpts and EncryptOpts to support Queryable Encryption. Queryable Encryption support requires MongoDB server 6.0 or newer, and libmongocrypt 1.5.0 or newer.
Add support for the new encryption helper, crypt_shared, referred to as the Shared Library. The shared library replacesmongocryptd and does not require spawning a new process.
Add ClientEncryption entity operations for Key Management API with the purpose of
Warning There is a severe bug when calling RewrapManyDataKey with libmongocrypt versions less than 1.5.2. This bug may result in data corruption. Please use libmongocrypt 1.5.2 or higher when calling RewrapManyDataKey.
A patch is implemented for defaulting data to either primitive.M or primitive.D when decoding empty types.
Allow encoding atypical map key types for data that can unmarshal into a textual representation of itself, i.e. TextMarshaler and TextUnmarshaler.
Add the ability to request the full document both before and after an update in Change Stream events.
Refactor the pseudo-random number and UUID generation to improve performance and reduce conflict.
Refactor the Zstd compression to reduce memory consumption.
The new Timeout client option can be used to set a default context timeout for every operation sent through that client. SetTimeout represents unstable, provisional API; the behavior of the driver when a Timeout is specified is subject to change.
The Go Driver team will start supporting a docs/common-issues.md file for troubleshooting frequently encountered issues.
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!
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.