Skip to content

DOCSP-47961 v2.1 release #465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/redirects
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
13 changes: 12 additions & 1 deletion source/includes/mongodb-compatibility-table-go.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
- MongoDB 4.0
- MongoDB 3.6

* - 2.1
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓

* - 1.12 to 2.0
- ⊛ [#8.0-support]_
- ✓
Expand All @@ -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.
29 changes: 29 additions & 0 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ What's New

Learn what's new in:

* :ref:`Version 2.1 <golang-version-2.1>`
* :ref:`Version 2.0 <golang-version-2.0>`
* :ref:`Version 1.17 <golang-version-1.17>`
* :ref:`Version 1.16 <version-1.16>`
Expand All @@ -36,6 +37,34 @@ Learn what's new in:
* :ref:`Version 1.12.1 <version-1.12.1>`
* :ref:`Version 1.12 <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 </atlas-vector-search/vector-search-overview/>`
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 </mongodb/mongo-go-driver/releases/tag/v2.1.0>`
on GitHub.

.. _golang-version-2.0:

What's New in 2.0
Expand Down
Loading