From 9b5fa9e7261cba1c4d6fe0e62511353de0d4002a Mon Sep 17 00:00:00 2001 From: Lindsey Moore Date: Thu, 6 Mar 2025 22:32:51 -0500 Subject: [PATCH 1/6] DOCSP-47961 v2.1 release --- config/redirects | 2 +- snooty.toml | 4 +-- .../mongodb-compatibility-table-go.rst | 13 +++++++++- source/whats-new.txt | 25 +++++++++++++++++++ 4 files changed, 40 insertions(+), 4 deletions(-) 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..7c763fb7 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" diff --git a/source/includes/mongodb-compatibility-table-go.rst b/source/includes/mongodb-compatibility-table-go.rst index ee227f04..23d7109d 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 does not support client bulk write. diff --git a/source/whats-new.txt b/source/whats-new.txt index b2957ed1..a00e901f 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,30 @@ 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: + +- You can use the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method + to perform many insert, update, and delete operations on multiple databases and + collections in one request. + +- The new `bson.Vector <{+api+}/bson#Vector>`__ type makes inserting and querying + vector data 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 ths ``sort`` option to `UpdateOneOptions <{+api+}/mongo/options#UpdateOneOptions>`__ + and `ReplaceOptions <{+api+}/mongo/options#ReplaceOptions>`__ for the ``updateOne`` + and ``replaceOne`` operations. + .. _golang-version-2.0: What's New in 2.0 From 33ba6e7add454612726c752c9e59789c55989b6d Mon Sep 17 00:00:00 2001 From: Lindsey Moore Date: Fri, 7 Mar 2025 11:50:51 -0500 Subject: [PATCH 2/6] edits --- source/includes/mongodb-compatibility-table-go.rst | 2 +- source/whats-new.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/includes/mongodb-compatibility-table-go.rst b/source/includes/mongodb-compatibility-table-go.rst index 23d7109d..45921881 100644 --- a/source/includes/mongodb-compatibility-table-go.rst +++ b/source/includes/mongodb-compatibility-table-go.rst @@ -47,4 +47,4 @@ - ✓ - ✓ -.. [#8.0-support] {+driver-short+} v1.17 and v2.0 are 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 a00e901f..a13c6c1c 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -61,6 +61,10 @@ and fixes: 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 From 14f2081cac2bcb328e3d657c1a5f8d0268a9950f Mon Sep 17 00:00:00 2001 From: Lindsey Moore Date: Fri, 7 Mar 2025 11:53:56 -0500 Subject: [PATCH 3/6] weird vale error --- source/whats-new.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/whats-new.txt b/source/whats-new.txt index a13c6c1c..40ed51c8 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -46,7 +46,7 @@ The 2.1 {+driver-short+} release includes the following improvements and fixes: - You can use the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method - to perform many insert, update, and delete operations on multiple databases and + to perform many insert, update and delete operations on multiple databases and collections in one request. - The new `bson.Vector <{+api+}/bson#Vector>`__ type makes inserting and querying From f11b2e707fc626335f12ebebef5f98af33a8265b Mon Sep 17 00:00:00 2001 From: Lindsey Moore Date: Mon, 10 Mar 2025 14:16:38 -0400 Subject: [PATCH 4/6] JT edits --- snooty.toml | 2 +- source/whats-new.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snooty.toml b/snooty.toml index 7c763fb7..7e83afef 100644 --- a/snooty.toml +++ b/snooty.toml @@ -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/whats-new.txt b/source/whats-new.txt index 40ed51c8..c93fa676 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -46,10 +46,10 @@ The 2.1 {+driver-short+} release includes the following improvements and fixes: - You can use the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method - to perform many insert, update and delete operations on multiple databases and + to perform many insert, update, and delete operations on multiple databases and collections in one request. -- The new `bson.Vector <{+api+}/bson#Vector>`__ type makes inserting and querying +- Adds the new `bson.Vector <{+api+}/bson#Vector>`__ type to make inserting and querying vector data using :atlas:`Atlas Vector Search ` easier and more efficient. @@ -57,7 +57,7 @@ and fixes: ``ErrorCodes``, which returns a list of deduplicated error codes returned by the server during the lifetime of operation execution. -- Adds ths ``sort`` option to `UpdateOneOptions <{+api+}/mongo/options#UpdateOneOptions>`__ +- Adds the ``sort`` option to `UpdateOneOptions <{+api+}/mongo/options#UpdateOneOptions>`__ and `ReplaceOptions <{+api+}/mongo/options#ReplaceOptions>`__ for the ``updateOne`` and ``replaceOne`` operations. From 45473ded591f6c7587586f2c56ae9c5993464367 Mon Sep 17 00:00:00 2001 From: Lindsey Moore Date: Tue, 11 Mar 2025 13:35:23 -0400 Subject: [PATCH 5/6] consistency edits --- source/whats-new.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/whats-new.txt b/source/whats-new.txt index c93fa676..53825ce9 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -45,13 +45,13 @@ What's New in 2.1 The 2.1 {+driver-short+} release includes the following improvements and fixes: -- You can use the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method - to perform many insert, update, and delete operations on multiple databases and - collections in one request. +- Adds the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method + to make performing many insert, update, and delete operations on multiple databases and + collections in one request more efficient. - Adds the new `bson.Vector <{+api+}/bson#Vector>`__ type to make inserting and querying - vector data using :atlas:`Atlas Vector Search ` - easier and more efficient. + vector data by using :atlas:`Atlas Vector Search ` + more efficient. - Extends the `ServerError <{+api+}/mongo#ServerError>`__ interface to include ``ErrorCodes``, which returns a list of deduplicated error codes returned by From 07b81d51bf5962debe3f879313b4f348936bb929 Mon Sep 17 00:00:00 2001 From: Lindsey Moore Date: Tue, 11 Mar 2025 14:19:00 -0400 Subject: [PATCH 6/6] edits --- source/whats-new.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/whats-new.txt b/source/whats-new.txt index 53825ce9..bf21f071 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -45,13 +45,13 @@ What's New in 2.1 The 2.1 {+driver-short+} release includes the following improvements and fixes: -- Adds the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method - to make performing many insert, update, and delete operations on multiple databases and - collections in one request more efficient. +- 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. -- Adds the new `bson.Vector <{+api+}/bson#Vector>`__ type to make inserting and querying +- Introduces the new `bson.Vector <{+api+}/bson#Vector>`__ type to make inserting and querying vector data by using :atlas:`Atlas Vector Search ` - more efficient. + easier and more efficient. - Extends the `ServerError <{+api+}/mongo#ServerError>`__ interface to include ``ErrorCodes``, which returns a list of deduplicated error codes returned by