Skip to content

Commit e9c688b

Browse files
committed
VK review
1 parent e354d89 commit e9c688b

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

source/upgrade.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ Version 5.0 Breaking Changes
115115
guide. This change breaks binary compatibility (requires recompiling) but does not
116116
require code changes.
117117

118+
This change breaks binary compatibility (requires recompiling) but does not
119+
require code changes.
120+
118121
- This driver version removes the ``Filters.eqFull()`` method, released
119122
exclusively in ``Beta``, which allowed you
120123
to construct an equality filter when performing a vector search.

source/whats-new.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,14 @@ What's New in 5.0
4848

4949
The 5.0 driver release introduces the following features:
5050

51-
- Consistent computation of the ``ClusterConnectionMode`` type after
52-
instantiating a ``ClusterSettings``. The connection mode defaults to
53-
``SINGLE`` if you specify one host and do not specify a replica set
54-
name, or it defaults to ``MULTIPLE`` if you specify more than one
55-
host.
56-
57-
- ``BsonDecimal128`` values respond to method calls in the same way as Java
58-
``Decimal128`` values. In particular, the error responses for the
59-
``isNumber()`` and ``asNumber()`` methods match the Java responses for
60-
equivalent ``Decimal128`` values.
51+
- ``ClusterSettings`` computes ``ClusterConnectionMode`` more consistently using
52+
the specified replica set name, regardless of how it is configured.
53+
Previously, replica set name was only considered if it was set by the
54+
connection string.
55+
56+
- ``BsonDecimal128`` values respond to method calls in the same way as
57+
``Decimal128`` values. In particular, ``BsonDecimal128.isNumber`` now returns
58+
``true``, and ``BsonDecimal128.asNumber`` returns the equivalent ``BsonNumber``.
6159

6260
- The ``getElapsedTime()`` method on ``com.mongodb.event.ConnectionReadyEvent``
6361
includes the time taken to deliver the ``ConnectionCreatedEvent``. That is,

0 commit comments

Comments
 (0)