Skip to content

Releases: jaclarke/cronosjs

v1.7.1

01 Apr 22:35
Compare
Choose a tag to compare

Fixed

  • Fix bug where .nextDate was returning incorrect dates, causing tasks to run continuously without delays, when running on Node.js v14.0.0 or greater. Bug was caused by the Intl.DateTimeFormat API returning '24:00:00' instead of '00:00:00' on Node.js > v14.0.0.

v1.6.1

04 Jul 21:30
Compare
Choose a tag to compare

Fixed

  • Fix bug when task.start() is called on a running task

v1.6.0

17 Apr 20:00
Compare
Choose a tag to compare

Added

  • CronosExpression now has warnings property that lists possible errors in the expression. Currently supports detecting cases where increment value is larger than the valid (or supplied) range for a field
  • scheduleTask, CronosExpression.parse() and validate now support strict option, which when enabled will throw an error if warnings were generated during parsing

1.5.0

01 Nov 20:38
Compare
Choose a tag to compare

Added

  • Support for the ? symbol as an alias to * in the Day of Month and Day of Week fields

Changed

  • Larger year range (now 0-275759, previously 1970-2099) allowed in year field
  • Improved documentation on cron expression syntax

1.4.0

07 Aug 22:55
Compare
Choose a tag to compare

Added

  • Support for providing a date, array of dates, or a custom date sequence to new CronosTask() instead of a CronosExpression object

1.3.0

30 Jul 21:04
Compare
Choose a tag to compare

Added

  • Support wrap-around ranges for cyclic type fields (ie. Second, Minute, Hour, Month and Day of Week)

Fixed

  • Fix bug causing task to continue to run if task.stop() is called in the run callback

1.2.1

30 Jul 22:10
Compare
Choose a tag to compare

Fixed

  • Fix bug where when multiple tasks are scheduled, they are inserted into the task queue in the wrong order, causing the jobs to not fire at the correct times

1.2.0

30 Jul 22:10
Compare
Choose a tag to compare

Added

  • Original cron string passed to CronosExpression.parse() accessable on CronosExpression.cronString property
  • .toString() returns more useful information on CronosExpression and CronosTimezone

Fixed

  • Added workaround for bug when Array.prototype.find is incorrectly polyfilled
  • Added check to ensure tasks only run at most once a second

1.1.0

30 Jul 22:11
Compare
Choose a tag to compare

Changed

  • Switched to @pika/pack for building, adding builds optimised for node, browsers and modern ES module support (eg. Webpack, modern browsers)
  • Improved test coverage

1.0.0

30 Jul 22:14
Compare
Choose a tag to compare

First release of CronosJS, featuring:

  • Extended cron syntax support, including last day (L), nearest weekday (W), nth of month (#), optional second and year fields, and predefined expressions
  • Fixed offset and IANA timezone support, via Intl api
  • Configurable daylight saving handling
  • Zero dependencies