Skip to content

0.4.0

Compare
Choose a tag to compare
@alonsodomin alonsodomin released this 17 Apr 08:20
· 366 commits to master since this release

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 and unsafeParse. Good-old Cron("...") 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 the cron4s.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