You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Improve `MongoClient.connect()` consistency across environments](#improve-mongoclientconnect-consistency-across-environments)
33
33
-[`MongoClient.close()` no longer sends `endSessions` if the topology does not have session support](#mongoclientclose-no-longer-sends-endsessions-if-the-topology-does-not-have-session-support)
34
+
-[Wrap socket write in a try/catch to ensure errors can be properly wrapped](#wrap-socket-write-in-a-trycatch-to-ensure-errors-can-be-properly-wrapped)
35
+
-[`ClientEncryption.rewrapManyDataKey()` options now correctly marked as optional](#clientEncryptionrewrapManyDataKey-options-now-correctly-marked-as-optional)
34
36
-[📜 Removal of deprecated functionality](#-removal-of-deprecated-functionality)
35
37
-[Cursor and ChangeStream `stream()` method no longer accepts a transform](#cursor-and-changestream-stream-method-no-longer-accepts-a-transform)
36
38
-[MONGODB-CR AuthMechanism has been removed](#mongodb-cr-authmechanism-has-been-removed)
@@ -159,6 +161,14 @@ The `MongoClient` connect function will now run a handshake regardless of creden
159
161
160
162
Now, `MongoClient.close()` only attempts to clean up sessions if the topology supports sessions.
161
163
164
+
### Wrap socket write in a try/catch to ensure errors can be properly wrapped
165
+
166
+
One `socket.write` call was not correctly wrapped in a try/catch block and network errors could bubble up to the driver. This call is now properly wrapped and will result in a retry.
167
+
168
+
### `ClientEncryption.rewrapManyDataKey()` options now correctly marked as optional
169
+
170
+
The options parameter for the `ClientEncryption.rewrapManyDataKey()` method is now correctly marked as optional in its TypeScript definition. This change aligns the type signature with the method's implementation and documentation, resolving a type mismatch for TypeScript users.
171
+
162
172
## 📜 Removal of deprecated functionality
163
173
164
174
### Cursor and ChangeStream `stream()` method no longer accepts a transform
@@ -248,3 +258,5 @@ CancellationToken;
248
258
-**NODE-4243:** drop collection checks ns not found ([#4742](https://github.com/mongodb/node-mongodb-native/issues/4742)) ([a8d7c5f](https://github.com/mongodb/node-mongodb-native/commit/a8d7c5ff6c68ad57291641b2eb14cc27d91508ae))
249
259
-**NODE-7223:** run checkout on connect regardless of credentials ([#4715](https://github.com/mongodb/node-mongodb-native/issues/4715)) ([c5f74ab](https://github.com/mongodb/node-mongodb-native/commit/c5f74abe27acd8661f17046b1740ac74de1be082))
250
260
-**NODE-7232:** only send endSessions during client close if the topology supports sessions ([#4722](https://github.com/mongodb/node-mongodb-native/issues/4722)) ([cc85ebf](https://github.com/mongodb/node-mongodb-native/commit/cc85ebf246b20e0bae59e1bdcdf0f9c74ea01979))
261
+
-**NODE-7067:** Wrap socket write in a try/catch to ensure errors can be properly wrapped ([#4759](https://github.com/mongodb/node-mongodb-native/issues/4759)) ([66c18b7](https://github.com/mongodb/node-mongodb-native/commit/66c18b7ee948e43847b324b25b552c2ff9ca851c))
0 commit comments