Skip to content

Commit 5fde2d3

Browse files
author
Chris Cho
authored
DOCSP-22100 4.6 updates (#227)
* DOCSP-22100: 4.6 updates
1 parent c8ba5f1 commit 5fde2d3

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-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 master
3+
define: versions v4.3 v4.4 v4.5 v4.6 master
44

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

snooty.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
1414
[constants]
1515
driver = "java"
1616
driver-long = "MongoDB Java Driver"
17-
version = "4.5"
18-
full-version = "{+version+}.1"
17+
version = "4.6"
18+
full-version = "{+version+}.0"
1919
package-name-org = "mongodb-org"
2020
api = "https://mongodb.github.io/mongo-java-driver/{+version+}"
2121
stable-api = "Stable API"
22+
mongocrypt-version="1.4.0" # ensure compatibilty with driver version
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. code-block:: groovy
22
33
dependencies {
4-
compile 'org.mongodb:mongodb-crypt:1.2.0'
4+
compile 'org.mongodb:mongodb-crypt:{+mongocrypt-version+}'
55
}
66

source/includes/fundamentals/code-snippets/libmongocrypt-maven-versioned.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<dependency>
55
<groupId>org.mongodb</groupId>
66
<artifactId>mongodb-crypt</artifactId>
7-
<version>1.2.0</version>
7+
<version>{+mongocrypt-version+}</version>
88
</dependency>
99
</dependencies>
1010

source/whats-new.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,38 @@ What's New
1212

1313
Learn what's new in:
1414

15+
* :ref:`Version 4.6 <version-4.6>`
1516
* :ref:`Version 4.5 <version-4.5>`
1617
* :ref:`Version 4.4 <version-4.4>`
1718
* :ref:`Version 4.3 <version-4.3>`
1819
* :ref:`Version 4.2 <version-4.2>`
1920
* :ref:`Version 4.1 <version-4.1>`
2021
* :ref:`Version 4.0 <version-4.0>`
2122

23+
24+
.. _version-4.6:
25+
26+
What's New in 4.6
27+
-----------------
28+
29+
New features of the 4.6 Java driver release include:
30+
31+
- The buffer pool is now shared across all ``MongoClient`` instances. The
32+
buffer pool prunes buffers that have been idle for one minute.
33+
- Added an API to specify suppliers for AWS KMS credentials for
34+
Client-Side Field Level Encryption (CSFLE). See the
35+
`AutoEncryptionSettings.Builder.kmsProviderPropertySuppliers() <https://mongodb.github.io/mongo-java-driver/4.6/apidocs/mongodb-driver-core/com/mongodb/AutoEncryptionSettings.Builder.html#kmsProviderPropertySuppliers(java.util.Map)>`__
36+
and the `ClientEncryptionSettings.Builder.kmsProviderPropertySuppliers() <https://mongodb.github.io/mongo-java-driver/4.6/apidocs/mongodb-driver-core/com/mongodb/ClientEncryptionSettings.html#getKmsProviderPropertySuppliers()>`__
37+
API documentation for more information.
38+
- Added compatibility to ``org.mongodb:mongodb-crypt``, a dependency for
39+
CSFLE, for Apple M1 ARM-based hardware.
40+
- Added a service provider interface (SPI) to allow the driver to specify
41+
a custom DNS client. See the `DnsClient <https://mongodb.github.io/mongo-java-driver/4.6/apidocs/mongodb-driver-core/com/mongodb/spi/dns/DnsClient.html>`__
42+
and the `DnsClientProvider <https://mongodb.github.io/mongo-java-driver/4.6/apidocs/mongodb-driver-core/com/mongodb/spi/dns/DnsClientProvider.html>`__
43+
interface API documentation for more information.
44+
- Added driver support for encoding and decoding between `Java records <https://docs.oracle.com/en/java/javase/17/language/records.html>`__
45+
and BSON documents, which is enabled by default.
46+
2247
.. _version-4.5:
2348

2449
What's New in 4.5

0 commit comments

Comments
 (0)