Skip to content

Commit 84ddbfc

Browse files
committed
JY review
1 parent 7e55ff2 commit 84ddbfc

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

source/upgrade.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ Version 5.0 Breaking Changes
121121
.. After the 5.0 Scala API docs are released, this line will be uncommented.
122122
For more information, see the `Observable trait documentation <https://mongodb.github.io/mongo-java-driver/5.0/apidocs/mongo-scala-driver/org/mongodb/scala/Observable.html>`__.
123123

124+
- This driver changes how ``ClusterSettings`` computes
125+
``ClusterConnectionMode``, making it more consistent by using the specified
126+
replica set name, regardless of how it is configured. Previously, replica set
127+
name was only considered if it was set by the connection string. This may
128+
change how
129+
130+
- This driver changes how ``BsonDecimal128`` values respond to method calls, by
131+
responding in the same way as ``Decimal128`` values. In particular,
132+
``BsonDecimal128.isNumber()`` now returns ``true``, and
133+
``BsonDecimal128.asNumber()`` returns the equivalent ``BsonNumber``.
134+
124135
.. _java-breaking-changes-v4.8:
125136

126137
Version 4.8 Breaking Changes

source/whats-new.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ What's New in 5.0
4848

4949
The 5.0 driver release introduces the following features:
5050

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``.
59-
6051
- The ``getElapsedTime()`` method on ``com.mongodb.event.ConnectionReadyEvent``
6152
includes the time taken to deliver the ``ConnectionCreatedEvent``. That is,
6253
the time returned includes the duration of the

0 commit comments

Comments
 (0)