mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-14 04:13:54 +00:00
4.6 KiB
4.6 KiB
Changelog
0.6.1
- Versions
Klock
:2.1.0
->2.1.2
- Rewriting of default mechanism of
KronScheduler
s
0.6.0
- Versions
Kotlin
:1.4.32
->1.5.10
Coroutines
:1.4.3
->1.5.0
Klock
:2.0.7
->2.1.0
0.5.2
- Versions
Kotlin
:1.4.31
->1.4.32
- Supporting of weekdays
- Supporting of timezones
- Any
KronScheduler
now can be used for callingnext
withDateTimeTz
- New type
KronSchedulerTz
- Any
SchedulerFlow
has been deprecated- New extension
asTzFlow
and small changes inasFlow
logic merge
extensions now returnCollectionKronScheduler
instead of justKronScheduler
0.5.1
- Versions
Kotlin
:1.4.21
->1.4.31
Coroutines
:1.4.2
->1.4.3
Klock
:2.0.3
->2.0.7
Androidx Work
:2.4.0
->2.5.0
0.5.0 Years
BREAKING CHANGES
CronDateTimeScheduler
has been marked asinternal
and no longer accessible outside of internal functions- Old methods
merge
andplus
related toCronDateTimeScheduler
has been marked asdeprecated
and changed their parameters types - it isKronScheduler
now
- Old methods
- New methods
merge
has been added KronScheduler#next
method now is nullable. UsenextOrRelative
/nextOrNow
to get next time certainly- Years was added as optional part of krontab template and opportunity in
SchedulerBuilder
- New builder
YearsBuilder
SchedulerFlow#collectSafely
will be normally (without exceptions) finish whennext
of scheduler will return null
- New builder
KronScheduler#doOnce
will run code immediately in case whennext
is returning null valueKrontabTemplateWrapper
has been added- New extension
KrontabTemplate#toKronScheduler
(works astoSchedule
) - Fixed issue related to the fact that
toNearDateTime
ofCronDateTime
incorrectly handled months - Android target has been added
0.4.2
- Versions
Kotlin
:1.4.20
->1.4.21
Klock
:2.0.1
->2.0.3
CronDateTimeScheduler
now is deprecated and will be set up asinternal
in future
0.4.1
- Versions:
Coroutines
:1.4.1
->1.4.2
Klock
:2.0.0
->2.0.1
CronDateTimeScheduler
now is public- New functions for
CronDateTimeScheduler
- Add
CollectionKronScheduler
. It will give opportunity to unite several schedulers in one
0.4.0
BREAKING CHANGES Package of project has been changed. Migration:
-
Replace in your dependencies
com.insanusmokrassar:krontab
bydev.inmo:krontab
-
Replace in your project all imports
com.insanusmokrassar.krontab
bydev.inmo.krontab
-
Versions:
Kotlin
:1.4.10
->1.4.20
Klock
:1.12.1
->2.0.0
0.3.3
- Versions:
Coroutines
:1.3.9
->1.4.1
0.3.2
- Function
TimeBuilder#each
was added (works asat
) - Add opportunity to use
first
shortcuts:- Value property
TimeBuilder#first
for including via functions likeTimeBuilder#at
- Shortcut for kron string format
f
orF
- Value property
- Add opportunity to use
last
shortcuts:- Value property
TimeBuilder#last
for including via functions likeTimeBuilder#at
- Shortcut for kron string format
l
orL
- Value property
0.3.1
- Versions:
Kotlin
:1.4.0
->1.4.10
Klock
:1.12.0
->1.12.1
0.3.0
- Versions:
Kotlin
:1.3.72
->1.4.0
Coroutines
:1.3.8
->1.3.9
Klock
:1.11.14
->1.12.0
- Typealias
KrontabTemplate
was added - Extension
KrontabTemplate#toSchedule
was added
0.2.4
- Updates in libraries:
- Klock
1.11.3
->1.11.14
- Coroutines
1.3.7
->1.3.8
- Klock
- Ranges support were included. Now it is possible to correctly use syntax
0-5
in strings schedules
0.2.3
- Updates in libraries:
- Kotlin
1.3.70
->1.3.72
- Coroutines
1.3.5
->1.3.7
- Klock
1.10.0
->1.11.3
- Kotlin
- A lot of KDocs added and fixed
EverySecondScheduler
changed its building logic - now it is lazy with builder usingKronScheduler#doOnce
was optimized: now it will be explicitly called once and return result of its calculationsKronScheduler#doWhile
was rewritten to useKronScheduler#doOnce
for calculations ofblock
result
- New
buildSchedule(String)
function as a shortcut forcreateSimpleScheduler(String)
0.2.2
- Updates in libraries:
- Kotlin
1.3.61
->1.3.70
- Coroutines
1.3.3
->1.3.5
- Klock
1.8.6
->1.10.0
- Kotlin
0.2.1
- Added support of flows: now any
KronScheduler
can be convert toFlow<DateTime>
usingasFlow
extension
0.2.0
- Updated way of publishing (for more info look at the git)
- Updates in libraries:
- Coroutines
1.3.2
->1.3.3
- Klock
1.7.3
->1.8.6
- Coroutines