Skip to content

Commit 9d16f71

Browse files
committed
Version 0.7.1
1 parent 3d84f69 commit 9d16f71

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 0.7.1
4+
5+
- Add `kotlinx.datetime.Instant` and `kotlinx.datetime.Clock` type aliases to, respectively, `kotlin.time.Instant` and `kotlin.time.Clock` to make migration more convenient.
6+
- Add a fallback timezone database implementation for Darwin that uses the Foundation framework if the timezone database is unavailable on the filesystem ([#485](https://github.com/Kotlin/kotlinx-datetime/issues/485)).
7+
- Restore binary compatibility in string format definitions utilizing dates on the JVM ([#545](https://github.com/Kotlin/kotlinx-datetime/issues/545)).
8+
39
## 0.7.0
410

511
Breaking changes:

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Kotlin Alpha](https://kotl.in/badges/alpha.svg)](https://kotlinlang.org/docs/components-stability.html)
44
[![JetBrains official project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
55
[![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)
77
[![Kotlin](https://img.shields.io/badge/kotlin-2.1.20-blue.svg?logo=kotlin)](http://kotlinlang.org)
88
[![KDoc link](https://img.shields.io/badge/API_reference-KDoc-blue)](https://kotlinlang.org/api/kotlinx-datetime/)
99
[![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`.
411411
The Kotlin standard library started including its own, identical `kotlin.time.Instant` and `kotlin.time.Clock`,
412412
as it became evident that `Instant` was also useful outside the datetime contexts.
413413

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`:
415415

416-
* First, simply try upgrading to `0.7.0`.
416+
* First, simply try upgrading to `0.7.1`.
417417
If your project has a dependency on `kotlinx-datetime`, but doesn't have dependencies on other libraries that are
418418
*themselves* reliant on an older `kotlinx-datetime`, you are good to go: the code should compile and run.
419419
This applies both to applications and to libraries!
@@ -425,10 +425,10 @@ Here is the recommended procedure for migrating from `kotlinx-datetime` version
425425
* If you use `kotlinx-serialization` to serialize the `Instant` type, update that dependency to use
426426
[1.9.0](https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.9.0) or a newer version.
427427
* 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`.
429429
This artifact still contains `kotlinx.datetime.Instant` and `kotlinx.datetime.Clock`,
430430
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
432432
require that the removed classes still exist.
433433

434434
Tips for fixing compilation errors:
@@ -467,7 +467,7 @@ kotlin {
467467
sourceSets {
468468
commonMain {
469469
dependencies {
470-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.0")
470+
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1")
471471
}
472472
}
473473
}
@@ -478,7 +478,7 @@ kotlin {
478478

479479
```groovy
480480
dependencies {
481-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.0")
481+
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1")
482482
}
483483
```
484484

@@ -550,7 +550,7 @@ kotlin {
550550
sourceSets {
551551
val wasmWasiMain by getting {
552552
dependencies {
553-
implementation("kotlinx-datetime-zoneinfo", "2025a-spi.0.7.0")
553+
implementation("kotlinx-datetime-zoneinfo", "2025a-spi.0.7.1")
554554
}
555555
}
556556
}
@@ -565,7 +565,7 @@ Add a dependency to the `<dependencies>` element. Note that you need to use the
565565
<dependency>
566566
<groupId>org.jetbrains.kotlinx</groupId>
567567
<artifactId>kotlinx-datetime-jvm</artifactId>
568-
<version>0.7.0</version>
568+
<version>0.7.1</version>
569569
</dependency>
570570
```
571571

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx2G -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
22
org.gradle.java.installations.fromEnv=JDK_8
33

44
group=org.jetbrains.kotlinx
5-
version=0.7.0
5+
version=0.7.1
66
versionSuffix=SNAPSHOT
77

88
tzdbVersion=2025b

0 commit comments

Comments
 (0)