Skip to content

Commit e3f5b25

Browse files
authored
4.7 release (#243)
* 4.7 changes * wording * wording * formatting * feedback * typo * atlas objects * suggestions * autobuilder' * add mongodb support
1 parent ef48589 commit e3f5b25

File tree

4 files changed

+56
-5
lines changed

4 files changed

+56
-5
lines changed

config/redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define: prefix docs/drivers/java/sync
22
define: base https://www.mongodb.com/${prefix}
3-
define: versions v4.3 v4.4 v4.5 v4.6 master
3+
define: versions v4.3 v4.4 v4.5 v4.6 v4.7 master
44

55
raw: ${prefix}/ -> ${base}/current/
66
raw: ${prefix}/master -> ${base}/upcoming/

snooty.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name = "java"
22
title = "Java Sync"
33
intersphinx = [
44
"https://www.mongodb.com/docs/manual/objects.inv",
5-
"https://www.mongodb.com/docs/drivers/objects.inv"
5+
"https://www.mongodb.com/docs/drivers/objects.inv",
6+
"https://www.mongodb.com/docs/atlas/objects.inv",
67
]
78

89
toc_landing_pages = [
@@ -17,9 +18,9 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
1718
driver = "java"
1819
driver-long = "MongoDB Java Driver"
1920
version = "4.7"
20-
full-version = "{+version+}.0-beta0"
21+
full-version = "{+version+}.0"
2122

2223
package-name-org = "mongodb-org"
2324
api = "https://mongodb.github.io/mongo-java-driver/{+version+}"
2425
stable-api = "Stable API"
25-
mongocrypt-version="1.4.0" # ensure compatibilty with driver version
26+
mongocrypt-version = "1.5.1.1" # ensure compatibilty with driver version

source/fundamentals/indexes.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ Refer to the :manual:`Unique Indexes page </core/index-unique>` in the MongoDB s
397397

398398
.. driver-content-end
399399

400+
.. _java-clustered-idexes:
401+
400402
Clustered Indexes
401403
~~~~~~~~~~~~~~~~~
402404

@@ -409,7 +411,7 @@ The following example creates a clustered index on the ``_id`` field in
409411
the ``vendors`` collection:
410412

411413
.. code-block:: java
412-
414+
413415
MongoDatabase database = mongoClient.getDatabase("tea");
414416
ClusteredIndexOptions clusteredIndexOptions = new ClusteredIndexOptions(new Document("_id", 1), true);
415417
CreateCollectionOptions createCollectionOptions = new CreateCollectionOptions().clusteredIndexOptions(clusteredIndexOptions);

source/whats-new.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ What's New
1212

1313
Learn 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

Comments
 (0)