Skip to content

Commit 1953358

Browse files
authored
Version 0.7.0
1 parent ac3af50 commit 1953358

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

CHANGELOG.md

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

3+
## 0.7.0
4+
5+
Breaking changes:
6+
7+
- Remove `kotlinx.datetime.Instant` and `kotlinx.datetime.Clock` in favor of `kotlin.time.Instant` ([#506](https://github.com/Kotlin/kotlinx-datetime/pull/506)). See <https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#deprecation-of-instant> for a description of what to do if this causes problems.
8+
- Unify the range of admissible `LocalDate` and `LocalDateTime` values on all platforms ([#432](https://github.com/Kotlin/kotlinx-datetime/issues/432)).
9+
- Rename `dayOfMonth` to `day`, `monthNumber` to `month` ([#84](https://github.com/Kotlin/kotlinx-datetime/issues/84)).
10+
- Make `DayOfWeek` and `Month` no longer type aliases to `java.time.DayOfWeek` and `java.time.Month` ([#96](https://github.com/Kotlin/kotlinx-datetime/issues/96)).
11+
- Make `"UTC"` and not `"Z"` be the timezone identifier for `TimeZone.UTC` ([#474](https://github.com/Kotlin/kotlinx-datetime/issues/474)).
12+
- Accept `"z"` in `TimeZone.of`, with the same meaning as `"Z"` ([#529](https://github.com/Kotlin/kotlinx-datetime/issues/529)).
13+
- Add `DateTimeFormat`-based `KSerializer` implementations for datetime entities, and change the default serializers to be based on `toString`/`parse` pairs ([#415](https://github.com/Kotlin/kotlinx-datetime/issues/415)).
14+
15+
Additions:
16+
17+
- Add `java.io.Serializable` implementations for most of the entities in the library ([#143](https://github.com/Kotlin/kotlinx-datetime/issues/143)). Thanks for spotting and fixing a potential vulnerability, @lukellmann!
18+
- Add `LocalDateRange`, a range of `LocalDate` values ([#190](https://github.com/Kotlin/kotlinx-datetime/issues/190)). Thanks, @PeterAttardo!
19+
- Add `YearMonth` and `YearMonthRange` ([#457](https://github.com/Kotlin/kotlinx-datetime/issues/168)).
20+
21+
Tweaks and fixes:
22+
23+
- Support obtaining the system timezone on old Debian-based distributions ([#430](https://github.com/Kotlin/kotlinx-datetime/issues/430)).
24+
- Fix not being able to parse some valid timezone identifiers using the `timeZoneId()` directive ([#444](https://github.com/Kotlin/kotlinx-datetime/issues/444)).
25+
- Use the grammar defined in RFC 9557 for parsing timezone identifiers in the `timeZoneId()` directive, allowing parsing values not present in the timezone database ([#531](https://github.com/Kotlin/kotlinx-datetime/issues/531)).
26+
- Improved error messages when formatting an invalid `DateTimeComponents` value ([#471](https://github.com/Kotlin/kotlinx-datetime/issues/471)).
27+
- Set the JPMS dependency on `kotlinx.serialization.core` to be optional ([#496](https://github.com/Kotlin/kotlinx-datetime/issues/496)).
28+
329
## 0.6.2
430

531
- Add the Wasm/WASI target support ([#366](https://github.com/Kotlin/kotlinx-datetime/pull/366)). Thanks, @igoriakovlev!

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ kotlin {
465465
sourceSets {
466466
commonMain {
467467
dependencies {
468-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.2")
468+
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.0")
469469
}
470470
}
471471
}
@@ -476,7 +476,7 @@ kotlin {
476476

477477
```groovy
478478
dependencies {
479-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.2")
479+
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.0")
480480
}
481481
```
482482

@@ -548,7 +548,7 @@ kotlin {
548548
sourceSets {
549549
val wasmWasiMain by getting {
550550
dependencies {
551-
implementation("kotlinx-datetime-zoneinfo", "2025a-spi.0.6.2")
551+
implementation("kotlinx-datetime-zoneinfo", "2025a-spi.0.7.0")
552552
}
553553
}
554554
}
@@ -563,7 +563,7 @@ Add a dependency to the `<dependencies>` element. Note that you need to use the
563563
<dependency>
564564
<groupId>org.jetbrains.kotlinx</groupId>
565565
<artifactId>kotlinx-datetime-jvm</artifactId>
566-
<version>0.6.2</version>
566+
<version>0.7.0</version>
567567
</dependency>
568568
```
569569

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.6.2
5+
version=0.7.0
66
versionSuffix=SNAPSHOT
77

88
tzdbVersion=2025b

0 commit comments

Comments
 (0)