Skip to content

Commit 21da24e

Browse files
dkhalanskyjbilya-g
andauthored
Prepare release 0.3.0 (#146)
Co-authored-by: Ilya Gorbunov <[email protected]>
1 parent 887aa12 commit 21da24e

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

CHANGELOG.md

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

3+
## 0.3.0
4+
5+
#### Features
6+
7+
- Added `iosSimulatorArm64`, `watchosSimulatorArm64`, `tvosSimulatorArm64`, `macosArm64` target support ([141](https://github.com/Kotlin/kotlinx-datetime/issues/141), [144](https://github.com/Kotlin/kotlinx-datetime/issues/144)).
8+
9+
#### Changes
10+
11+
- `ZoneOffset` was replaced by two other classes: `FixedOffsetDateTime`, which represents a time zone with a fixed offset, and `UtcOffset`, which represents just the UTC offset ([PR#125](https://github.com/Kotlin/kotlinx-datetime/pull/125)).
12+
- The `DayBased` and `MonthBased` subclasses of `DateTimeUnit.DateBased` are now accessed as `DateTimeUnit.DayBased` and `DateTimeUnit.MonthBased` as opposed to `DateTimeUnit.DateBased.DayBased` and `DateTimeUnit.DateBased.MonthBased` respectively ([PR#131](https://github.com/Kotlin/kotlinx-datetime/pull/131)).
13+
314
## 0.2.1
415

516
#### Fixes

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ The library provides the basic set of types for working with date and time:
3636
- `Clock` to obtain the current instant;
3737
- `LocalDateTime` to represent date and time components without a reference to the particular time zone;
3838
- `LocalDate` to represent the components of date only;
39-
- `TimeZone` and `ZoneOffset` provide time zone information to convert between `Instant` and `LocalDateTime`;
39+
- `TimeZone` and `FixedOffsetTimeZone` provide time zone information to convert between `Instant` and `LocalDateTime`;
4040
- `Month` and `DayOfWeek` enums;
4141
- `DateTimePeriod` to represent a difference between two instants decomposed into date and time units;
4242
- `DatePeriod` is a subclass of `DateTimePeriod` with zero time components,
4343
it represents a difference between two LocalDate values decomposed into date units.
4444
- `DateTimeUnit` provides a set of predefined date and time units to use in arithmetic operations on `Instant` and `LocalDate`.
45-
45+
- `UtcOffset` represents the amount of time the local date/time at a particular time zone differs from the date/time at UTC.
46+
4647
### Type use-cases
4748

4849
Here is some basic advice on how to choose which of the date-carrying types to use in what cases:
@@ -295,7 +296,7 @@ kotlin {
295296
sourceSets {
296297
commonMain {
297298
dependencies {
298-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.2.1")
299+
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.0")
299300
}
300301
}
301302
}
@@ -306,7 +307,7 @@ kotlin {
306307

307308
```groovy
308309
dependencies {
309-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.2.1")
310+
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.0")
310311
}
311312
```
312313

@@ -346,7 +347,7 @@ Add a dependency to the `<dependencies>` element. Note that you need to use the
346347
<dependency>
347348
<groupId>org.jetbrains.kotlinx</groupId>
348349
<artifactId>kotlinx-datetime-jvm</artifactId>
349-
<version>0.2.1</version>
350+
<version>0.3.0</version>
350351
</dependency>
351352
```
352353

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
org.gradle.jvmargs=-Xmx1G -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
22

33
group=org.jetbrains.kotlinx
4-
version=0.2.1
4+
version=0.3.0
55
versionSuffix=SNAPSHOT
66

77
kotlinVersion=1.5.30

0 commit comments

Comments
 (0)