diff --git a/.backportrc.json b/.backportrc.json index 043fcd9e..b695d605 100644 --- a/.backportrc.json +++ b/.backportrc.json @@ -5,7 +5,8 @@ // the branches available to backport to "targetBranchChoices": [ "master", - "v6.4" + "v6.5", + "v6.4", "v6.3", "v6.2", "v6.1", diff --git a/config/redirects b/config/redirects index 43bdbb1c..a13faf0f 100644 --- a/config/redirects +++ b/config/redirects @@ -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 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 master symlink: current -> master diff --git a/snooty.toml b/snooty.toml index 3321b1a6..87cbcd9b 100644 --- a/snooty.toml +++ b/snooty.toml @@ -19,7 +19,7 @@ toc_landing_pages = [ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/" [constants] -version = "6.4" +version = "6.5" api = "https://mongodb.github.io/node-mongodb-native/{+version+}" driver-long = "MongoDB Node.js driver" driver-short = "Node.js driver" diff --git a/source/includes/mongodb-compatibility-table-node.rst b/source/includes/mongodb-compatibility-table-node.rst index 01a5d3a3..4304f128 100644 --- a/source/includes/mongodb-compatibility-table-node.rst +++ b/source/includes/mongodb-compatibility-table-node.rst @@ -16,7 +16,7 @@ - MongoDB 3.0 - MongoDB 2.6 - * - 6.0 to 6.4 + * - 6.0 to 6.5 - ✓ - ✓ - ✓ diff --git a/source/whats-new.txt b/source/whats-new.txt index bc706516..656ce98b 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -13,13 +13,14 @@ What's New .. facet:: :name: genre :values: reference - + .. meta:: :keywords: version, update, upgrade, backwards compatibility Learn what's new in: +* :ref:`Version 6.5 ` * :ref:`Version 6.4 ` * :ref:`Version 6.3 ` * :ref:`Version 6.2 ` @@ -56,6 +57,45 @@ Learn what's new in: * :ref:`Version 3.7 ` * :ref:`Version 3.6 ` +.. _version-6.5: + +What's New in 6.5 +----------------- + +The {+driver-short+} v6.5 release includes the following features: + +- Updates bulk write operations to use the ``pkFactory`` class for document + ID generation. + +.. warning:: + + If you previously specified an instance of a ``pkFactory`` to handle + bulk writes, the ``_id`` fields of the documents inserted by using bulk + writes may be inconsistent with the behavior in this version. + +- Fixes the read preference that is sent with read operations to + ``primaryPreferred`` when the driver is connected to a secondary node in + the replica set. + +- Fixes a memory leak in promise creation for socket operations. + +- Reduces first-time connection latency when connecting to a DNS seedlist by + querying the ``SRV`` and ``TXT`` records in parallel. + +- Adds tracking to container metadata when running a client in Kubernetes + or a container environment in the ``client.env.container`` field of the + handshake document. + +- Adds the original error document returned by the server to the + ``errorResponse`` field of the ``MongoServerError`` document. + +- Deprecates the ``CloseOptions`` interface which is unused by the driver. + +To learn more about this release, see the +`v6.5.0 Release Highlights +`__ on +GitHub. + .. _version-6.4: What's New in 6.4 @@ -73,7 +113,7 @@ The {+driver-short+} v6.4 release includes the following features: release notes for `BSON 6.3.0 `__ and `BSON 6.4.0 `__. - + - Read operations that result in an ``ExceededTimeLimit`` error are retried. - Fixes a request issue related to :ref:`TLS sockets ` and @@ -99,6 +139,11 @@ The {+driver-short+} v6.4 release includes the following features: - Makes AWS session tokens optional when a username and password are provided, and allows AWS SDK to handle the authentication requests. +To learn more about this release, see the +`v6.4.0 Release Highlights +`__ on +GitHub. + .. _version-6.3: What's New in 6.3 @@ -116,9 +161,9 @@ The {+driver-short+} v6.3 release includes the following features: ``MongoClientOptions`` instance or as a connection string option. The following example shows how to create a client with the option set to ``stream``: - + .. code-block:: js - + new MongoClient('', { serverMonitoringMode: 'stream' }); - Fixes a connection leak when the ``serverApi`` client option is set. @@ -180,7 +225,7 @@ The {+driver-short+} v6.1 release includes the following features: authenticating by using the ``MONGODB-AWS`` authentication mechanism. To instruct the driver to use your region options, you must set both of the following environment variables: - + - ``AWS_STS_REGIONAL_ENDPOINTS`` - ``AWS_REGION`` @@ -198,8 +243,8 @@ What's New in 6.0 .. warning:: Breaking Changes in v6.0 - This driver version introduces breaking changes. For a list of these changes, see - the :ref:`Version 6.x Breaking Changes section ` in the + This driver version introduces breaking changes. For a list of these changes, see + the :ref:`Version 6.x Breaking Changes section ` in the Upgrade guide. The {+driver-short+} v6.0 release includes the following features: @@ -240,13 +285,13 @@ The {+driver-short+} v6.0 release includes the following features: options. The value of ``keepAlive`` is permanently set to ``true`` and the value of ``keepAliveInitialDelay`` is set to 300000 milliseconds (300 seconds). - + To learn how to set keepalive settings at a system level, see the :manual:`Does TCP keepalive time affect MongoDB Deployments? ` FAQ entry in the Server manual. - Removes the following options for the ``Db.command()`` method: - + - ``willRetryWrite`` - ``omitReadPreference`` - ``writeConcern`` @@ -288,7 +333,7 @@ The {+driver-short+} v5.9 release includes the following features: uses the rounding behavior from previous versions of the driver. For more information, see the `Release Notes for v5.5 of the js-bson package `__ on GitHub. - + - Added support for detecting the ``AWS_STS_REGIONAL_ENDPOINTS`` and ``AWS_REGION`` environment variables and setting the appropriate options when calling the ``fromNodeProviderChain()`` method in the AWS SDK. @@ -492,8 +537,8 @@ What's New in 5.0 .. warning:: Breaking Changes in v5.0 - This driver version introduces breaking changes. For a list of these changes, see - the :ref:`Version 5.x Breaking Changes section ` in the + This driver version introduces breaking changes. For a list of these changes, see + the :ref:`Version 5.x Breaking Changes section ` in the Upgrade guide. New features of the 5.0 {+driver-short+} release include: @@ -866,16 +911,16 @@ What's New in 4.0 .. warning:: Breaking Changes in v4.0 - This driver version introduces breaking changes. For a list of these changes, see - the :ref:`Version 4.x Breaking Changes section ` in + This driver version introduces breaking changes. For a list of these changes, see + the :ref:`Version 4.x Breaking Changes section ` in the Upgrade guide. New features of the 4.0 Node.js driver release include: .. important:: - In this release of the driver, the deprecated ``collection.count()`` method was - inadvertently changed to behave like ``collection.countDocuments()``. This behavior + In this release of the driver, the deprecated ``collection.count()`` method was + inadvertently changed to behave like ``collection.countDocuments()``. This behavior is corrected in :ref:`version 4.4 `.