diff --git a/config/redirects b/config/redirects index fc66d5dd..633f702d 100644 --- a/config/redirects +++ b/config/redirects @@ -1,6 +1,6 @@ define: prefix docs/drivers/go define: base https://www.mongodb.com/${prefix} -define: versions v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13 v1.14 v1.15 v1.16 v1.17 v2.0 master +define: versions v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13 v1.14 v1.15 v1.16 v1.17 v2.0 v2.1 master symlink: current -> master diff --git a/snooty.toml b/snooty.toml index 4087b18c..7e83afef 100644 --- a/snooty.toml +++ b/snooty.toml @@ -18,8 +18,8 @@ api-version = "v2" driver-long = "MongoDB Go Driver" driver-short = "Go driver" docs-branch = "master" -version = "v2.0" -full-version = "{+version+}.1" +version = "v2.1" +full-version = "{+version+}.0" example = "https://raw.githubusercontent.com/mongodb/docs-golang/{+docs-branch+}/source/includes/usage-examples/code-snippets" api = "https://pkg.go.dev/go.mongodb.org/mongo-driver/{+api-version+}" stable-api = "Stable API" @@ -29,5 +29,5 @@ kms-long = "Key Management System" cmk-long = "Customer Master Key" dek-long = "Data Encryption Key" csfle-short = "CSFLE" -csfle-long = "Client-side Field Level Encryption" +csfle-long = "Client-Side Field Level Encryption" mdb-server = "MongoDB Server" diff --git a/source/includes/mongodb-compatibility-table-go.rst b/source/includes/mongodb-compatibility-table-go.rst index ee227f04..45921881 100644 --- a/source/includes/mongodb-compatibility-table-go.rst +++ b/source/includes/mongodb-compatibility-table-go.rst @@ -14,6 +14,17 @@ - MongoDB 4.0 - MongoDB 3.6 + * - 2.1 + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + - ✓ + * - 1.12 to 2.0 - ⊛ [#8.0-support]_ - ✓ @@ -36,4 +47,4 @@ - ✓ - ✓ -.. [#8.0-support] {+driver-short+} v1.17 is partially compatible with {+mdb-server+} 8.0 but does not support client bulk write. +.. [#8.0-support] {+driver-short+} v1.17 and v2.0 are partially compatible with {+mdb-server+} 8.0 but do not support client bulk write. diff --git a/source/whats-new.txt b/source/whats-new.txt index b2957ed1..bf21f071 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -26,6 +26,7 @@ What's New Learn what's new in: +* :ref:`Version 2.1 ` * :ref:`Version 2.0 ` * :ref:`Version 1.17 ` * :ref:`Version 1.16 ` @@ -36,6 +37,34 @@ Learn what's new in: * :ref:`Version 1.12.1 ` * :ref:`Version 1.12 ` +.. _golang-version-2.1: + +What's New in 2.1 +----------------- + +The 2.1 {+driver-short+} release includes the following improvements +and fixes: + +- Introduces the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method, + enabling clients to perform multiple insert, update, and delete operations across + multiple databases and collections in a single request. + +- Introduces the new `bson.Vector <{+api+}/bson#Vector>`__ type to make inserting and querying + vector data by using :atlas:`Atlas Vector Search ` + easier and more efficient. + +- Extends the `ServerError <{+api+}/mongo#ServerError>`__ interface to include + ``ErrorCodes``, which returns a list of deduplicated error codes returned by + the server during the lifetime of operation execution. + +- Adds the ``sort`` option to `UpdateOneOptions <{+api+}/mongo/options#UpdateOneOptions>`__ + and `ReplaceOptions <{+api+}/mongo/options#ReplaceOptions>`__ for the ``updateOne`` + and ``replaceOne`` operations. + +For more information about the changes in this version, see the +:github:`v2.1 release notes ` +on GitHub. + .. _golang-version-2.0: What's New in 2.0