unstale

npm / croner

croner

What changed in croner 5 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

21 breaking9 new APIs and options2 performance1 behavior and defaults2 tooling17 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

croner 1134 changes

Breaking changes 12

  • Malformed patterns that previously had trailing characters ignored or names replaced within other text now throw; valid patterns are unaffected.

    11.0.1release notes

  • Counts elapsed time rather than wall-clock time, so DST changes no longer shorten or stretch the interval.

    11.0.1release notes

  • Without a reference, counts from now including milliseconds, so a call inside a callback returns the run that just started. With interval, returns only runs at least interval seconds before the reference.

    11.0.1release notes

  • Question marks in day-of-month or day-of-week now behave like *.

    11.0.0release notes

  • Run-query methods return actual shifted run times, and startAt and stopAt apply to the shifted run time.

    11.0.0release notes

  • Fixed-time jobs in a spring-forward gap run at the first valid time after it; interval jobs run on both occurrences of a repeated time, while fixed-time jobs run once at the first occurrence.

    11.0.0release notes

  • Patterns that can never match return null or an empty list instead of throwing.

    11.0.0release notes

  • Strings retain milliseconds on jobs without a named timezone, and one-off dates later in the same second as startAt can run.

    11.0.0release notes

  • Returns when the previous run started rather than when it finished.

    11.0.0release notes

  • A pattern match exactly at startAt now runs; this change does not apply when interval is set.

    11.0.0release notes

  • ISO 8601 strings are read in the job's timezone rather than system local time.

    11.0.0release notes

  • ISO 8601 strings and Date-based startAt values are interpreted using the job's utcOffset rather than system local time.

    11.0.0release notes

New APIs and options 6

  • Adds an option to select which jobs are fixed-time jobs for DST handling. The no-wildcard rule treats jobs without wildcards or steps in seconds, minutes and hours as fixed-time jobs.

    11.0.1release notes

  • Allows date-based jobs scheduled more than 1 second in the past to fire immediately.

    11.0.0release notes

  • Exports CatchCallbackFn from the source entry point (JSR).

    11.0.0release notes

  • Exports the stateful iterator returned by enumerate().

    11.0.0release notes

  • Exports CronMode from the source entry point (JSR).

    11.0.0release notes

  • Exports ProtectCallbackFn from the source entry point (JSR).

    11.0.0release notes

Performance 2

  • Creating a job is 55–64% faster.

    11.0.1release notes

  • Instances are cached per timezone, making timezone-aware scheduling noticeably faster.

    11.0.0release notes

Behavior and default changes 1

  • A one-off job dated up to 1 second in the past fires immediately; older dates require allowPast: true.

    11.0.0release notes

Fixes and other changes 13

  • Years 1–99 are preserved instead of being interpreted as 1901–1999, including weekday modifiers, leap days, local dates and timezone conversion.

    11.0.1release notes

  • A catch callback returning a rejected promise no longer causes an unhandled rejection; the callback is still not awaited.

    11.0.1release notes

  • Matching a day past the end of a month no longer skips valid runs when the two conditions use OR logic.

    11.0.1release notes

  • Near year 1 or year 9999, uses the year in the job's timezone rather than UTC when determining the year.

    11.0.1release notes

  • Using LW in a day-of-month list still throws, but the error now correctly says LW cannot be in a list.

    11.0.1release notes

  • String references in named timezones retain milliseconds when calculating the time until the next run.

    11.0.1release notes

  • Backward searches no longer skip nearest weekday days that fall after the highest plain day-of-month in the pattern.

    11.0.1release notes

  • Stops searching at year 1, the first supported year, avoiding lengthy searches into year 0 and results in that year.

    11.0.1release notes

  • With alternativeWeekdays enabled, @weekly now runs on Sundays instead of throwing a RangeError.

    11.0.1release notes

  • Negative timer delays are clamped to 0, preventing TimeoutNegativeWarning.

    11.0.0release notes

  • No longer goes backwards or repeats times around a DST spring forward.

    11.0.0release notes

  • Scheduling recovers after system clock steps forward or backward instead of silently skipping occurrences or disagreeing with timer targets.

    11.0.0release notes

  • Stepping with a wildcard in the year field no longer raises RangeError; */2 matches even years.

    11.0.0release notes

croner 97 changes

Breaking changes 5

Fixes and other changes 2

  • Fixed an issue that caused these crons to fail with a maximum call stack exceeded error.

    9.0.0release notes

  • Types are now supported when using the ES module via jsr.io.

    9.0.0release notes

croner 82 changes

Breaking changes 1

  • Croner 8.x requires Node.js 18.0 or higher; projects using Node.js 16 or lower should stay on Croner 7.x.

    8.0.0release notes

Fixes and other changes 1

  • Fixes an issue that prevented AKDT timezones from triggering.

    8.0.0release notes

croner 72 changes

Breaking changes 1

  • In the day-of-week field, L must be used with # as SUN#L; the former LSUN and SUNL expressions are no longer valid.

    7.0.0release notes

New APIs and options 1

  • Cron patterns can use # as an nth weekday specifier, such as 5#2 for the second Friday of every month.

    7.0.0release notes

croner 65 changes

Breaking changes 1

  • Method names were refactored, including next() to nextRun(); update code that uses the old method name.

    6.0.0release notes

New APIs and options 2

  • Cron patterns can use L to specify the last weekday of the month.

    6.0.0release notes

  • A method was added to manually trigger a run.

    6.0.0release notes

Tooling 2

  • CommonJS and UMD are now separate builds.

    6.0.0release notes

  • Separate CommonJS typings were added to support node-next module resolution.

    6.0.0release notes

croner 52 changes

Breaking changes 1

Fixes and other changes 1