Repository navigation
v2.1.0
·
12 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
hron 2.1.0
hron 2.1 adds a tenth implementation: a native Kotlin package for Android and the JVM (#107). Every other package is unchanged from 2.0.0 and takes the new version number, because hron's packages share one version.
New: Kotlin
- Package:
io.hron:hron-kotlinon Maven Central, in the packageio.hron.kotlin. It is written in Kotlin from the spec, not as a wrapper of the Java package. - Requirements: Android 12 (API 31) or later, or Java 17 or later, in apps on Kotlin 2.2 or later. Its only dependency is the Kotlin standard library.
- API: the spec's names:
Schedule.parse,fromCron,validate,nextFrom,nextNFrom,previousFrom,matches,occurrences,betweenandtoCron. Timestamps areZonedDateTime, an absent value isnull, andoccurrencesandbetweenreturn lazySequences. The parts are sealed interfaces, sowhenover them is exhaustive. - Tested: it passes every case of the conformance suite on the JVM and on Android emulators at API 31 and 37. It agrees with the other implementations on every generated and DST stress case.
See the Kotlin README to get started.
Other changes
- The playground uses hron-wasm 2.0.0 (#105).
- The Swift README links the package's Swift Package Index page (#106).
Full changelog: v2.0.0...v2.1.0