3
3
[ ![ Kotlin Alpha] ( https://kotl.in/badges/alpha.svg )] ( https://kotlinlang.org/docs/components-stability.html )
4
4
[ ![ JetBrains official project] ( https://jb.gg/badges/official.svg )] ( https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub )
5
5
[ ![ GitHub license] ( https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat )] ( http://www.apache.org/licenses/LICENSE-2.0 )
6
- [ ![ Maven Central] ( https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-datetime?filter=0.7.0 )] ( https://search.maven.org/search?q=g:org.jetbrains.kotlinx%20AND%20a:kotlinx-datetime )
6
+ [ ![ Maven Central] ( https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-datetime?filter=0.7.1 )] ( https://search.maven.org/search?q=g:org.jetbrains.kotlinx%20AND%20a:kotlinx-datetime )
7
7
[ ![ Kotlin] ( https://img.shields.io/badge/kotlin-2.1.20-blue.svg?logo=kotlin )] ( http://kotlinlang.org )
8
8
[ ![ KDoc link] ( https://img.shields.io/badge/API_reference-KDoc-blue )] ( https://kotlinlang.org/api/kotlinx-datetime/ )
9
9
[ ![ Slack channel] ( https://img.shields.io/badge/chat-slack-blue.svg?logo=slack )] ( https://kotlinlang.slack.com/messages/kotlinx-datetime/ )
@@ -411,9 +411,9 @@ and `kotlinx.datetime.Clock`.
411
411
The Kotlin standard library started including its own, identical ` kotlin.time.Instant ` and ` kotlin.time.Clock ` ,
412
412
as it became evident that ` Instant ` was also useful outside the datetime contexts.
413
413
414
- Here is the recommended procedure for migrating from ` kotlinx-datetime ` version ` 0.6.x ` or earlier to ` 0.7.0 ` :
414
+ Here is the recommended procedure for migrating from ` kotlinx-datetime ` version ` 0.6.x ` or earlier to ` 0.7.x ` :
415
415
416
- * First, simply try upgrading to ` 0.7.0 ` .
416
+ * First, simply try upgrading to ` 0.7.1 ` .
417
417
If your project has a dependency on ` kotlinx-datetime ` , but doesn't have dependencies on other libraries that are
418
418
* themselves* reliant on an older ` kotlinx-datetime ` , you are good to go: the code should compile and run.
419
419
This applies both to applications and to libraries!
@@ -425,10 +425,10 @@ Here is the recommended procedure for migrating from `kotlinx-datetime` version
425
425
* If you use ` kotlinx-serialization ` to serialize the ` Instant ` type, update that dependency to use
426
426
[ 1.9.0] ( https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.9.0 ) or a newer version.
427
427
* If all else fails, use the * compatibility release* of ` kotlinx-datetime ` .
428
- Instead of the version ` 0.7.0 ` , use ` 0.7.0 -0.6.x-compat ` .
428
+ Instead of the version ` 0.7.1 ` , use ` 0.7.1 -0.6.x-compat ` .
429
429
This artifact still contains ` kotlinx.datetime.Instant ` and ` kotlinx.datetime.Clock ` ,
430
430
ensuring that third-party libraries reliant on them can still be used.
431
- This artifact is less straightforward to use than ` 0.7.0 ` , so only resort to it when libraries you don't control
431
+ This artifact is less straightforward to use than ` 0.7.1 ` , so only resort to it when libraries you don't control
432
432
require that the removed classes still exist.
433
433
434
434
Tips for fixing compilation errors:
@@ -467,7 +467,7 @@ kotlin {
467
467
sourceSets {
468
468
commonMain {
469
469
dependencies {
470
- implementation(" org.jetbrains.kotlinx:kotlinx-datetime:0.7.0 " )
470
+ implementation(" org.jetbrains.kotlinx:kotlinx-datetime:0.7.1 " )
471
471
}
472
472
}
473
473
}
@@ -478,7 +478,7 @@ kotlin {
478
478
479
479
``` groovy
480
480
dependencies {
481
- implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.0 ")
481
+ implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1 ")
482
482
}
483
483
```
484
484
@@ -550,7 +550,7 @@ kotlin {
550
550
sourceSets {
551
551
val wasmWasiMain by getting {
552
552
dependencies {
553
- implementation(" kotlinx-datetime-zoneinfo" , " 2025a-spi.0.7.0 " )
553
+ implementation(" kotlinx-datetime-zoneinfo" , " 2025a-spi.0.7.1 " )
554
554
}
555
555
}
556
556
}
@@ -565,7 +565,7 @@ Add a dependency to the `<dependencies>` element. Note that you need to use the
565
565
<dependency >
566
566
<groupId >org.jetbrains.kotlinx</groupId >
567
567
<artifactId >kotlinx-datetime-jvm</artifactId >
568
- <version >0.7.0 </version >
568
+ <version >0.7.1 </version >
569
569
</dependency >
570
570
```
571
571
0 commit comments