|
| 1 | +========== |
| 2 | +What's New |
| 3 | +========== |
| 4 | + |
| 5 | +.. default-domain:: mongodb |
| 6 | + |
| 7 | +.. contents:: On this page |
| 8 | + :local: |
| 9 | + :backlinks: none |
| 10 | + :depth: 1 |
| 11 | + :class: singlecol |
| 12 | + |
| 13 | +Learn what's new in: |
| 14 | + |
| 15 | +* :ref:`Version 4.2 <version-4.2>` |
| 16 | +* :ref:`Version 4.1 <version-4.1>` |
| 17 | +* :ref:`Version 4.0 <version-4.0>` |
| 18 | + |
| 19 | + |
| 20 | +.. _version-4.2: |
| 21 | + |
| 22 | +What's New in 4.2 |
| 23 | +----------------- |
| 24 | +New features of the 4.2 Java driver release include: |
| 25 | + |
| 26 | +- Added Azure and GCP key stores to client-side field level encryption |
| 27 | +- Added Kerberos caching tickets for reuse in multiple authentication requests |
| 28 | +- Added `MongoClients <http://mongodb.github.io/mongo-java-driver/4.2/apidocs/mongodb-driver-sync/com/mongodb/client/MongoClients.html>`_ instances with ``MongoClientSettings`` or ``ConnectionString`` as the configuration |
| 29 | +- The ``explain()`` method can now be used on `find <https://mongodb.github.io/mongo-java-driver/4.2/apidocs/mongodb-driver-sync/com/mongodb/client/FindIterable.html#explain()>`_ and `aggregate <https://mongodb.github.io/mongo-java-driver/4.2/apidocs/mongodb-driver-sync/com/mongodb/client/AggregateIterable.html#explain()>`_ commands |
| 30 | +- Added a `JsonObject <https://mongodb.github.io/mongo-java-driver/4.2/apidocs/bson/org/bson/json/JsonObject.html#%3Cinit%3E(java.lang.String)>`_ class to make encoding from and decoding to JSON more efficient by avoiding an intermediate Map representation |
| 31 | +- Added a `BsonRepresentation <https://mongodb.github.io/mongo-java-driver/4.2/apidocs/bson/org/bson/codecs/pojo/annotations/BsonRepresentation.html>`_ annotation that allows ``ObjectId`` BSON values to be represented as a ``String`` in `POJO <https://en.wikipedia.org/wiki/Plain_old_Java_object>`_ classes |
| 32 | +- 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 |
| 33 | + |
| 34 | +.. important:: |
| 35 | + |
| 36 | + There are breaking changes that may affect your application. See the |
| 37 | + `Upgrading Guide |
| 38 | + <https://mongodb.github.io/mongo-java-driver/4.2/upgrading/>`_ for |
| 39 | + more information. |
| 40 | + |
| 41 | +.. _version-4.1: |
| 42 | + |
| 43 | +What's New in 4.1 |
| 44 | +----------------- |
| 45 | +New features of the 4.1 Java driver release include: |
| 46 | + |
| 47 | +- Significant reduction in client-perceived failover times during planned maintenance events |
| 48 | +- The `update() <https://mongodb.github.io/mongo-java-driver/4.1/apidocs/mongodb-driver-core/com/mongodb/client/model/UpdateOptions.html#hint(org.bson.conversions.Bson)>`_ and `delete() <https://mongodb.github.io/mongo-java-driver/4.1/apidocs/mongodb-driver-core/com/mongodb/client/model/DeleteOptions.html#hint(org.bson.conversions.Bson)>`_ methods now support index hints |
| 49 | +- The ``find()`` method supports `allowDiskUse() <https://mongodb.github.io/mongo-java-driver/4.1/apidocs/mongodb-driver-sync/com/mongodb/client/FindIterable.html#allowDiskUse(java.lang.Boolean)>`_ for sorts that require too much memory to execute in RAM |
| 50 | +- Added support for the MONGODB-AWS authentication mechanism using Amazon Web Services (AWS) Identity and Access Management (IAM) credentials |
| 51 | +- Authentication requires fewer round trips to the server, resulting in faster connection setup |
| 52 | + |
| 53 | +.. _version-4.0: |
| 54 | + |
| 55 | +What's New in 4.0 |
| 56 | +----------------- |
| 57 | +This release adds no new features. |
0 commit comments