@@ -12,6 +12,7 @@ What's New
1212
1313Learn what's new in:
1414
15+ * :ref:`Version 4.7 <version-4.7>`
1516* :ref:`Version 4.6 <version-4.6>`
1617* :ref:`Version 4.5 <version-4.5>`
1718* :ref:`Version 4.4 <version-4.4>`
@@ -20,6 +21,53 @@ Learn what's new in:
2021* :ref:`Version 4.1 <version-4.1>`
2122* :ref:`Version 4.0 <version-4.0>`
2223
24+ .. _version-4.7:
25+
26+ What's New in 4.7
27+ -----------------
28+
29+ New features of the 4.7 driver release include:
30+
31+ - Added full support for MongoDB 6.0.
32+
33+ - Added the following change stream support improvements:
34+
35+ - Enhanced pre-image and post-image support for :ref:`change streams <java-usage-watch>`.
36+ Change stream watch helpers now accept ``whenAvailable`` and ``required``
37+ for the ``fullDocument`` option. See the :manual:`change stream </changeStreams/#change-streams-with-document-pre--and-post-images>`
38+ reference documentation for more information.
39+ - Added a new ``fullDocumentBeforeChange`` option, which accepts
40+ ``whenAvailable`` and ``required``.
41+ - Change events now include a ``fullDocumentBeforeChange`` field
42+ when configured for display on your MongoDB collection.
43+ - Added ``showExpandedEvents`` support for change streams.
44+ - Added ``wallTime`` support to the ``ChangeStreamDocument`` class.
45+
46+ - Added :ref:`clustered index <java-clustered-idexes>` creation support.
47+ - Support for new features related to :ref:`qe-manual-feature-qe`,
48+ including support for automatic encryption (MongoDB v6.0 Enterprise or later
49+ is required) and manual encryption.
50+
51+ - Support for the new Queryable Encryption shared library, which removes the need
52+ for the ``mongocryptd`` process. The queryable encryption shared library requires
53+ `org.mongodb:mongodb-crypt <https://mvnrepository.com/artifact/org.mongodb/mongodb-crypt>`__
54+ version ``1.5.1.1`` or later.
55+
56+ - Added a new API for encryption key management.
57+
58+ - Added builder API methods for additional aggregation stages
59+ including :pipeline:`$search`/:pipeline:`$searchMeta` (Atlas only),
60+ :pipeline:`$densify`, and :pipeline:`$fill`.
61+ - Added the ``BsonExtraElements`` annotation that can be used with POJO encoding
62+ and decoding. ``BsonExtraElements`` enables decoding objects that may receive
63+ new fields in the future without requiring developers to explicitly map
64+ those new fields.
65+ - Performance optimizations including:
66+
67+ - Lock-free implementations of the server session pool and the buffer pool.
68+ - A new cleanup implementation of ``DBCursor`` that uses Java's
69+ Cleaner API instead of finalization, available in Java 9 or later.
70+
2371
2472.. _version-4.6:
2573
0 commit comments