Dmitry Khalanskiy [JB]
06/30/2025, 11:46 AMkotlinx-datetime
0.6.2 or earlier, and are also
2. Planning on upgrading to kotlinx-datetime
0.7.0, but haven't yet,
then you are advised to wait until 0.7.1 comes out in the next few days.
0.7.0 is missing some migration assistance, namely the deprecated-with-warning type aliases kotlinx.datetime.Instant = kotlin.time.Instant
and kotlinx.datetime.Clock = kotlin.time.Clock
(https://github.com/Kotlin/kotlinx-datetime/pull/540/commits/f829958a1bcbe7b24a11a91519cf57aaf3daa74b). Without them, your client code will not compile until you replace the usages manually, whereas with them, you will be able to proceed at your own pace (if you are not using libraries that themselves depend on kotlinx.datetime.Instant
) or even perform automatic replacement with the help of an IDE.
This is a glaring omission that I made when publishing the release, and I am sorry about that. The type aliases in 0.7.0 were planned from the beginning, but due to my oversight, were missing from the release.Jacob Ras
06/30/2025, 4:07 PMEmre
06/30/2025, 7:00 PMDmitry Khalanskiy [JB]
06/30/2025, 8:33 PM