Releases: alonsodomin/cron4s
Releases · alonsodomin/cron4s
0.4.1
This is a bug fix release over 0.4.0:
Bug Fixes:
- #73/#80:
Rolling an update to the day of month field could cause setting an invalid date, which will eventually return
aNone
result from thenext
/prev
methods. This case is now handled and will propagate a carry over value to
the month field whenever it happens.
Changes:
- #81: The signature for the
set
method in theIsDateTime
typeclass
has been changed to capture errors when setting the values. - #78: Upgrading the Scala version to 2.12.2 means that case classes
do not support anymore having implicit parameter lists. This means that all node class implementations under package
cron4s.expr
have been rewritten using normal Scala classes instead of case classes. This means that they can not
be used anymore in pattern matching and that binary compatibility in their case has been broken.
Version Upgrades:
- Scala: 2.11.11 / 2.12.2
- ScalaJS: 0.6.18
- Scala Java Time: 2.0.0-M12
Please, check migration document for instructions on how to migrate your code to the last version:
Migration to 0.4.1
0.4.0
This the 4th release of Cron4s, aimed at a more complete implementation of the CRON Spec, easier to use, and with important bug fixes.
Improvements:
- #58: CRON expressions now support
?
symbols in both day of month and day of week fields. This also means that now expressions must use that symbol in one of those two fields to be valid. - Additional parse operations where added to the
Cron
entry point:parse
,tryParse
andunsafeParse
. Good-oldCron("...")
syntax is still supported and it be the preferred one as it's the most concise one. - #70: Improved parser error messages.
- #60: ScalaJS & ScalaJVM support for JSR-310 (aka Java 8 Time) has
been unified in thecron4s.lib.javatime
package. - #67: Added module with support for MomentJS.
- #66:
Cron
entry point is exported as a CommonJS module in ScalaJS.
Bug Fixes:
- #59: Carry over from fields month and day of week wasn't
properly applied to the datetime. - #56: The effect of updating a date-time field propagates the
effect to the predecessor fields, no matter the direction of this effect (forward or backwards in time).
Changes:
- #63: Scalaz has been replaced by Cats.
- #67: Joda Time support has been moved to it's own module.
- #61: Field expression selection by field type is now fully type-checked during compilation.
Version Upgrades:
- ScalaJS: 0.6.15
- Cats: 0.9.0
- Scala Java Time: 2.0.0-M10
Please, check migration document for instructions on how to migrate your code to the last version:
Migration to 0.4.0