Skip to content

Commit d45f795

Browse files
authored
DOCSP-41116 What's New (mongodb#38)
* what's new * go through links * add to toc * review comments * oidc todo
1 parent ebfdafe commit d45f795

File tree

2 files changed

+142
-1
lines changed

2 files changed

+142
-1
lines changed

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
/issues-and-help
2828
/compatibility
2929
Validate Driver Artifact Signatures </validate-signatures>
30+
/whats-new
3031
View the Source <https://github.com/mongodb/mongo-java-driver/tree/master/driver-kotlin-sync>
3132
API Documentation <{+api+}/com.mongodb.kotlin.client/index.html>
3233

source/whats-new.txt

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,144 @@
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 <kotlin-sync-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.
63+
64+
.. TODO: Link to OIDC content once completed
65+
.. ex. To learn more about this behavior, see the
66+
:ref:`MONGODB-OIDC <kotlin-sync-oidc>` section of the Enterprise
67+
Authentication guide.
68+
69+
.. _kotlin-sync-version-5.1:
70+
71+
What's New in 5.1
72+
-----------------
73+
74+
.. warning:: Deprecations in this release
75+
76+
To avoid breaking changes in future major releases of the driver,
77+
replace any application code that depends on deprecated program elements.
78+
79+
This section includes the following information:
80+
81+
- :ref:`kotlin-sync-deprecations-5.1`
82+
- :ref:`kotlin-sync-improvements-5.1`
83+
- :ref:`kotlin-sync-new-features-5.1`
84+
85+
.. _kotlin-sync-deprecations-5.1:
86+
87+
Deprecations in 5.1
88+
~~~~~~~~~~~~~~~~~~~
89+
90+
- Support for {+mdb-server+} v3.6 is deprecated and will be removed in the
91+
next driver version release. To learn how to upgrade your {+mdb-server+}
92+
deployment, see :manual:`Release Notes </release-notes>` in the {+mdb-server+}
93+
manual.
94+
95+
.. _kotlin-sync-improvements-5.1:
96+
97+
Improvements in 5.1
98+
~~~~~~~~~~~~~~~~~~~
99+
100+
- Internal testing of GraalVM native image technology. These tests involve building
101+
native applications by using the GraalVM native-image tool.
102+
103+
- Enhanced support for the ``MONGODB-OIDC`` authentication mechanism.
104+
105+
.. TODO: Link to OIDC content once completed
106+
.. ex. To learn more about OIDC, see the
107+
:ref:`MONGODB-OIDC <kotlin-sync-oidc>` section of the Enterprise
108+
Authentication guide.
109+
110+
- Fixes an issue in which operations used the incorrect codec when using
111+
a polymorphic ``MongoCollection`` instance. This ensures that
112+
discriminator information is not lost when using ``bson-kotlinx``.
113+
114+
- Fixes an issue in which the class discriminator was the first field
115+
when decoding, resulting in field type errors when using a polymorphic
116+
``MongoCollection`` instance.
117+
118+
.. _kotlin-sync-new-features-5.1:
119+
120+
New Features in 5.1
121+
~~~~~~~~~~~~~~~~~~~
122+
123+
- Support for polymorphic serialization.
124+
125+
.. TODO: Add link to Kotlin Serialization page when ready: https://jira.mongodb.org/browse/DOCSP-42666 .
126+
.. ex. To learn more, see the :ref:`kotlin-sync-polymorphic` section of the Kotlin Sync Serialization guide.
127+
128+
- Introduces the ``serverMonitoringMode`` connection URI option. To
129+
learn more, see the :ref:`kotlin-sync-connection-options` guide.
130+
131+
.. _kotlin-sync-version-5.0:
132+
133+
What's New in 5.0
134+
-----------------
135+
136+
New features of the 5.0 driver release include:
137+
138+
- The ``KotlinSerializerCodecProvider`` constructor now accepts
139+
``serializersModule`` and ``bsonConfiguration`` objects:
140+
141+
.. code-block:: kotlin
142+
143+
KotlinSerializerCodec.create(clazz.kotlin, serializersModule=serializersModule, bsonConfiguration=bsonConfiguration)
144+
145+
This makes it easier to customize your configuration.
146+
147+
- Fixes a Kotlin reflection bug that resulted in container type erasure.

0 commit comments

Comments
 (0)