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
Copy file name to clipboardExpand all lines: source/whats-new.txt
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,18 @@ What's New in 5.0
41
41
42
42
New features of the 5.0 {+driver-short+} release include:
43
43
44
+
.. important:: Breaking Change: Removal of Callback Support
45
+
46
+
This release removes support for callbacks in favor of a promise-based API.
47
+
The following list provides some strategies for callback users to adopt this
48
+
version:
49
+
50
+
- Migrate to the promise-based API (recommended)
51
+
- Use the promise-based API and ``util.callbackify``
52
+
- Add ``mongodb-legacy`` to continue using callbacks
53
+
54
+
For more information about these strategies, see the `v5 Change Notes <https://github.com/mongodb/node-mongodb-native/blob/main/etc/notes/CHANGES_5.0.0.md>`__.
55
+
44
56
- By default, the driver no longer checks types referenced in dot notation
45
57
unless the ``StrictFilter`` type annotation is explicitly
46
58
used. To learn more about this change, see the :ref:`Typescript fundamentals
0 commit comments