From 0269c1a43ae583866f51b29140f36d0902a97f2a Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 8 Aug 2024 13:46:12 -0400 Subject: [PATCH 1/2] DOCSP-42256: leftover v2 migration items --- source/whats-new.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/whats-new.txt b/source/whats-new.txt index 2cf5490c..1a0d1024 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -122,6 +122,13 @@ The 2.0 {+driver-short+} release includes the following improvements and fixes: ``SessionOptions`` type. To learn more, see the :ref:`golang-session-txn-options` section of the Transactions guide. +- The ``Cursor.SetMaxTime()`` method is renamed to + ``Cursor.SetMaxAwaitTime()``. This method specifies the maximum time + that the server waits for new documents when you retrieve documents by + using a tailable cursor when querying a capped collection. + +- The ``Collection.Clone()`` method does not return an error. + .. _version-1.16: What's New in 1.16 From 883d0823108fe91887da8f8c0675d712f8439ea5 Mon Sep 17 00:00:00 2001 From: rustagir Date: Fri, 9 Aug 2024 11:09:52 -0400 Subject: [PATCH 2/2] JS PR fixes 1 --- source/whats-new.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/source/whats-new.txt b/source/whats-new.txt index 1a0d1024..6b27b315 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -52,12 +52,19 @@ What's New in 2.0 ----------------- .. important:: Breaking Change + + The {+driver-short+} v2.0 release introduces the following breaking + changes: - Starting in version 2.0, the ``mongo.Connect()`` method does not - accept a context parameter. This method accepts only an options - object. To view an example that uses this method, see the - :ref:`Connection Example Code ` in the - Connection Guide. + - ``mongo.Connect()`` does not accept a Context parameter. This + method accepts only an options object. To view an example that uses + this method, see the :ref:`Connection Example Code + ` in the Connection Guide. + + - The ``Cursor.SetMaxTime()`` method is renamed to + ``Cursor.SetMaxAwaitTime()``. This method specifies the maximum time + that the server waits for new documents retrieved from a capped + collection with a tailable cursor. The 2.0 {+driver-short+} release includes the following improvements and fixes: @@ -122,11 +129,6 @@ The 2.0 {+driver-short+} release includes the following improvements and fixes: ``SessionOptions`` type. To learn more, see the :ref:`golang-session-txn-options` section of the Transactions guide. -- The ``Cursor.SetMaxTime()`` method is renamed to - ``Cursor.SetMaxAwaitTime()``. This method specifies the maximum time - that the server waits for new documents when you retrieve documents by - using a tailable cursor when querying a capped collection. - - The ``Collection.Clone()`` method does not return an error. .. _version-1.16: