@@ -10,6 +10,7 @@ What's New
1010
1111Learn what's new in:
1212
13+ * :ref:`Version 5.3 <version-5.3>`
1314* :ref:`Version 5.2 <version-5.2>`
1415* :ref:`Version 5.1 <version-5.1>`
1516* :ref:`Version 5.0 <version-5.0>`
@@ -32,6 +33,35 @@ Learn what's new in:
3233* :ref:`Version 3.7 <version-3.7>`
3334* :ref:`Version 3.6 <version-3.6>`
3435
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+
3565.. _version-5.2:
3666
3767What's New in 5.2
0 commit comments