@@ -159,11 +159,12 @@ Version 5.0 Breaking Changes
159
159
``$collStats`` aggregation pipeline stage. For an example of how to use this pipeline
160
160
stage, see :manual:`What's New <java-deprecations-4.11>` for v4.11 of the {+driver-short+}.
161
161
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.
165
166
166
- - Removes the ``sharded`` and ``nonAtomic`` options from the
167
+ - Removes the ``sharded() `` and ``nonAtomic() `` methods from the
167
168
``MapReducePublisher`` and ``MapReduceIterable`` classes.
168
169
169
170
- Removes the following methods for use with ``geoHaystack`` indexes:
@@ -197,7 +198,7 @@ Version 5.0 Breaking Changes
197
198
198
199
- ``acknowledged(Type, int, List<BulkWriteUpsert>)``
199
200
- ``acknowledged(Type, int, Integer, List<BulkWriteUpsert>)``
200
- - ``acknowledged(int, int, int, Integer, List<BulkWriteUpsert>)<String>) ``
201
+ - ``acknowledged(int, int, int, Integer, List<BulkWriteUpsert>)``
201
202
202
203
- Removes the following ``ChangeStreamDocument`` constructors:
203
204
@@ -229,15 +230,8 @@ Version 5.0 Breaking Changes
229
230
- Removes the ``errorLabels`` option from the ``WriteConcernError``
230
231
class. This includes the ``addLabel()`` and ``getErrorLabels()`` methods and the
231
232
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``.
241
235
242
236
- Introduces the following changes to the ``ConnectionId`` class:
243
237
0 commit comments