Skip to content

Commit 35e0ea9

Browse files
committed
pull in fixes into v7 guide
1 parent 76669eb commit 35e0ea9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

etc/notes/CHANGES_7.0.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ The main focus of this release was usability improvements and a streamlined API.
3131
- [☀️ Misc non-breaking improvements](#%EF%B8%8F-misc-non-breaking-improvements)
3232
- [Improve `MongoClient.connect()` consistency across environments](#improve-mongoclientconnect-consistency-across-environments)
3333
- [`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)
3436
- [📜 Removal of deprecated functionality](#-removal-of-deprecated-functionality)
3537
- [Cursor and ChangeStream `stream()` method no longer accepts a transform](#cursor-and-changestream-stream-method-no-longer-accepts-a-transform)
3638
- [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
159161

160162
Now, `MongoClient.close()` only attempts to clean up sessions if the topology supports sessions.
161163

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+
162172
## 📜 Removal of deprecated functionality
163173

164174
### Cursor and ChangeStream `stream()` method no longer accepts a transform
@@ -248,3 +258,5 @@ CancellationToken;
248258
- **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))
249259
- **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))
250260
- **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))
262+
- **NODE-7247:** clarify #rewrapManyDataKey() parameter types ([#4760](https://github.com/mongodb/node-mongodb-native/issues/4760)) ([cb522bf](https://github.com/mongodb/node-mongodb-native/commit/cb522bfd0c45086a821e4918c0f1af33c68cfa7a))

0 commit comments

Comments
 (0)