Skip to content

Commit a6e9bb2

Browse files
committed
what's new
1 parent 7c1c3ec commit a6e9bb2

File tree

1 file changed

+133
-1
lines changed

1 file changed

+133
-1
lines changed

source/whats-new.txt

Lines changed: 133 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,136 @@
44
What's New
55
==========
66

7-
.. TODO
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 5.1.3 <kotlin-sync-version-5.1.3>`
16+
* :ref:`Version 5.1.2 <kotlin-sync-version-5.1.2>`
17+
* :ref:`Version 5.1.1 <kotlin-sync-version-5.1.1>`
18+
* :ref:`Version 5.1 <kotlin-sync-version-5.1>`
19+
* :ref:`Version 5.0 <version-5.0>`
20+
21+
.. _kotlin-sync-version-5.1.3:
22+
23+
What's New in 5.1.3
24+
-------------------
25+
26+
The 5.1.3 driver patch release includes the following changes:
27+
28+
.. sharedinclude:: dbx/jvm/v5.1.3-wn-items.rst
29+
30+
.. _kotlin-sync-version-5.1.2:
31+
32+
What's New in 5.1.2
33+
-------------------
34+
35+
The 5.1.2 driver patch release includes the following changes:
36+
37+
- Support for encoding Kotlin data classes with nullable
38+
generic parameter types. For example, you can encode the ``Container`` class
39+
in the following code:
40+
41+
.. code-block:: kotlin
42+
43+
@Serializable
44+
data class Box<T>(
45+
val boxed: T
46+
)
47+
48+
@Serializable
49+
data class Container(
50+
val box: Box<String?>
51+
)
52+
53+
.. _kotlin-sync-version-5.1.1:
54+
55+
What's New in 5.1.1
56+
-------------------
57+
58+
The 5.1.1 driver patch release includes the following changes:
59+
60+
- When using the ``MONGODB-OIDC`` authentication mechanism, you must not
61+
include comma characters in the ``authMechanismProperties`` connection
62+
string value. To learn more about this behavior, see the
63+
:ref:`MONGODB-OIDC <kotlin-oidc>` section of the Enterprise
64+
Authentication guide.
65+
66+
.. _kotlin-sync-version-5.1:
67+
68+
What's New in 5.1
69+
-----------------
70+
71+
.. warning:: Deprecations in this release
72+
73+
To avoid breaking changes in future major releases of the driver,
74+
replace any application code that depends on deprecated program elements.
75+
76+
This section includes the following information:
77+
78+
- :ref:`kotlin-deprecations-5.1`
79+
- :ref:`kotlin-improvements-5.1`
80+
- :ref:`kotlin-new-features-5.1`
81+
82+
.. _kotlin-deprecations-5.1:
83+
84+
Deprecations in 5.1
85+
~~~~~~~~~~~~~~~~~~~
86+
87+
- Support for {+mdb-server+} v3.6 is deprecated and will be removed in the
88+
next driver version release. To learn how to upgrade your {+mdb-server+}
89+
deployment, see :manual:`Release Notes </release-notes>` in the {+mdb-server+}
90+
manual.
91+
92+
.. _kotlin-improvements-5.1:
93+
94+
Improvements in 5.1
95+
~~~~~~~~~~~~~~~~~~~
96+
97+
- Internal testing of GraalVM native image technology. These tests involve building
98+
native applications by using the GraalVM native-image tool.
99+
100+
- Enhanced support for the ``MONGODB-OIDC`` authentication mechanism.
101+
To learn more about OIDC, see the :ref:`kotlin-oidc` section of the
102+
Enterprise Authentication Mechanisms guide.
103+
104+
- Fixes an issue in which operations used the incorrect codec when using
105+
a polymorphic ``MongoCollection`` instance. This ensures that
106+
discriminator information is not lost when using ``bson-kotlinx``.
107+
108+
- Fixes an issue in which the class discriminator was the first field
109+
when decoding, resulting in field type errors when using a polymorphic
110+
``MongoCollection`` instance.
111+
112+
.. _kotlin-new-features-5.1:
113+
114+
New Features in 5.1
115+
~~~~~~~~~~~~~~~~~~~
116+
117+
- Support for polymorphic serialization. To learn more, see the
118+
:ref:`kotlin-polymorphic` section of the Kotlin Serialization guide.
119+
120+
- Introduces the ``serverMonitoringMode`` connection URI option. To
121+
learn more, see the :ref:`connection-options` guide.
122+
123+
.. _version-5.0:
124+
125+
What's New in 5.0
126+
-----------------
127+
128+
New features of the 5.0 driver release include:
129+
130+
- The ``KotlinSerializerCodecProvider`` constructor now accepts
131+
``serializersModule`` and ``bsonConfiguration`` objects:
132+
133+
.. code-block:: kotlin
134+
135+
KotlinSerializerCodec.create(clazz.kotlin, serializersModule=serializersModule, bsonConfiguration=bsonConfiguration)
136+
137+
This makes it easier to customize your configuration.
138+
139+
- Fixes a Kotlin reflection bug that resulted in container type erasure.

0 commit comments

Comments
 (0)