diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index 7d24c98c..5efa9b03 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -28,7 +28,7 @@ dependencies { implementation("com.github.luben:zstd-jni:1.5.5-4") implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.5.1") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") - implementation("org.mongodb:bson-kotlinx:5.1.1") + implementation("org.mongodb:bson-kotlinx:5.1.2") implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0") } diff --git a/examples/gradle.properties b/examples/gradle.properties index fab4a827..8df69957 100644 --- a/examples/gradle.properties +++ b/examples/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style=official -kotlin_mongodb_version=5.1.1 +kotlin_mongodb_version=5.1.2 diff --git a/snooty.toml b/snooty.toml index 224d29f4..16fdb108 100644 --- a/snooty.toml +++ b/snooty.toml @@ -20,7 +20,7 @@ driver = "kotlin" driver-short = "Kotlin driver" driver-long = "MongoDB Kotlin Driver" version = "5.1" -full-version = "{+version+}.1" +full-version = "{+version+}.2" mdb-server = "MongoDB server" kotlin-docs = "https://kotlinlang.org" diff --git a/source/whats-new.txt b/source/whats-new.txt index 4c786a41..a50d28fa 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -12,12 +12,36 @@ What's New Learn what's new in: +* :ref:`Version 5.1.2 ` * :ref:`Version 5.1.1 ` * :ref:`Version 5.1 ` * :ref:`Version 5.0 ` * :ref:`Version 4.11 ` * :ref:`Version 4.10 ` +.. _kotlin-coroutine-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( + val boxed: T + ) + + @Serializable + data class Container( + val box: Box + ) + .. _kotlin-coroutine-version-5.1.1: What's New in 5.1.1