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
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
The MongoDB Go driver team is pleased to release version 1.0.0 of the official Go driver.
The MongoDB Go driver team is pleased to release version 1.0.0 of the official Go driver.
This release fixes retryable writes for batch split write commands and fixes documentation errors.
Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-871'>GODRIVER-871</a>] - Retryable Writes is broken for batch splits </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-790'>GODRIVER-790</a>] - Drivers should use majority write concern when retrying commitTransaction </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-844'>GODRIVER-844</a>] - Resync transaction spec tests for bulk write error reporting change </li> </ul>
The MongoDB Go driver team is pleased to release v1.0.0-rc2 of the official Go driver.
The MongoDB Go driver team is pleased to release v1.0.0-rc2 of the official Go driver.
This release fixes zlib compression and contains several smaller bug fixes.
Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>Using Dep</h2>
If you are using dep to retrieve the Go driver, please ensure that dep has pinned the correct version. The dep tool prefers released versions over pre-release versions, so it is likely that dep will retrieve version 0.3.0 instead of 1.0.0-rc2. You can use the command below to retrieve the correct version.
dep ensure -add "go.mongodb.org/mongo-driver/mongo@>=1.0.0-rc1"
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-836'>GODRIVER-836</a>] - zLib compression does not work </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-840'>GODRIVER-840</a>] - Docs out of date for how to connect </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-848'>GODRIVER-848</a>] - bson can not marshal datetime ISODate json correct </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-856'>GODRIVER-856</a>] - Chunks collection files_id_1_n_1 index not unique </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-698'>GODRIVER-698</a>] - Support for GSSAPI "ServiceHost" </li> </ul>
Nothing published for this version
[ GODRIVER-789 ] - Deprecated Count method is still in the public API
The MongoDB Go driver team is pleased to release v1.0.0-rc1 of the official Go driver.
This release changes the import path for the driver from github.com/mongodb/mongo-go-driver to go.mongodb.org/mongo-driver. If you have previously downloaded the driver you will need to move it to the new location within your GOPATH.
Documentation can be found on GoDoc and the MongoDB documentation site. BSON library documentation is also available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>New Import Path</h2> The base import path for the driver has changed. The new path is <code>go.mongodb.org/mongo-driver</code>. Package locations under the import path remain the same, e.g. the <code>mongo</code> package is located under <code>go.mongodb.org/mongo-driver/mongo</code>.
<h2><code>mongo.Client</code> Creation</h2> The <code>mongo.Client</code> construction functions no longer take a string URI parameter. Instead, a MongoDB URI can be provided as an option.
Previous API: mongo.NewClient("mongodb://localhost:27017/")
New API: mongo.NewClient(options.Client().ApplyURI("mongodb://localhost:27017/"))
<h2>Release Notes</h2> <h3>Bug</h2> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-767'>GODRIVER-767</a>] - client.Disconnect(nil) causes a panic </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-768'>GODRIVER-768</a>] - documentation example test failing </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-789'>GODRIVER-789</a>] - Deprecated Count method is still in the public API </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-802'>GODRIVER-802</a>] - Document fields corrupted in transformAndEnsureID </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-805'>GODRIVER-805</a>] - BSON field '$changeStream.maxAwaitTimeMS' is an unknown field </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-811'>GODRIVER-811</a>] - Modify change stream test to only run if WireVersion < 8 </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-812'>GODRIVER-812</a>] - Server String() function access unprotected variables </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-813'>GODRIVER-813</a>] - Aggregate Test Failing </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-815'>GODRIVER-815</a>] - Can only interact with GridFS files by id via ObjectIds </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-817'>GODRIVER-817</a>] - Fix killCursor helper in collection tests </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-819'>GODRIVER-819</a>] - driver.KillCursors broken </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-831'>GODRIVER-831</a>] - GSSAPI Authentication starts SASL conversation wrong </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-833'>GODRIVER-833</a>] - GridFS default chunk size is 255 kB, not 255 KiB </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-839'>GODRIVER-839</a>] - GoDoc for mongo.Client does not match API </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-846'>GODRIVER-846</a>] - Unable to authenticate to a replica set member using the keyfile </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-524'>GODRIVER-524</a>] - Implement SDAM Error Handling </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-775'>GODRIVER-775</a>] - Cannot parse MongoDB Extended JSON from mongoexport </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-803'>GODRIVER-803</a>] - Add option to allow authenticating with an arbiter </li> </ul>
<h3>Task</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-194'>GODRIVER-194</a>] - Add pipeline stage to ChangeStreams example for Docs </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-422'>GODRIVER-422</a>] - Provide Transactions example for Docs </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-788'>GODRIVER-788</a>] - Update Transactions Retry Example 3 to include read preference </li> </ul>
<h3>Improvement</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-120'>GODRIVER-120</a>] - Alternative Import Path </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-572'>GODRIVER-572</a>] - TransformDocument should document how it handles nil </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-600'>GODRIVER-600</a>] - Add test that read operations ignore db/collection readConcern in transaction </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-727'>GODRIVER-727</a>] - Clean up mongo.newClient </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-731'>GODRIVER-731</a>] - Maps inside structs are not zeroed </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-747'>GODRIVER-747</a>] - Allow TLSConfig as a client option </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-787'>GODRIVER-787</a>] - Make file should run documentation examples </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-793'>GODRIVER-793</a>] - Remove all public use of 'x' packages in the options package </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-800'>GODRIVER-800</a>] - Modify BatchCursor to return batch as a single slice of documents </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-807'>GODRIVER-807</a>] - Add attribution for Gopher logo </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-828'>GODRIVER-828</a>] - Create mongo.CommandError to wrap command.Error </li> </ul>
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 the third and final beta release of the official Go driver.
The MongoDB Go driver team is pleased to release the third and final beta release of the official Go driver.
This release changes the API for cursor, numerous documentation updates and fixes, and other small API changes.
Documentation can be found on GoDoc and the MongoDB documentation site. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>Cursor and ChangeStream API changed</h2> This release changes the <code>mongo.Cursor</code> type from an <code>interface</code> to a <code>struct</code> and adds a <code>mongo.ChangeStream</code> <code>struct</code> type which is returned from <code>Watch</code> methods. The <code>DecodeBytes</code> method on each has been replaced with a struct level property called <code>Current</code>. The bson.Raw bytes of this property are only valid until the next call to <code>Next</code> or <code>Close</code> on the <code>Cursor</code> or <code>ChangeStream</code>.
Previous usage:
var cur mongo.Cursor
for cur.Next(context.TODO()) {
rdr, err := cur.DecodeBytes()
if err != nil {
return err
}
// Do something with rdr
}
New usage:
var cur *mongo.Cursor
for cur.Next(context.TODO()) {
rdr := cur.Current
// Do something with rdr
}
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-743'>GODRIVER-743</a>] - UpdateOne and UpdateMany should return error when update parameter is of zero length </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-746'>GODRIVER-746</a>] - ChangeStream Next doesn't getMore after error case </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-756'>GODRIVER-756</a>] - Incorrect formatting of numbers with exponents in JSON </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-757'>GODRIVER-757</a>] - README out of date WRT using nil in Find </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-769'>GODRIVER-769</a>] - Remove use of internal package from connstring package </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-784'>GODRIVER-784</a>] - GridFS RoundTrip test fails with race detector on </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-791'>GODRIVER-791</a>] - Panic on cursor Close with a dead server </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-400'>GODRIVER-400</a>] - reorder conditionals to return write errors if a write concern error is also present. </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-758'>GODRIVER-758</a>] - options.Collation is missing Normalization </li> </ul>
<h3>Task</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-754'>GODRIVER-754</a>] - Improve test coverage for GridFS </li> </ul>
<h3>Improvement</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-3'>GODRIVER-3</a>] - Change driver.Cursor to be a batch cursor </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-704'>GODRIVER-704</a>] - Document that mongo.SessionContext is not goroutine safe </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-707'>GODRIVER-707</a>] - method/operation to determine if a write error is a duplicate key error </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-713'>GODRIVER-713</a>] - Remove string key restriction for Encoder and Decoder lookups </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-714'>GODRIVER-714</a>] - KeepAlive is not enabled by default </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-717'>GODRIVER-717</a>] - IntEncodeValue should encode int's within 32bits as int32s </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-733'>GODRIVER-733</a>] - Add diagnostic information to server selection errors </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-751'>GODRIVER-751</a>] - Incorrect example in godoc website </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-753'>GODRIVER-753</a>] - Change GridFS implementation to not have partial chunks </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-759'>GODRIVER-759</a>] - Make Cursor a struct and make changeStream public </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-764'>GODRIVER-764</a>] - bulk write operation dependencies </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-772'>GODRIVER-772</a>] - README requirements section still lists v3.2 as minimum version </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-781'>GODRIVER-781</a>] - Inconsistent use of time.Duration and int64 in options </li> </ul>
Nothing published for this version
Nothing published for this version
The MongoDB Go driver team is pleased to release the second beta release of the official Go driver.
The MongoDB Go driver team is pleased to release the second beta release of the official Go driver.
This release fixes a number of API and functionality bugs within the driver and includes support for MongoDB server versions 2.6 and 3.0.
Documentation can be found on GoDoc and the MongoDB documentation site. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>Legacy Server Support</h2> This release adds support for MongoDB server versions 2.6 and 3.0. This brings the supported range of MongoDB server versions to 2.6 to 4.0 inclusive.
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-641'>GODRIVER-641</a>] - Connect direct to a replica set member also requires ReadPreference to be set </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-659'>GODRIVER-659</a>] - Collection allows insertion of a nil value </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-660'>GODRIVER-660</a>] - _id should be prepended, not appended </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-667'>GODRIVER-667</a>] - Default write concern should not be appended. </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-668'>GODRIVER-668</a>] - Write concern should not be encoded for certain commands based on wire version. </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-675'>GODRIVER-675</a>] - Nil pointer implementing Zeroer interface should not cause panic </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-676'>GODRIVER-676</a>] - Panic marshaling a nil ObjectID </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-679'>GODRIVER-679</a>] - Aggregate does not accept a bson.A as the pipeline </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-681'>GODRIVER-681</a>] - Cursors and SingleResult ignore client custom registry </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-688'>GODRIVER-688</a>] - ClientOptions.SetSSL() records some string options as being set even if they're empty strings </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-691'>GODRIVER-691</a>] - ArrayEncodeValue and SliceEncodeValue don't properly handle nil for primitive.Element </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-692'>GODRIVER-692</a>] - SingleResult.Decode to struct panics with nil pointer dereference </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-693'>GODRIVER-693</a>] - Opening a change stream cursor for any database gives error </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-694'>GODRIVER-694</a>] - UnmarshalExtJSON panics with invalid json </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-696'>GODRIVER-696</a>] - SingleResult should use bson.DefaultRegistry when Registry is nil </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-697'>GODRIVER-697</a>] - nil panics being encoded via bson.Marshal </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-699'>GODRIVER-699</a>] - Decoding into a bson.M embeds bson.Ds, not bson.Ms </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-700'>GODRIVER-700</a>] - JSON scanner fails when underlying reader reads less than the requested bytes and also returns io.EOF </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-701'>GODRIVER-701</a>] - ReadPreference on client is not respected </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-708'>GODRIVER-708</a>] - bsonx package is exposed in the public API of some stable packages </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-710'>GODRIVER-710</a>] - Unmarshaling to a interface{} fails </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-715'>GODRIVER-715</a>] - driver.KillCursors does not close connection </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-719'>GODRIVER-719</a>] - Map Decoder should support non-primitive string types </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-724'>GODRIVER-724</a>] - Downloading files from gridfs does not match uploaded data </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-725'>GODRIVER-725</a>] - Numbers that look like integers but are too big should be treated as doubles </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-726'>GODRIVER-726</a>] - Server.heartbeat uses no timeouts </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-735'>GODRIVER-735</a>] - ListCollections does not use read preference primary </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-741'>GODRIVER-741</a>] - Option "serverSelectionTimeoutMS" is ignored if set in connection URI </li> </ul>
<h3>Epic</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-138'>GODRIVER-138</a>] - Add support for legacy servers </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-109'>GODRIVER-109</a>] - Implement legacy OP_QUERY, OP_GET_MORE and OP_KILL_CURSORS </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-492'>GODRIVER-492</a>] - Implement legacy collection enumeration </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-677'>GODRIVER-677</a>] - Alias needed in bson package for primitive.E </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-742'>GODRIVER-742</a>] - Supported parsing extended JSON containing $date without $numberLong </li> </ul>
<h3>Improvement</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-279'>GODRIVER-279</a>] - Implement legacy index enumeration </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-581'>GODRIVER-581</a>] - Add documentation for new bsoncodec package </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-663'>GODRIVER-663</a>] - Extend the Marshal* and Unmarshal* family functions with *WithContext functions </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-665'>GODRIVER-665</a>] - Support only "automatic" and "direct" as values for "connect" URI option </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-669'>GODRIVER-669</a>] - Reverse Dependencies between bson and bsonx </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-683'>GODRIVER-683</a>] - Make CommandMetadata struct private inside connection.go </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-729'>GODRIVER-729</a>] - Add IndexOptions struct to use as the type of IndexModel.Options </li> </ul>
Nothing published for this version
Nothing published for this version
Nothing published for this version
The MongoDB Go driver team is pleased to release the first beta release of the official Go driver.
The MongoDB Go driver team is pleased to release the first beta release of the official Go driver.
This release updates the BSON codec system, changes the location of various types in the BSON library, and contains a restructure of the repository. This release contains a stability guarantee for the packages not under the x directory.
Documentation can be found on GoDoc and the MongoDB documentation site. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>Repository Structure & Stability</h2>
This release comes with the first set of stabilizing APIs. Unless significant issues are found with stabilizing APIs, they will not be changed between this beta and the first major release of this driver. The packages have been restructured to better indicate which packages are stabilizing and which are not. Libraries under the x directory do not follow a stability guarantee and may change significantly in the future.
<h2>BSON Codec System</h2>
The BSON codec system has been improved to be more flexible and extensible. The primitive package has gained the D, M, and A types, which are used by default when decoding into an interface{}.
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-409'>GODRIVER-409</a>] - bson decoder should not zero entire struct before beginning unmarshalling </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-464'>GODRIVER-464</a>] - nil check of cursor missing in changeStream Close function </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-588'>GODRIVER-588</a>] - Cannot decode pointers to nil / cannot decode *ObjectID </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-591'>GODRIVER-591</a>] - ChangeStream option BatchSize is passed to the pipeline stage instead to the cursor </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-598'>GODRIVER-598</a>] - Cannot decode when any ObjectId field is null in database </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-603'>GODRIVER-603</a>] - ChangeStream should not panic when a user changes ResumeToken </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-611'>GODRIVER-611</a>] - UnmarshalExtJSON array fail </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-630'>GODRIVER-630</a>] - EXT JSON Parser Empty Object Handling </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-644'>GODRIVER-644</a>] - SetResumeAfter should take a interface{} </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-645'>GODRIVER-645</a>] - lookupInterfaceDecoder does not ensure type is a pointer </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-646'>GODRIVER-646</a>] - Decoding javascript into bson.D fails </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-649'>GODRIVER-649</a>] - Unmarshaling arrays and objects into bson.D yields bsonx types </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-650'>GODRIVER-650</a>] - MarshalBSON not called for non-primitive types within bson.D </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-651'>GODRIVER-651</a>] - InsertedID from InsertResult is a bsonx </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-654'>GODRIVER-654</a>] - GridFS bindings give int64 but package trys to receive them as int32 from bson </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-666'>GODRIVER-666</a>] - Write concern should not be encoded in aggregate unless $out is specified </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-437'>GODRIVER-437</a>] - Add helpers for database and client level change streams </li> </ul>
<h3>Improvement</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-211'>GODRIVER-211</a>] - Revise connection pooling options on Client/connstring </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-348'>GODRIVER-348</a>] - Refactor Client Creation </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-469'>GODRIVER-469</a>] - Update ChangeStream spec to detail usage of startAtOperationTime </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-535'>GODRIVER-535</a>] - Add support for pointers to reflect.Kind types </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-542'>GODRIVER-542</a>] - Enable dep support </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-555'>GODRIVER-555</a>] - Database.RunCommand should return *DocumentResult </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-570'>GODRIVER-570</a>] - InsertMany docs still claim batching is not supported </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-571'>GODRIVER-571</a>] - CountDocuments documentation references private function countDocumentsAggregatePipeline </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-595'>GODRIVER-595</a>] - Better BSON Transition Errors </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-614'>GODRIVER-614</a>] - Restructure Go Driver Repository </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-647'>GODRIVER-647</a>] - bson.NewDocument should be removed from documentation </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-653'>GODRIVER-653</a>] - Docstring on Raw.Lookup is incorrect for return type </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-657'>GODRIVER-657</a>] - EmptyInterfaceEncoder should handle nil properly </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-661'>GODRIVER-661</a>] - Consolidate objectid and decimal packages into primitive </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-662'>GODRIVER-662</a>] - Change ValueEncoder and ValueDecoder to use reflect.Value instead of interface{} </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-670'>GODRIVER-670</a>] - Move D family of types from bson package to primitive package </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-673'>GODRIVER-673</a>] - ValueReader should support reading the bytes of a top level document </li> </ul>
Nothing published for this version
Nothing published for this version
The MongoDB Go driver team is pleased to release the eighteenth alpha of the official Go driver.
The MongoDB Go driver team is pleased to release the eighteenth alpha of the official Go driver.
This alpha release contains major updates to the mongo package and BSON library. Additionally, there are small API updates and bug fixes. This is alpha software, so it is not recommended for production use.
Following semver, the v0 version of the public API should not be considered stable and could change.
Documentation can be found on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>BSON Library Changes</h2>
The Document, Element, Value, and Array types have been redesign and rewritten. They have been moved from the bson package to the x/bsonx package and renamed Doc, Elem, Val, and Arr respectively. These types are still under development and are likely to change.
The BSON primitive types have been moved from the bson package to a new package called primitive. For example the bson.Regex type is now the primitive.Regex type.
<h2>Mongo API Changes</h2>
Options for the mongo package have been redesigned. Instead of individual packages for groups of option types, there is a single options package that contains all options. Please refer to the GoDoc page for more details.
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-468'>GODRIVER-468</a>] - adding _id to a *bson.Document mutates the document. </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-505'>GODRIVER-505</a>] - Client Options should be last one wins </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-561'>GODRIVER-561</a>] - Database.RunCommand should use the provided read preference for server selection </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-563'>GODRIVER-563</a>] - The writeSelector property in the mongo.Database struct should include the LatencySelector </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-575'>GODRIVER-575</a>] - Database.ListCollections should return mongo.Cursor, not command.Cursor </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-578'>GODRIVER-578</a>] - Panic in cursor Close deadlocks </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-599'>GODRIVER-599</a>] - ValueEncoders should check if pointer is nil </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-413'>GODRIVER-413</a>] - Implement Improved BSON Design </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-586'>GODRIVER-586</a>] - Implement Improved Go Driver CRUD API </li> </ul>
<h3>Improvement</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-151'>GODRIVER-151</a>] - Change handling of network errors or timeouts during connection handshake </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-349'>GODRIVER-349</a>] - Separate cursor options from other options in commands </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-378'>GODRIVER-378</a>] - Unconnected Client should return a mongo level error, not topology level error </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-429'>GODRIVER-429</a>] - Move readconcern, readpref, and writeconcern packages to mongo package </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-541'>GODRIVER-541</a>] - Ensure all files have proper licenses </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-576'>GODRIVER-576</a>] - ListCollections filter should be interface{} </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-610'>GODRIVER-610</a>] - Scope & Design Improved BSON Support </li> </ul>
The MongoDB Go driver team is pleased to release the seventeenth alpha of the official Go driver.
The MongoDB Go driver team is pleased to release the seventeenth alpha of the official Go driver.
This alpha release reverses the dependency between the bson and bsoncodec packages, which is elaborated below. Additionally, there are small API updates and bug fixes. This is alpha software, so it is not recommended for production use.
Following semver, the v0 version of the public API should not be considered stable and could change.
Documentation can be found on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>BSON Package Dependency Reversal</h2>
This release reverses the dependency between the bson and bsoncodec
packages. This allows the bson package to contain the Marshal and
Unmarshal family of functions and the Encoder and Decoder types. This
allows future types in the bson package to handle the empty interface.
Users should be able to rely on the bson package for most functionality.
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-473'>GODRIVER-473</a>] - toExtJSON does not escape double quotes in strings </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-529'>GODRIVER-529</a>] - Value.Interface() returns the .String() result for EmbeddedDocument and Array </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-280'>GODRIVER-280</a>] - Remove maxScan query option </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-281'>GODRIVER-281</a>] - Remove snapshot option </li> </ul>
<h3>Improvement</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-300'>GODRIVER-300</a>] - Support constructing *Value from time.Time instances </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-536'>GODRIVER-536</a>] - Upgrade to Go 1.11 </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-548'>GODRIVER-548</a>] - Value.Interface() should return the underlying type for a Document </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-592'>GODRIVER-592</a>] - Reverse Dependencies of bson and bsoncodec </li> </ul>
The MongoDB Go driver team is pleased to release the sixteenth alpha of the official Go driver.
The MongoDB Go driver team is pleased to release the sixteenth alpha of the official Go driver.
This alpha release contains a new extended JSON implementation, an improved Sessions API, and an implementation of the BulkWrite API. Additionally, there are small API updates. This is alpha software, so it is not recommended for production use.
Following semver, the v0 version of the public API should not be considered stable and could change.
Documentation can be found on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-562'>GODRIVER-562</a>] - JSON decoding of an objectid returns error </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-564'>GODRIVER-564</a>] - bson.EC.Time does not treat the zero time.Time value the same as the encoder </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-596'>GODRIVER-596</a>] - Check value validity in isZero function </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-123'>GODRIVER-123</a>] - Implement BulkWrite API </li> </ul>
<h3>Improvement</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-514'>GODRIVER-514</a>] - Implement ExtJSON Reader using custom JSON parser & Implement extJSONValueReader and extJSONValueWriter </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-587'>GODRIVER-587</a>] - Implement Improved Go Driver Sessions API </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-590'>GODRIVER-590</a>] - objectid.ObjectID should support regular JSON hex bytes </li> </ul>
The MongoDB Go driver team is pleased to release the fifteenth alpha of the official Go driver.
The MongoDB Go driver team is pleased to release the fifteenth alpha of the official Go driver.
This release contains splits the bson package into two packages, bson and bsoncodec. The new marshaling and unmarshaling logic is contained within the bsoncodec package. Version 1 of the marshaling and unmarshaling logic has been removed. This release also contains a change to how cursors behave, fixes MaxAwaitTime, and adds a Database method to mongo.Collection. This is alpha software, so it is not recommended for production use.
Following semver, the v0 version of the public API should not be considered stable and could change.
Documentation can be found on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
<h2>Release Notes</h2> <h3>Bug</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-266'>GODRIVER-266</a>] - Properly implement maxAwaitTimeMS </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-558'>GODRIVER-558</a>] - SSL option processing sets SSLCaFileSet when SSLCaFile is empty string </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-566'>GODRIVER-566</a>] - Fix Equal method for bson.Value and update bson.Element.Equal to properly compare keys </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-567'>GODRIVER-567</a>] - Decoding date into time.Time does not work </li> </ul>
<h3>Epic</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-494'>GODRIVER-494</a>] - BSON Codec Redesign </li> </ul>
<h3>New Feature</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-568'>GODRIVER-568</a>] - Add Database() method on mongo.Collection </li> </ul>
<h3>Improvement</h3> <ul> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-527'>GODRIVER-527</a>] - Add BytesValueReader and BytesValueWriter interfaces </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-537'>GODRIVER-537</a>] - Split bson package into bson and bsoncodec packages </li> <li>[<a href='https://jira.mongodb.org/browse/GODRIVER-551'>GODRIVER-551</a>] - Use BSON Codecs in mongo package </li> </ul>
One column per quarter.