Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/issues-and-help
/compatibility
Validate Driver Artifact Signatures </validate-signatures>
/whats-new
View the Source <https://github.com/mongodb/mongo-java-driver/tree/master/driver-kotlin-sync>
API Documentation <{+api+}/com.mongodb.kotlin.client/index.html>

Expand Down
137 changes: 136 additions & 1 deletion source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,139 @@
What's New
==========

.. TODO
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol

Learn what's new in:

* :ref:`Version 5.1.3 <kotlin-sync-version-5.1.3>`
* :ref:`Version 5.1.2 <kotlin-sync-version-5.1.2>`
* :ref:`Version 5.1.1 <kotlin-sync-version-5.1.1>`
* :ref:`Version 5.1 <kotlin-sync-version-5.1>`
* :ref:`Version 5.0 <kotlin-sync-version-5.0>`

.. _kotlin-sync-version-5.1.3:

What's New in 5.1.3
-------------------

The 5.1.3 driver patch release includes the following changes:

.. sharedinclude:: dbx/jvm/v5.1.3-wn-items.rst

.. _kotlin-sync-version-5.1.2:

What's New in 5.1.2
-------------------

The 5.1.2 driver patch release includes the following changes:

- Support for encoding Kotlin data classes with nullable
generic parameter types. For example, you can encode the ``Container`` class
in the following code:

.. code-block:: kotlin

@Serializable
data class Box<T>(
val boxed: T
)

@Serializable
data class Container(
val box: Box<String?>
)

.. _kotlin-sync-version-5.1.1:

What's New in 5.1.1
-------------------

The 5.1.1 driver patch release includes the following changes:

- When using the ``MONGODB-OIDC`` authentication mechanism, you must not
include comma characters in the ``authMechanismProperties`` connection
string value. To learn more about this behavior, see
`MongoCredential <{+core-api+}/com/mongodb/MongoCredential.html>`__ in the
API documentation.

.. _kotlin-sync-version-5.1:

What's New in 5.1
-----------------

.. warning:: Deprecations in this release

To avoid breaking changes in future major releases of the driver,
replace any application code that depends on deprecated program elements.

This section includes the following information:

- :ref:`kotlin-sync-deprecations-5.1`
- :ref:`kotlin-sync-improvements-5.1`
- :ref:`kotlin-sync-new-features-5.1`

.. _kotlin-sync-deprecations-5.1:

Deprecations in 5.1
~~~~~~~~~~~~~~~~~~~

- Support for {+mdb-server+} v3.6 is deprecated and will be removed in the
next driver version release. To learn how to upgrade your {+mdb-server+}
deployment, see :manual:`Release Notes </release-notes>` in the {+mdb-server+}
manual.

.. _kotlin-sync-improvements-5.1:

Improvements in 5.1
~~~~~~~~~~~~~~~~~~~

- Internal testing of GraalVM native image technology. These tests involve building
native applications by using the GraalVM native-image tool.

- Enhanced support for the ``MONGODB-OIDC`` authentication mechanism.
To learn more about OIDC, see
`MongoCredential <{+core-api+}/com/mongodb/MongoCredential.html>`__ in the
API documentation.

- Fixes an issue in which operations used the incorrect codec when using
a polymorphic ``MongoCollection`` instance. This ensures that
discriminator information is not lost when using ``bson-kotlinx``.

- Fixes an issue in which the class discriminator was the first field
when decoding, resulting in field type errors when using a polymorphic
``MongoCollection`` instance.

.. _kotlin-sync-new-features-5.1:

New Features in 5.1
~~~~~~~~~~~~~~~~~~~

- Support for polymorphic serialization.

.. TODO: Add link to Kotlin Serialization page when ready: https://jira.mongodb.org/browse/DOCSP-42666 .
.. ex. To learn more, see the :ref:`kotlin-sync-polymorphic` section of the Kotlin Sync Serialization guide.

- Introduces the ``serverMonitoringMode`` connection URI option. To
learn more, see the :ref:`kotlin-sync-connection-options` guide.

.. _kotlin-sync-version-5.0:

What's New in 5.0
-----------------

New features of the 5.0 driver release include:

- The ``KotlinSerializerCodecProvider`` constructor now accepts
``serializersModule`` and ``bsonConfiguration`` objects:

.. code-block:: kotlin

KotlinSerializerCodec.create(clazz.kotlin, serializersModule=serializersModule, bsonConfiguration=bsonConfiguration)

This makes it easier to customize your configuration.

- Fixes a Kotlin reflection bug that resulted in container type erasure.
Loading