@@ -19,6 +19,7 @@ What's New
19
19
20
20
Learn what's new in:
21
21
22
+ * :ref:`Version 6.8 <version-6.8>`
22
23
* :ref:`Version 6.7 <version-6.7>`
23
24
* :ref:`Version 6.6 <version-6.6>`
24
25
* :ref:`Version 6.5 <version-6.5>`
@@ -58,6 +59,70 @@ Learn what's new in:
58
59
* :ref:`Version 3.7 <version-3.7>`
59
60
* :ref:`Version 3.6 <version-3.6>`
60
61
62
+ .. _version-6.8:
63
+
64
+ What's New in 6.8
65
+ -----------------
66
+
67
+ The {+driver-short+} v6.7 release includes the following features:
68
+
69
+ - Fixes a bug where a local KMS provider accepted a ``BSON Binary`` instance at
70
+ runtime, but the TypeScript compiler allowed only values of type ``Buffer`` and
71
+ ``string``.
72
+
73
+ - The ``ReadConcernMajorityNotAvailableYet`` error is now a retryable read error.
74
+
75
+ - KMS providers can now be associated with a name, and multiple keys can be provided
76
+ for each KMS provider. This feature requires ``mongodb-client-encryption`` v6.0.1 or
77
+ later.
78
+
79
+ The following code example configures a ``ClientEncryption`` object with multiple AWS keys:
80
+
81
+ .. code-block:: javascript
82
+ :copyable: true
83
+
84
+ const clientEncryption = new ClientEncryption(keyVaultClient, {
85
+ 'aws:key1': {
86
+ accessKeyId: ...,
87
+ secretAccessKey: ...
88
+ },
89
+ 'aws:key2': {
90
+ accessKeyId: ...,
91
+ secretAccessKey: ...
92
+ },
93
+
94
+ clientEncryption.createDataKey('aws:key-1', { ... });
95
+
96
+ .. note::
97
+
98
+ You can't use named KMS providers if your application uses the automatic
99
+ KMS provider refresh capability.
100
+
101
+ - When you create a KMIP data key, you can now specify the ``delegated`` option. If this
102
+ option is set to ``true``, the KMIP provider performs encryption and decryption of
103
+ the data key locally, ensuring that the encryption key never leaves the KMIP server.
104
+ This feature requires ``mongodb-client-encryption`` v6.0.1 or later.
105
+
106
+ .. code-block:: javascript
107
+ :copyable: true
108
+
109
+ clientEncryption.createDataKey('kmip', { masterKey: { delegated: true } } );
110
+
111
+ - The driver now decodes BSON responses as the cursor iterates over them,
112
+ rather than decoding the entire BSON response when it is received.
113
+
114
+ - The Github release for the ``mongodb`` package now contains a detached signature file for
115
+ the NPM package (named mongodb-X.Y.Z.tgz.sig). This change applies to every major
116
+ and patch release for versions 5 and 6 of the driver. To verify the package signature,
117
+ follow the instructions in the Release Integrity section of the
118
+ `README.md <https://github.com/mongodb/node-mongodb-native/blob/v6.8.0/README.md#release-integrity>`__
119
+ file in the driver's GitHub repository.
120
+
121
+ To learn more about this release, see the
122
+ `v6.8.0 Release Notes
123
+ <https://github.com/mongodb/node-mongodb-native/releases/tag/v6.8.0>`__ on
124
+ GitHub.
125
+
61
126
.. _version-6.7:
62
127
63
128
What's New in 6.7
0 commit comments