Skip to content

Commit

Permalink
JS PR fixes 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Aug 9, 2024
1 parent 0269c1a commit 883d082
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <go-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
<go-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:

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 883d082

Please sign in to comment.