Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"

[constants]
driver = "kotlin"
driver-short = "Kotlin driver"
driver-long = "MongoDB Kotlin Driver"
version = "4.10"
full-version = "4.10.0"
full-version = "4.10.1"
mdb-server = "MongoDB server"
kotlin-docs = "https://kotlinlang.org/docs"

Expand All @@ -33,3 +34,4 @@ zstdVersion = "com.github.luben:zstd-jni:1.5.5-2"
logbackVersion = "1.2.11"
log4j2Version = "2.17.1"
serializationVersion = "1.5.1"
bsonVersion = "4.10.1"
6 changes: 6 additions & 0 deletions source/fundamentals/data-formats/serialization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ to your project:
:caption: build.gradle.kts

implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:{+serializationVersion+}")
implementation("org.mongodb:bson-kotlinx:{+bsonVersion+}")

.. tab::
:tabid: Maven
Expand All @@ -82,6 +83,11 @@ to your project:
<artifactId>kotlinx-serialization-core</artifactId>
<version>{+serializationVersion+}</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>bson-kotlinx</artifactId>
<version>{+bsonVersion+}</version>
</dependency>

Annotate Data Classes
---------------------
Expand Down
12 changes: 9 additions & 3 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. _kotlin-whats-new:

==========
What's New
==========

.. default-domain:: mongodb

.. contents:: On this page
:local:
:backlinks: none
Expand All @@ -26,6 +26,12 @@ Upcoming Breaking Changes
What's New in 4.10
------------------

.. important::

Starting in version 4.10.1 of the {+driver-short+}, you must add
the ``bson-kotlinx`` library as an explicit dependency to use the
``kotlinx-serialization`` library.

- Support for Kotlin server-side usage, both for coroutines and for synchronous applications.
- Codec support for Kotlin data classes.
- Support for Kotlinx.serialization.
- Support for the ``kotlinx.serialization`` library