Skip to content

Commit ef786da

Browse files
author
Chris Cho
authored
DOCSP-24194: Breaking changes callouts (#368)
* DOCSP-24194: Breaking changes callouts
1 parent b54ccd3 commit ef786da

File tree

1 file changed

+33
-21
lines changed

1 file changed

+33
-21
lines changed

source/whats-new.txt

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,41 @@ Learn what's new in:
2727

2828
.. _upcoming-breaking-changes:
2929

30+
Upcoming Breaking Changes
31+
-------------------------
32+
33+
- `MapReduceIterable <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MapReduceIterable.html>`__
34+
and map-reduce methods on `MongoCollection <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#mapReduce(com.mongodb.client.ClientSession,java.lang.String,java.lang.String)>`__
35+
are deprecated in MongoDB v4.2 and later, and will be replaced by the
36+
aggregation framework.
37+
3038
.. _version-4.9:
3139

3240
What's New in 4.9
3341
-----------------
3442

3543
- Added a new exception to identify when a constructor annotated by
36-
``BsonCreator`` contains parameters with annotations other than
44+
``BsonCreator`` contains parameters with annotations other than
3745
``BsonProperty`` or ``BsonId``.
3846
- Changed the log message format for command monitoring messages reported
3947
by the ``org.mongodb.driver.protocol.command`` package.
40-
- Added support for the ``$documents`` aggregation pipeline stage to the
41-
`Aggregates <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/Aggregates#documents(java.util.List)>`__
48+
- Added support for the ``$documents`` aggregation pipeline stage to the
49+
`Aggregates <{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/Aggregates#documents(java.util.List)>`__
4250
helper class.
4351
- Added `MongoClientSettings.Builder.applyToLoggerSettings() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.Builder.html#applyToLoggerSettings(com.mongodb.Block)>`__
44-
and `LoggerSettings.Builder.maxDocumentLength() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/LoggerSettings.Builder.html#maxDocumentLength(int)>`__
45-
methods that let you specify a maximum length for the extended JSON representation of a
46-
BSON document in a log message.
52+
and `LoggerSettings.Builder.maxDocumentLength() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/LoggerSettings.Builder.html#maxDocumentLength(int)>`__
53+
methods that let you specify a maximum length for the extended JSON representation of a
54+
BSON document in a log message.
4755

4856
.. _version-4.8:
4957

5058
What's New in 4.8
5159
-----------------
5260

53-
- The 4.8 driver ends support for MongoDB v3.4 and earlier. To learn
54-
more about breaking changes in this driver version and how to address
55-
them, see :ref:`<java-server-release-change-v4.8>`.
61+
.. warning:: Breaking Changes in v4.8
5662

57-
- The ``RecordCodec`` now deserializes POJOs and record classes that are
58-
specified as type parameters of ``List`` and ``Map`` fields of a record as
59-
their respective classes. To learn more about this change and how this may
60-
affect the behavior of your application, see
61-
:ref:`<java-breaking-changes-v4.8>`.
63+
The v4.8 driver contains breaking changes. See :ref:`<java-breaking-changes-v4.8>`
64+
and :ref:`<java-server-release-change-v4.8>` for more information.
6265

6366
.. important:: Deprecation Notice
6467

@@ -92,7 +95,7 @@ New features of the 4.8 driver release include:
9295
when the ``showExpandedEvents`` server feature is enabled on MongoDB v6.1
9396
and later. Learn more about this field from the `getDisambiguatedPaths() <https://mongodb.github.io/mongo-java-driver/4.8/apidocs/mongodb-driver-core/com/mongodb/client/model/changestream/UpdateDescription.html#getDisambiguatedPaths()>`__
9497
API documentation. Learn more about the ``showExpandedEvents`` setting from
95-
the :manual:`Expanded Events </reference/change-events/#expanded-events>`
98+
the :manual:`Expanded Events </reference/change-events/#expanded-events>`
9699
server documentation.
97100

98101
.. _version-4.7.1:
@@ -121,6 +124,11 @@ loss of your DEKs.
121124
What's New in 4.7
122125
-----------------
123126

127+
.. warning:: Breaking Changes in v4.7
128+
129+
The v4.7 driver contains breaking changes. See :ref:`<java-breaking-changes-v4.7>`
130+
for more information.
131+
124132
New features of the 4.7 driver release include:
125133

126134
- Added full support for MongoDB 6.0.
@@ -307,6 +315,11 @@ in the field names of documents:
307315
What's New in 4.2
308316
-----------------
309317

318+
.. warning:: Breaking Changes in v4.2
319+
320+
The v4.2 driver contains breaking changes. See :ref:`<java-breaking-changes-v4.2>`
321+
for more information.
322+
310323
New features of the 4.2 Java driver release include:
311324

312325
- Added Azure and GCP key stores to client-side field level encryption
@@ -316,12 +329,6 @@ New features of the 4.2 Java driver release include:
316329
- Added a `BsonRepresentation <https://mongodb.github.io/mongo-java-driver/4.2/apidocs/bson/org/bson/codecs/pojo/annotations/BsonRepresentation.html>`_ annotation that allows you to represent the ``ObjectId`` BSON values as a ``String`` in `POJO <https://en.wikipedia.org/wiki/Plain_old_Java_object>`_ classes
317330
- Added a `Filters.empty() <https://mongodb.github.io/mongo-java-driver/4.2/apidocs/mongodb-driver-core/com/mongodb/client/model/Filters.html#empty()>`_ method
318331

319-
.. important::
320-
321-
There are breaking changes that may affect your application. See the
322-
`Upgrading Guide <https://mongodb.github.io/mongo-java-driver/4.2/upgrading/>`_
323-
for more information.
324-
325332
.. _version-4.1:
326333

327334
What's New in 4.1
@@ -340,4 +347,9 @@ New features of the 4.1 Java driver release include:
340347
What's New in 4.0
341348
-----------------
342349

350+
.. warning:: Breaking Changes in v4.0
351+
352+
The v4.0 driver contains breaking changes. See :ref:`<java-breaking-changes-v4.0>`
353+
for more information.
354+
343355
This release adds no new features.

0 commit comments

Comments
 (0)