Skip to content

Releases: rautio/crontext

Fixes bug with 'every X minutes' not using '*'

12 Oct 01:00
Compare
Choose a tag to compare

Fixes bug with 'every X minutes' not using '*'

Customize the start of day when using non specific schedules like 'Every Monday'

09 Oct 15:59
Compare
Choose a tag to compare

Customize the start of day when using non specific schedules like 'Every Monday'.

New options passed to parseText(cron, options) where options is:

{
  preset?: 'system';
  defaultHour?: string;
  defaultMinute?: string;
};

Fixes misc. bugs with date/day ranges not being reset on nextDate()

08 Oct 23:16
Compare
Choose a tag to compare

Fixes misc. bugs with date/day ranges not being reset on nextDate()

Add support for '*/15' syntax in next occurrence

08 Oct 20:46
Compare
Choose a tag to compare

Add support for '*/15' syntax in next occurrence

Fix bug with day tokenization

08 Oct 16:19
Compare
Choose a tag to compare

Fixes a bug where every weekd would throw an error on the weekd match with the tokenizer. The 'day' regex was matching on this partial text which occurs when a user is manually typing every weekday or every weekend without debouncing the input.

Next occurrence support

08 Oct 04:36
Compare
Choose a tag to compare

Add a new nextDate function that returns the next occurrence of a given cron schedule as a JS Date object:

import { nextDate } from 'crontext';

const date = nextDate('* * * * * ', new Date());

Warning message

06 Oct 01:24
Compare
Choose a tag to compare

Adds a warning message to the readme

Support for 'every week'

04 Oct 16:14
Compare
Choose a tag to compare

Adds support for 'every week' syntax.

Fix crashing on empty string

04 Oct 03:59
Compare
Choose a tag to compare

Fixes a bug where if you pass in an empty string, the tokenizer will throw an error. Now instead it will return the default "every minute" format.

Initial release

02 Oct 00:56
Compare
Choose a tag to compare

Initial working copy. Still in beta. Not meant for production use.