@@ -10,6 +10,7 @@ What's New
10
10
11
11
Learn what's new in:
12
12
13
+ * :ref:`Version 5.3 <version-5.3>`
13
14
* :ref:`Version 5.2 <version-5.2>`
14
15
* :ref:`Version 5.1 <version-5.1>`
15
16
* :ref:`Version 5.0 <version-5.0>`
@@ -32,6 +33,35 @@ Learn what's new in:
32
33
* :ref:`Version 3.7 <version-3.7>`
33
34
* :ref:`Version 3.6 <version-3.6>`
34
35
36
+ .. _version-5.3:
37
+
38
+ What's New in 5.3
39
+ -----------------
40
+
41
+ New features of the 5.3 {+driver-short+} release include:
42
+
43
+ .. important:: Deprecation Notice
44
+
45
+ - The ``forEach()`` cursor method, which allows you to iteratively access
46
+ results from queries and aggregations, is deprecated. Use the
47
+ ``for await...of`` syntax instead, as shown
48
+ :ref:`here. <node-fundamentals-async-iteration>`
49
+ - The ``addUser()`` method is deprecated. Use ``createUser()`` instead.
50
+ - The ``keepAlive`` and ``keepAliveInitialDelay`` connection options are
51
+ deprecated.
52
+ - Methods that contain duplicated functionality in the ``BulkWriteResult`` class are deprecated.
53
+ See the
54
+ `API documentation <https://mongodb.github.io/node-mongodb-native/5.3/classes/BulkWriteResult.html#nInserted>`__
55
+ for a full list of deprecated methods and the preferred alternatives.
56
+
57
+ - Client metadata now includes function as a service (FaaS) environment information
58
+ and alternative runtime detection.
59
+ - The driver now allows SRV record addresses that contain a trailing dot.
60
+ - ``UpdateResult.upsertedId`` now returns null when no documents are updated.
61
+
62
+ To learn more, see the `v5.3.0 Release Highlights
63
+ <https://github.com/mongodb/node-mongodb-native/releases/tag/v5.3.0>`__.
64
+
35
65
.. _version-5.2:
36
66
37
67
What's New in 5.2
0 commit comments