Skip to content

Commit 2e4fda1

Browse files
authored
Add note about kotlinx-serialization to 0.7.0 migration section (#550)
1 parent 5824a70 commit 2e4fda1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ Here is the recommended procedure for migrating from `kotlinx-datetime` version
422422
for `kotlinx.datetime.Instant` or `kotlinx.datetime.Clock`, or maybe even fail to compile.
423423
In that case, please check if the affected libraries you have as dependencies have already published a new release
424424
adapted to use `Instant` and `Clock` from `kotlin.time`.
425+
* If you use `kotlinx-serialization` to serialize the `Instant` type, update that dependency to use
426+
[1.9.0](https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.9.0) or a newer version.
425427
* If all else fails, use the *compatibility release* of `kotlinx-datetime`.
426428
Instead of the version `0.7.0`, use `0.7.0-0.6.x-compat`.
427429
This artifact still contains `kotlinx.datetime.Instant` and `kotlinx.datetime.Clock`,

0 commit comments

Comments
 (0)