Skip to content

Commit bf98afb

Browse files
mongoKartrustagir
andauthored
DOCSP-39221 - v6.6 Updates (#888)
Co-authored-by: Rea Rustagi <[email protected]>
1 parent 9627bfe commit bf98afb

File tree

5 files changed

+90
-4
lines changed

5 files changed

+90
-4
lines changed

.backportrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// the branches available to backport to
66
"targetBranchChoices": [
77
"master",
8+
"v6.6",
89
"v6.5",
910
"v6.4",
1011
"v6.3",

config/redirects

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define: prefix docs/drivers/node
22
define: base https://www.mongodb.com/${prefix}
3-
define: versions v3.6 v3.7 v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 v4.10 v4.11 v4.12 v4.13 v4.14 v4.15 v4.16 v4.17 v5.0 v5.1 v5.2 v5.3 v5.4 v5.5 v5.6 v5.7 v5.8 v5.9 v6.0 v6.1 v6.2 v6.3 v6.4 v6.5 master
3+
define: versions v3.6 v3.7 v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 v4.10 v4.11 v4.12 v4.13 v4.14 v4.15 v4.16 v4.17 v5.0 v5.1 v5.2 v5.3 v5.4 v5.5 v5.6 v5.7 v5.8 v5.9 v6.0 v6.1 v6.2 v6.3 v6.4 v6.5 v6.6 master
44

55
symlink: current -> master
66

snooty.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ toc_landing_pages = [
1919
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
2020

2121
[constants]
22-
version = "6.5"
22+
version = "6.6"
2323
api = "https://mongodb.github.io/node-mongodb-native/{+version+}"
2424
driver-long = "MongoDB Node.js driver"
2525
driver-short = "Node.js driver"

source/includes/mongodb-compatibility-table-node.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- MongoDB 3.0
1717
- MongoDB 2.6
1818

19-
* - 6.0 to 6.5
19+
* - 6.0 to 6.6
2020
- ✓
2121
- ✓
2222
- ✓

source/whats-new.txt

+86-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ What's New
1717
.. meta::
1818
:keywords: version, update, upgrade, backwards compatibility
1919

20-
2120
Learn what's new in:
2221

22+
* :ref:`Version 6.6 <version-6.6>`
2323
* :ref:`Version 6.5 <version-6.5>`
2424
* :ref:`Version 6.4 <version-6.4>`
2525
* :ref:`Version 6.3 <version-6.3>`
@@ -57,6 +57,91 @@ Learn what's new in:
5757
* :ref:`Version 3.7 <version-3.7>`
5858
* :ref:`Version 3.6 <version-3.6>`
5959

60+
.. _version-6.6:
61+
62+
What's New in 6.6
63+
-----------------
64+
65+
The {+driver-short+} v6.6 release includes the following features:
66+
67+
- Upgrades to using BSON 6.7.0. For details about the new BSON features, see the
68+
release notes for `BSON 6.5.0
69+
<https://github.com/mongodb/js-bson/releases/tag/v6.5.0>`__,
70+
`BSON 6.6.0 <https://github.com/mongodb/js-bson/releases/tag/v6.6.0>`__, and
71+
`BSON 6.7.0 <https://github.com/mongodb/js-bson/releases/tag/v6.7.0>`__.
72+
73+
- Adds the ``addStage()`` method to the fluid aggregation API. You can use this method to
74+
add aggregation pipeline stages individually, as shown in the following
75+
example:
76+
77+
.. code-block:: javascript
78+
79+
const documents = await users.aggregate().addStage({ $project: { name: true } }).toArray();
80+
81+
- Adds the ``cause`` and ``dependencyName`` fields to the ``MongoMissingDependencyError``
82+
class. You can use these fields to programmatically determine if a package is missing
83+
or why a package didn't load.
84+
85+
- Adds the ``minRoundTripTime`` property to the ``ServerDescription`` class. This
86+
property contains the minimum round-trip time over the last 10 heartbeats.
87+
88+
- Adds the ``toJSON()`` method to the ``TopologyDescription`` class. Although you can use
89+
this method to stringify ``TopologyDescription`` objects to JSON, we
90+
recommend using Node's ``util.inspect()`` method instead, because it properly handles
91+
all types used in JavaScript and the driver.
92+
93+
- Adds cursor options support for the ``Collection.indexExists()``,
94+
``Collection.indexes()``, and ``Collection.indexInformation()`` methods in Typescript.
95+
96+
- Removes support for the ``readConcern`` and ``writeConcern`` options from the
97+
``Collection.listSearchIndexes()`` method. ``listSearchIndexes()`` is an Atlas-specific method, and Atlas
98+
search indexes don't support these options.
99+
100+
- Redefines the ``ServerDescription.roundTripTime`` property as a moving average. Previously,
101+
it was a weighted average of the most recently observed heartbeat duration and the
102+
previous duration.
103+
104+
- You can specify the type of a search index when creating the index, as shown
105+
in the following example:
106+
107+
.. code-block:: js
108+
:emphasize-lines: 3
109+
110+
const indexName = await collection.createSearchIndex({
111+
name: 'my-vector-search-index',
112+
type: 'vectorSearch',
113+
definition: {
114+
mappings: { dynamic: false }
115+
}
116+
});
117+
118+
- The ``UpdateFilter.$currentDate`` property no longer throws an error when you pass
119+
it to a compound method, such as ``findOneAndUpdate()``, on a collection with a limited schema.
120+
121+
- The driver throws a ``MongoTransactionError`` only if you provide a
122+
``ReadPreferenceMode`` other than ``primary`` and then try to perform a command that
123+
involves a read operation.
124+
125+
- The data type of the ``TopologyDescription.error`` property is ``MongoError``.
126+
127+
- The ``Collection.indexExists()`` method no longer supports the ``full`` option.
128+
129+
- The ``Collection.indexInformation()``, ``Collection.indexes()``, and
130+
``Db.indexInformation()`` methods have a return type of
131+
``IndexDescriptionCompact | IndexDescriptionInfo[]`` in TypeScript.
132+
133+
- When retrieving AWS KMS (Key Management System) credentials, the driver no longer
134+
throws an error when it receives an access key that includes
135+
an expiration timestamp.
136+
137+
- The ``ClusterTime`` interface no longer defines the ``signature`` field as required in
138+
TypeScript.
139+
140+
To learn more about this release, see the
141+
`v6.6.0 Release Highlights
142+
<https://github.com/mongodb/node-mongodb-native/releases/tag/v6.6.0>`__ on
143+
GitHub.
144+
60145
.. _version-6.5:
61146

62147
What's New in 6.5

0 commit comments

Comments
 (0)