InstantInterval has been added to the main library, and removed from kotlinx-interval-datetime. This is in line with Instant which was moved over from kotlinx.datetime to the standard library since Kotlin 2.1.20.
This makes this release a breaking change for kotlinx-interval-datetime, but not for kotlinx-interval. For simplicity, I kept the versions aligned.
If you were using kotlinx-interval-datetime before, the only change is the namespace: InstantInterval now lives side-by-side with all the other intervals, i.e., io.github.whathecode.kotlinx.interval. But, I did add a type alias which should provide compile time backwards compatibility in Kotlin.
Dependency updates:
- Kotlin 2.3.10
- kotlinx.datetime 0.7.1