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
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
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
The MongoDB Go Driver Team is pleased to release version 1.10.0-beta1 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.10.0-beta1 of the official Go driver.
This release supports several new features introduced in MongoDB server version 6.0 (Release Candidate).
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.
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.
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.9.4 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.9.4 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.9.3 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.9.3 of the official Go driver.
This release fixes 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.9.2 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.9.2 of the official Go driver.
This release contains a bugfix: MinPoolSize can no longer be set to exceed the value of MaxPoolSize.
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.9.1 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.9.1 of the official Go driver.
This release includes various bug fixes, including fixing the "soft fail" behavior of the OCSP certificate check and correctly handling 32- or 64-bit integers in server responses.
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.9.0 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.9.0 of the official Go driver.
This release contains improvements to connection pool management, an extended API, and a number of bug fixes.
Previously, the propensity of the driver to inundate a server with new connections during failover events was a particular pain point. This version of the driver contains a number of improvements to mitigate these connection "storms" including:
Certain use-cases may require supplying custom options on aggregate commands. These aggregate operations could be on a Database, Collection or for the creation of a ChangeStream. This version of the driver adds new API to specify custom options in these cases:
AggregateOptions.Custom specifies custom options to be added to the aggregate expressionChangeStreamOptions.Custom specifies custom options to be added to the change stream creation aggregate expressionChangeStreamOptions.CustomPipeline specifies custom options to be added to the $changeStream pipeline stage in the change stream creation aggregate expressionNote that all the custom options above must be marshalable into BSON. Users should always prefer using non-custom options where possible.
This version of the driver adds a Let option to most CRUD command options. Let can be used to specify parameters for use in an aggregate expression context (e.g. "$$var"). Let must be a document mapping parameter names to values that are constant or closed expressions without references to document fields. Note that the Let option can only be used against server version 5.0 or higher. Let has been added to:
AggregateOptionsBulkWriteOptionsDeleteOptionsFindOptionsFindOneAndDeleteOptionsFindOneAndReplaceOptionsFindOneAndUpdateOptionsReplaceOptionsUpdateOptionsThis version of the driver exposes API to create Cursor and SingleResult instances from BSON document(s). In particular, two new constructor functions have been added: NewCursorFromDocuments and NewSingleResultFromDocument. The supplied document(s) must be marshalable and non-nil. These new functions should allow for the mocking of read operation results (such as Find, FindOne and Aggregate) for use in testing.
For a full list of tickets included in this release, please see the links below:
Documentation 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 Jira where a list of current issues can be found.
The MongoDB Go Driver Team is pleased to release version 1.8.6 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.8.6 of the official Go driver.
This release fixes 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.8.5 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.8.5 of the official Go driver.
This release fixes various bugs, including a bug that could cause duplicate session IDs and a bug that can corrupt unmarshaled BSON values in specific circumstances.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release version 1.8.4 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.8.4 of the official Go driver.
This release resolves a bug that prevented an empty readPreferenceTags value in a connection string from acting as a "fail-safe" read preference tag that matches any eligible member (see documentation here).
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release version 1.8.3 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.8.3 of the official Go driver.
This release contains a bug fix to allow the loading of multiple certs within a single PEM file.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release version 1.8.2 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.8.2 of the official Go driver.
This release adds the ability to configure the recently added maxConnecting rate limit via the SetMaxConnecting function or the maxConnecting= URI option. The maxConnecting value sets the maximum number of new connections that can be created simultaneously.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release version 1.8.1 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.8.1 of the official Go driver.
This release contains a bug fix to correct the error type returned by IndexView.CreateMany.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the link below:
Nothing published for this version
The MongoDB Go driver team is pleased to release version 1.8.0 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.8.0 of the official Go driver.
This release supports additional features introduced in MongoDB version 5.1 and includes a refactor to our connection-pooling logic.
Documentation 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 Jira where a list of current issues can be found.
Supports using KMIP as a KMS provider for client side encryption.
Example of registering a client with auto-encryption through a KMIP KMS server with TLS.
// Provide KMS providers map with KMIP endpoint.
kmipKmsProviderMap := map[string]map[string]interface{}{
"kmip": {
"endpoint": "IP.of.KMIP.Server",
},
}
// Create TLS config with tlsCertificateKeyFile and tlsCAFile.
tlsConfig := make(map[string]*tls.Config)
tlsOpts := map[string]interface{}{
"tlsCertificateKeyFile": "path/to/tls/certfile",
"tlsCAFile": "path/to/tls/cafile",
}
// Build config and handle error.
kmipConfig, err := options.BuildTLSConfig(tlsOpts)
if err != nil {
panic(err)
}
tlsConfig["kmip"] = kmipConfig
// Create new client with auto-encryption options.
aeo := options.AutoEncryption().
SetKmsProviders(kmipKmsProviderMap).
SetKeyVaultNamespace("keyvault.datakeys").
SetTLSConfig(tlsConfig)
opts := options.Client().ApplyURI("mongodb://localhost:27017").SetAutoEncryptionOptions(aeo)
client, err := mongo.NewClient(opts)
if err != nil {
panic(err)
}
Following the guidance documented here, we removed all oppressive and unnecessarily gendered language in the Go driver documentation, code, tests, and spec tests.
The driver connection pool has been redesigned to work better when using low (< 30s) operation Context timeouts and reduce connection churn.
Behavior changes:
connectTimeoutMS. Previously, new connection creation was done synchronously with an operation and was timed out with the minimum of the operation Context timeout and connectTimeoutMS.maxPoolSize.For a full list of tickets included in this release, please see the links below:
The MongoDB Go Driver Team is pleased to release version 1.7.6 of the official Go driver.
The MongoDB Go Driver Team is pleased to release version 1.7.6 of the official Go driver.
This release fixes a bug that can corrupt unmarshaled BSON values in specific circumstances.
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 Jira where a list of current issues can be found.
The MongoDB Go driver team is pleased to release version 1.7.5 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.7.5 of the official Go driver.
This release removes an internal code generation tool and its associated dependencies.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release version 1.7.4 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.7.4 of the official Go driver.
This release contains several bugfixes.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release version 1.7.3 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.7.3 of the official Go driver.
This release contains several bugfixes.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release version 1.7.2 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.7.2 of the official Go driver.
This release contains various bug fixes, including:
minPoolSize > 0.Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release has been retracted due to a data race that can occur between creating and checking out connections when minPoolSize > 0.
This release has been retracted due to a data race that can occur between creating and checking out connections when minPoolSize > 0.
Please use version 1.7.2 or higher.
The MongoDB Go driver team is pleased to release version 1.7.1 of the official Go driver.
This release contains a bug fix and a minor documentation update:
StartSession behaviorDocumentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
This release has been retracted due to a data race that can occur between creating and checking out connections when minPoolSize > 0.
This release has been retracted due to a data race that can occur between creating and checking out connections when minPoolSize > 0.
Please use version 1.7.2 or higher.
The MongoDB Go driver team is pleased to release version 1.7.0 of the official Go driver.
This release supports additional features introduced in MongoDB version 5.0.
Documentation 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 Jira where a list of current issues can be found.
Supports using the "snapshot" read concern outside of transactions for certain operations.
Example of using a Session with "snapshot" read concern outside of a transaction for a Find operation:
var client *mongo.Client
// Create a new Session with "snapshot" reads enabled, then create a
// SessionContext with the new Session.
sess, err := client.StartSession(options.Session().SetSnapshot(true))
if err != nil {
panic(err)
}
defer sess.EndSession(context.TODO())
sessCtx := mongo.NewSessionContext(context.TODO(), sess)
coll := client.Database("db").Collection("coll")
cursor, err := coll.Find(sessCtx, bson.D{{"x", 1}})
defer cursor.Close(context.TODO())
// Use the cursor to read Find results with "snapshot" read concern.
Surface the improved error messages for schema validation in MongoDB 5.0 in WriteException and BulkWriteException error messages and via the new field WriteError.Details.
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release version 1.6.2 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.6.2 of the official Go driver.
This release contains a bug fix for a data race that can occur between creating and checking out connections when minPoolSize > 0.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the links below:
This release has been retracted due to a data race that can occur between creating and checking out connections when minPoolSize > 0.
This release has been retracted due to a data race that can occur between creating and checking out connections when minPoolSize > 0.
Please use version 1.6.2 or higher.
The MongoDB Go driver team is pleased to release version 1.6.1 of the official Go driver.
This release contains a bug fix for a data race in appending connection options to the server config.
Documentation 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 Jira where a list of current issues can be found.
For a full list of tickets included in this release, please see the link below:
…is not part of the declared API version, and DeprecationErrors specifies whether the server should error when it receives a command that is deprecated…
This release has been retracted due to a data race that can occur between creating and checking out connections when minPoolSize > 0.
Please use version 1.6.2 or higher.
The MongoDB Go driver team is pleased to release version 1.6.0 of the official Go driver.
This release supports several new features introduced in MongoDB server version 5.0.
Documentation 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 Jira where a list of current issues can be found.
<h2>Versioned API</h2>
This release adds versioned API: a new feature in MongoDB 5.0 that allows user-selectable API versions, subsets of MongoDB server semantics, to be declared on a Client with ServerAPIOptions. See an explanatory blog post here.
ServerAPIOptions can be declared on a Client in the Go driver with SetServerAPIOptions. Within a ServerAPIOptions instance, ServerAPIVersion specifies the declared API version, Strict specifies whether the server should error when it receives a command that is not part of the declared API version, and DeprecationErrors specifies whether the server should error when it receives a command that is deprecated in the declared API version.
<h2>Load Balancer Support</h2>
The Go driver now supports connecting to any MongoDB service (such as MongoDB Serverless) that is running behind a load balancer.
ClientOptions contains a new LoadBalanced flag that can be set with SetLoadBalanced or by passing loadBalanced=true into the initial URI string.
<h2>Time-series Collections</h2>
This release allows the creation of time-series collections: a new collection type that will automatically organize time-series data into buckets on insert, while automatically unwinding the buckets for query purposes.
CreateCollectionOptions contains a new TimeSeriesOptions field that can be set with SetTimeSeries. The fields of TimeSeriesOptions are defined as follows. TimeField specifies the name of the top-level field that will represent the timestamp in the collection's documents. MetaField can specify the name of the top-level field that will describe the series in the collection's documents. Granularity can specify the desired granularity of the time-series data (at present, this value can be "seconds", "minutes" or "hours").
CreateCollectionsOptions also contains a new ExpireAfterSeconds field that can be set with SetExpireAfterSeconds. ExpireAfterSeconds can specify how many seconds to wait before old time-series data should be deleted from the time-series collection.
<h2>Let Option on Aggregate</h2>
Let can now be specified on aggregates. See an explanation and examples of the let option in the aggregate documentation.
AggregateOptions contains a new Let field that can be set with SetLet.
<h2>Release Notes</h2>
For a full list of tickets included in this release, please see the links below:
Nothing published for this version
The MongoDB Go driver team is pleased to release version 1.5.4 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.5.4 of the official Go driver.
This release contains several bug fixes, including:
mongodb+srv:// URI via ApplyURI().Documentation 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 Jira where a list of current issues can be found.
<h2>Release Notes</h2>
For a full list of tickets included in this release, please see the links below:
Nothing published for this version
The MongoDB Go driver team is pleased to release 1.5.3 of the official Go driver.
The MongoDB Go driver team is pleased to release 1.5.3 of the official Go driver.
This release contains several bug fixes.
Documentation 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 Jira where a list of current issues can be found.
<h2>Release Notes</h2>
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release 1.5.2 of the official Go driver.
The MongoDB Go driver team is pleased to release 1.5.2 of the official Go driver.
This release contains several bug fixes.
Documentation 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 Jira where a list of current issues can be found.
<h2>Release Notes</h2>
For a full list of tickets included in this release, please see the links below:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
CVE ID : CVE-2021-20329 Title : Specific cstrings input may not be properly validated in the MongoDB Go Driver Description : Specific cstrings input m…
The MongoDB Go driver team is pleased to release 1.5.1 of the official Go driver.
This release contains several bug fixes. Due to the issue below, we recommend all users upgrade to this version of the driver.
Documentation 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 Jira where a list of current issues can be found.
<h3>CVE-2021-20329</h3>
This CVE describes a security issue with the driver's BSON marshalling system. BSON marshalling functions would incorrectly handle null bytes embedded in BSON key names and the pattern/options fields of a BSON regex value. BSON marshalling functions now correctly validate and error if there is an embedded null byte in BSON key names or the pattern/options fields of a BSON regex value. We recommend all users of the driver upgrade to this version.
<b>CVE ID</b>: CVE-2021-20329 <b>Title</b>: Specific cstrings input may not be properly validated in the MongoDB Go Driver <b>Description</b>: Specific cstrings input may not be properly validated in the MongoDB Go Driver when marshalling Go objects into BSON. A malicious user could use a Go object with specific string to potentially inject additional fields into marshalled documents. This issue affects all MongoDB GO Drivers up to (and including) 1.5.0. <b>CVSS score</b>: 6.8 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N <b>Affected products and versions, MongoDB Go Driver versions</b> <= 1.5.0 <b>Underlying operating systems affected: All</b>
<h2>Release Notes</h2>
For a full list of tickets included in this release, please see the links below:
Nothing published for this version
The MongoDB Go driver team is pleased to release 1.5.0 of the official Go driver.
The MongoDB Go driver team is pleased to release 1.5.0 of the official Go driver.
This release contains several new features and usability improvements for the driver.
Documentation 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 Jira where a list of current issues can be found.
<h2>API Improvements</h2>
This release contains a new errors API for the primary mongo package. Users can now detect duplicate key errors, timeouts, and network errors via the mongo.IsDuplicateKeyError, mongo.IsTimeout, and mongo.IsNetworkError functions, respectively. Additionally, a new UpdateByID function has been added to the mongo.Collection type to update a single document with a given _id value.
<h2>Client-Side Field Level Encryption Improvements</h2>
The Go Driver now supports using GCP and Azure key management services with the client-side field level encryption feature. In addition, AWS key management support has been enhanced to allow authenticating with temporary AWS credentials. See the MongoDB docs for more information about these improvements. Use of client-side field level encryption requires users to install the latest released version of libmongocrypt. Note: This means that existing applications that use this feature will need to upgrade the libmongocrypt dependency when upgrading to this driver version; otherwise, the application will fail to compile. Users can upgrade to the latest development release of libmongocrypt via the OS-specific instructions for macos, Windows, and Linux.
<h2>Server Monitoring</h2>
Monitoring has now been added for various server events. A ServerMonitor set on a mongo.Client monitors changes on the MongoDB deployment it is connected to and reports the changes in the client's representation of the deployment.
<h2>Erroring for Maps as Ordered Arguments</h2>
The driver will now error if a map with more than one key is used as a hint option, sort option, or for index creation. This is to prevent unexpected behavior, for example, an index being created with the keys in the wrong order.
<h2>Release Notes</h2>
For a full list of tickets included in this release, please see the links below: Projects:
The MongoDB Go driver team is pleased to release 1.5.0-beta1 of the official Go driver.
The MongoDB Go driver team is pleased to release 1.5.0-beta1 of the official Go driver.
This release contains driver-specific improvements.
Documentation 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 Jira where a list of current issues can be found.
<h2> Azure/GCP Support for Client Side Field Level Encryption </h2>
This release includes beta support for using Azure and GCP key management with the client-side field level encryption feature. See the MongoDB docs for more information and code samples. Use of client-side field level encryption, even without Azure/GCP, requires users to install the latest development release of libmongocrypt. Note: This means that existing applications that use this feature will need to upgrade the libmongocrypt dependency when upgrading to this driver release; otherwise, the application will fail to build. Users can upgrade to the latest development release of libmongocrypt via the OS-specific instructions for macos, Windows, and Linux. Each OS-specific link contains instructions for installing both the latest stable and dev releases.
<h2> Server Monitoring </h2> Monitoring has now been added for various server events. A ServerMonitor set on a client monitors changes on the MongoDB deployment it is connected to, and reports the changes in the client's representation of the deployment.
<h2> ServerError </h2> The ServerError interface wraps errors returned from the server, specifically CommandError, WriteException, and BulkWriteException, to make them easier to handle programmatically.
<h2> Improved BSON performance </h2> Improved unmarshalling performance when unmarshalling to interface{}. There are no application changes required to take advantage of these improements.
<h2>Release Notes</h2>
For a full list of tickets included in this release, please see the links below:
The MongoDB Go driver team is pleased to release 1.4.7 of the official Go driver.
The MongoDB Go driver team is pleased to release 1.4.7 of the official Go driver.
This release contains several bug fixes and internal testing improvements. Most notably, GODRIVER-1879 is fixed in this release. This ticket ensures that the connectTimeoutMS URI option, which defaults to 30 seconds, applies to both the creation of a socket and the TLS handshake, if applicable.
Documentation 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 Jira where a list of current issues can be found.
<h2>Release Notes</h2>
For a full list of tickets included in this release, please see the links below: Projects:
One column per quarter.