Skip to content

Commit

Permalink
Kotlin 5.0 release (#158)
Browse files Browse the repository at this point in the history
* Kotlin 5.0 release
  • Loading branch information
rachel-mack authored Mar 12, 2024
1 parent b7588e6 commit df79a41
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/redirects
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define: prefix docs/drivers/kotlin/coroutine
define: base https://www.mongodb.com/${prefix}
define: versions v4.10 v4.11 master
define: versions v4.10 v4.11 v5.0 master

raw: ${prefix}/ -> ${base}/current/

Expand Down
2 changes: 1 addition & 1 deletion snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
driver = "kotlin"
driver-short = "Kotlin driver"
driver-long = "MongoDB Kotlin Driver"
version = "4.11"
version = "5.0"
full-version = "{+version+}.0"
mdb-server = "MongoDB server"
kotlin-docs = "https://kotlinlang.org"
Expand Down
3 changes: 3 additions & 0 deletions source/includes/language-compatibility-table-kotlin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
* - Kotlin Driver Version
- Kotlin 1.8

* - 5.0
- ✓

* - 4.11
- ✓

Expand Down
13 changes: 13 additions & 0 deletions source/includes/mongodb-compatibility-table-kotlin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
- MongoDB 3.0
- MongoDB 2.6

* - 5.0
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
-
-
-
-

* - 4.11
- ✓
- ✓
Expand Down
21 changes: 17 additions & 4 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,27 @@ What's New

Learn what's new in:

* :ref:`Version 5.0 <version-5.0>`
* :ref:`Version 4.11 <version-4.11>`
* :ref:`Version 4.10 <version-4.10>`

.. _upcoming-breaking-changes:
.. _version-5.0:

Upcoming Breaking Changes
-------------------------
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.

- Beginning with v5.0, the {+driver-short+} requires Java 11 or later.
- Fixes a Kotlin reflection bug that resulted in container type erasure.

.. _version-4.11:

Expand Down

0 comments on commit df79a41

Please sign in to comment.