Skip to content

v6.13 release #957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/redirects
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define: prefix docs/drivers/node
define: base https://www.mongodb.com/${prefix}
define: versions v3.6 v3.7 v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 v4.10 v4.11 v4.12 v4.13 v4.14 v4.15 v4.16 v4.17 v5.0 v5.1 v5.2 v5.3 v5.4 v5.5 v5.6 v5.7 v5.8 v5.9 v6.0 v6.1 v6.2 v6.3 v6.4 v6.5 v6.6 v6.7 v6.8 v6.9 v6.10 v6.11 v6.12 master
define: versions v3.6 v3.7 v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 v4.10 v4.11 v4.12 v4.13 v4.14 v4.15 v4.16 v4.17 v5.0 v5.1 v5.2 v5.3 v5.4 v5.5 v5.6 v5.7 v5.8 v5.9 v6.0 v6.1 v6.2 v6.3 v6.4 v6.5 v6.6 v6.7 v6.8 v6.9 v6.10 v6.11 v6.12 6.13 master

symlink: current -> master

Expand Down
2 changes: 1 addition & 1 deletion snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ toc_landing_pages = [
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"

[constants]
version = "6.12"
version = "6.13"
api = "https://mongodb.github.io/node-mongodb-native/{+version+}"
driver-long = "MongoDB Node.js driver"
driver-short = "Node.js driver"
Expand Down
2 changes: 1 addition & 1 deletion source/includes/language-compatibility-table-node.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- Node.js v16.x.x
- Node.js v14.x.x

* - 6.11 to 6.12 [#latest-note]_
* - 6.11 to 6.13 [#latest-note]_
- ✓
- ✓
- ✓
Expand Down
2 changes: 1 addition & 1 deletion source/includes/mongodb-compatibility-table-node.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- MongoDB 4.0
- MongoDB 3.6

* - 6.10 to 6.12
* - 6.10 to 6.13
- ✓
- ✓
- ✓
Expand Down
45 changes: 45 additions & 0 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ What's New

Learn what's new in:

* :ref:`Version 6.13 <version-6.13>`
* :ref:`Version 6.12 <version-6.12>`
* :ref:`Version 6.11 <version-6.11>`
* :ref:`Version 6.10 <version-6.10>`
Expand All @@ -33,6 +34,50 @@ Learn what's new in:
* :ref:`Version 6.1 <version-6.1>`
* :ref:`Version 6.0 <version-6.0>`

.. _version-6.13:

What's New in 6.13
------------------

The {+driver-short+} v6.13 release includes the following features:

- Adds a new standardized logger to enable insight into database operations
without code changes. You can enable and configure the logger through
environment variables, as shown in the following example:

.. code-block:: bash

env MONGODB_LOG_ALL=debug node server.mjs

- Improves command monitoring performance by removing deep copies of command and
reply objects.

- Adds an experimental abort signal feature. You can pass the ``signal`` command
to the following methods to interrupt the execution of the method when the
signal is triggered:

- ``collection.find()``
- ``collection.findOne()``
- ``collection.aggregate()``
- ``collection.coundDocuments()``
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- ``collection.coundDocuments()``
- ``collection.countDocuments()``

- ``db.listCollections()``
- ``db.command()``

Aborting a signal closes a connection, which might cause unnecessary
connection reestablishment.

- To avoid potential DNS timeout errors, the driver catches and retries DNS
lookups when resolving ``mongodb+srv://`` connection strings.

- ``MongoClient.close()`` also closes any associated cursors.
- You can call ``MongoClient.close()`` concurrently.
- Fixes an issue that caused ``MONGODB-OIDC`` authentication to not properly
reauthenticate if the handshake includes speculative authentication.

To learn more about this release, see the
:github:`v6.13.0 Release Notes <mongodb/node-mongodb-native/releases/tag/v6.13.0>` on
GitHub.

.. _version-6.12:

What's New in 6.12
Expand Down
Loading