.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.refreshSchedulerTimer() function, to update the next execution time of all tasks and refresh the scheduler timer. Should be called when the system time is changed to ensure tasks are run at the correct timestask.start() is called on a running taskCronosExpression 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 fieldscheduleTask, CronosExpression.parse() and validate now support strict option, which when enabled will throw an error if warnings were generated during parsingSupport for the ? symbol as a alias to * in the Day of Month and Day of Week fields
new CronosTask() instead of a CronosExpression objectSupport wrap-around ranges for cyclic type fields (ie. Second, Minute, Hour, Month and Day of Week)
task.stop() is called in the run callbackCronosExpression.parse() accessable on CronosExpression.cronString property.toString() returns more useful information on CronosExpression and CronosTimezone
Array.prototype.find is incorrectly polyfilledFirst 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