This release updates Kotlin version to 2.2.0, includes several bugfixes and provides serializers for kotlin.time.Instant
.
Add kotlin.time.Instant serializers
Instant class was moved from kotlinx-datetime library to Kotlin standard library. As a result, kotlinx-datetime 0.7.0 no longer has serializers for the Instant class. To use the new kotlin.time.Instant
class in your @Serializable
classes, you can use this 1.9.0 kotlinx-serialization version (Kotlin 2.2 is required).
You can choose between the default InstantSerializer
, which uses its string representation, or specify InstantComponentSerializer
that represents instant as its components.
See details in the PR.