From 9a2daca73a4ab53edc2ed095e7c9f73054a3898c Mon Sep 17 00:00:00 2001 From: rustagir Date: Wed, 10 Jul 2024 16:33:09 -0400 Subject: [PATCH 1/2] DOCSP-41360: v5.1.2 patch release --- source/whats-new.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 From 6e3bcdc068c169ec7a05190527fc38662ef6bc9a Mon Sep 17 00:00:00 2001 From: rustagir Date: Wed, 10 Jul 2024 16:34:42 -0400 Subject: [PATCH 2/2] fix versions --- examples/build.gradle.kts | 2 +- examples/gradle.properties | 2 +- snooty.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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"