Skip to content

Commit fba3ee3

Browse files
mongoKartrachel-mack
authored andcommitted
stincmale feedback
1 parent f7270c7 commit fba3ee3

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

source/upgrade.txt

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,12 @@ Version 5.0 Breaking Changes
159159
``$collStats`` aggregation pipeline stage. For an example of how to use this pipeline
160160
stage, see :manual:`What's New <java-deprecations-4.11>` for v4.11 of the {+driver-short+}.
161161

162-
- Removes the ``IterableCodec`` and ``MapCodec`` types.
163-
Use ``MapCodecProvider`` instead of ``MapCodec``, and ``CollectionCodecProvider``
164-
instead of ``IterableCodec``.
162+
- The ``MapCodec`` and ``IterableCodec`` classes are deprecated.
163+
Instead of ``MapCodec``, use ``MapCodecProvider``. Instead of ``IterableCodec``,
164+
use ``CollectionCodecProvider``, or ``IterableCodecProvider`` for ``Iterable``
165+
types that aren't ``Collection``s.
165166

166-
- Removes the ``sharded`` and ``nonAtomic`` options from the
167+
- Removes the ``sharded()`` and ``nonAtomic()`` methods from the
167168
``MapReducePublisher`` and ``MapReduceIterable`` classes.
168169

169170
- Removes the following methods for use with ``geoHaystack`` indexes:
@@ -197,7 +198,7 @@ Version 5.0 Breaking Changes
197198

198199
- ``acknowledged(Type, int, List<BulkWriteUpsert>)``
199200
- ``acknowledged(Type, int, Integer, List<BulkWriteUpsert>)``
200-
- ``acknowledged(int, int, int, Integer, List<BulkWriteUpsert>)<String>)``
201+
- ``acknowledged(int, int, int, Integer, List<BulkWriteUpsert>)``
201202

202203
- Removes the following ``ChangeStreamDocument`` constructors:
203204

@@ -229,15 +230,8 @@ Version 5.0 Breaking Changes
229230
- Removes the ``errorLabels`` option from the ``WriteConcernError``
230231
class. This includes the ``addLabel()`` and ``getErrorLabels()`` methods and the
231232
constructor that includes an ``errorLabels`` parameter. Instead, you can use
232-
the error labels included in the top-level response document.
233-
234-
- Removes the
235-
``org.mongodb.scala.ObservableImplicits.ToSingleObservableVoid`` implicit
236-
class from the Scala driver package. This means the
237-
``org.reactivestreams.Publisher[Void]`` type no longer
238-
converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The
239-
API also exposes ``org.mongodb.scala.Observable[Unit]`` instead of
240-
``org.mongodb.scala.Observable[Void]``.
233+
the error labels included in the ``MongoException`` object that contains the
234+
``WriteConcernError``.
241235

242236
- Introduces the following changes to the ``ConnectionId`` class:
243237

source/whats-new.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ What's New in 4.8
285285

286286
.. important:: Deprecation Notice
287287

288-
The ``IterableCodec`` and ``MapCodec`` classes are deprecated.
289-
Use ``MapCodecProvider`` instead of ``MapCodec`` and ``CollectionCodecProvider``
290-
instead of ``IterableCodec``.
288+
The ``MapCodec`` and ``IterableCodec`` classes are deprecated.
289+
Instead of ``MapCodec``, use ``MapCodecProvider``. Instead of ``IterableCodec``,
290+
use ``CollectionCodecProvider``, or ``IterableCodecProvider`` for ``Iterable``
291+
types that aren't ``Collection``s.
291292

292293
Behavioral changes with the 4.8 driver release include:
293294

0 commit comments

Comments
 (0)