Skip to content

Commit 4162ee4

Browse files
authoredMar 12, 2025··
DOCSP-47961 v2.1 release (#465)
* DOCSP-47961 v2.1 release * edits * weird vale error * JT edits * consistency edits * edits
1 parent 476d958 commit 4162ee4

File tree

4 files changed

+45
-5
lines changed

4 files changed

+45
-5
lines changed
 

‎config/redirects

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define: prefix docs/drivers/go
22
define: base https://www.mongodb.com/${prefix}
3-
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
3+
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
44

55
symlink: current -> master
66

‎snooty.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ api-version = "v2"
1818
driver-long = "MongoDB Go Driver"
1919
driver-short = "Go driver"
2020
docs-branch = "master"
21-
version = "v2.0"
22-
full-version = "{+version+}.1"
21+
version = "v2.1"
22+
full-version = "{+version+}.0"
2323
example = "https://raw.githubusercontent.com/mongodb/docs-golang/{+docs-branch+}/source/includes/usage-examples/code-snippets"
2424
api = "https://pkg.go.dev/go.mongodb.org/mongo-driver/{+api-version+}"
2525
stable-api = "Stable API"
@@ -29,5 +29,5 @@ kms-long = "Key Management System"
2929
cmk-long = "Customer Master Key"
3030
dek-long = "Data Encryption Key"
3131
csfle-short = "CSFLE"
32-
csfle-long = "Client-side Field Level Encryption"
32+
csfle-long = "Client-Side Field Level Encryption"
3333
mdb-server = "MongoDB Server"

‎source/includes/mongodb-compatibility-table-go.rst

+12-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
- MongoDB 4.0
1515
- MongoDB 3.6
1616

17+
* - 2.1
18+
- ✓
19+
- ✓
20+
- ✓
21+
- ✓
22+
- ✓
23+
- ✓
24+
- ✓
25+
- ✓
26+
- ✓
27+
1728
* - 1.12 to 2.0
1829
- ⊛ [#8.0-support]_
1930
- ✓
@@ -36,4 +47,4 @@
3647
- ✓
3748
- ✓
3849

39-
.. [#8.0-support] {+driver-short+} v1.17 is partially compatible with {+mdb-server+} 8.0 but does not support client bulk write.
50+
.. [#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.

‎source/whats-new.txt

+29
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ What's New
2626

2727
Learn what's new in:
2828

29+
* :ref:`Version 2.1 <golang-version-2.1>`
2930
* :ref:`Version 2.0 <golang-version-2.0>`
3031
* :ref:`Version 1.17 <golang-version-1.17>`
3132
* :ref:`Version 1.16 <version-1.16>`
@@ -36,6 +37,34 @@ Learn what's new in:
3637
* :ref:`Version 1.12.1 <version-1.12.1>`
3738
* :ref:`Version 1.12 <version-1.12>`
3839

40+
.. _golang-version-2.1:
41+
42+
What's New in 2.1
43+
-----------------
44+
45+
The 2.1 {+driver-short+} release includes the following improvements
46+
and fixes:
47+
48+
- Introduces the new `Client.BulkWrite <{+api+}/mongo#Client.BulkWrite>`__ method,
49+
enabling clients to perform multiple insert, update, and delete operations across
50+
multiple databases and collections in a single request.
51+
52+
- Introduces the new `bson.Vector <{+api+}/bson#Vector>`__ type to make inserting and querying
53+
vector data by using :atlas:`Atlas Vector Search </atlas-vector-search/vector-search-overview/>`
54+
easier and more efficient.
55+
56+
- Extends the `ServerError <{+api+}/mongo#ServerError>`__ interface to include
57+
``ErrorCodes``, which returns a list of deduplicated error codes returned by
58+
the server during the lifetime of operation execution.
59+
60+
- Adds the ``sort`` option to `UpdateOneOptions <{+api+}/mongo/options#UpdateOneOptions>`__
61+
and `ReplaceOptions <{+api+}/mongo/options#ReplaceOptions>`__ for the ``updateOne``
62+
and ``replaceOne`` operations.
63+
64+
For more information about the changes in this version, see the
65+
:github:`v2.1 release notes </mongodb/mongo-go-driver/releases/tag/v2.1.0>`
66+
on GitHub.
67+
3968
.. _golang-version-2.0:
4069

4170
What's New in 2.0

0 commit comments

Comments
 (0)
Please sign in to comment.