unstale

npm / cron-parser

cron-parser

What changed in cron-parser 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

3 breaking1 security1 deprecations1 performance1 behavior and defaults18 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

cron-parser 525 changes

Breaking changes 3

  • Values for days the month does not have are dropped.

    5.8.0release notes

  • A standalone L in the day-of-week field is now rejected during construction.

    5.7.0release notes

  • Unsatisfiable expressions now throw instead of returning a bogus date because the iteration loop limit is enforced.

    5.7.0release notes

Security 1

  • Bounds expression length and hashed step expansion at parse time.

    5.10.2release notes

Deprecations 1

  • The npm-published 5.6.2 package is deprecated because it shipped the 5.6.1 source tree; use 5.7.0 instead.

    5.6.2release notes

Performance 1

Behavior and default changes 1

  • Day fields that cover their whole range are kept out of the wildcard form.

    5.8.0release notes

Fixes and other changes 18

  • Preserves crontab fields separated by whitespace when parsing expressions.

    5.10.2release notes

  • Rejects duplicate zero values during field validation.

    5.10.1release notes

  • Bounds field value expansion at parse time.

    5.10.1release notes

  • Short expressions are padded from the leading field slot.

    5.10.0release notes

  • DST transitions wider than one hour are now compensated for.

    5.9.0release notes

  • A hashed step wider than its range no longer empties the field.

    5.9.0release notes

  • Stringifying stepped fields now keeps explicit range bounds.

    5.9.0release notes

  • The current date is rounded to whole seconds so occurrences on the end date are returned.

    5.8.0release notes

  • A day-of-week step no longer adds Sunday when it never reaches 7.

    5.8.0release notes

  • The CronField constructor now copies the values array rather than reusing it.

    5.7.0release notes

  • A matching day of month is no longer dropped when the day of week uses an nth (#) occurrence.

    5.7.0release notes

  • Fixes CronDate throwing on .bind in bundled and CDN builds.

    5.6.1release notes

  • Does not reject an out-of-range day of month when the day of week is restricted.

    5.6.1release notes

  • Handles DST gaps correctly and prevents iteration from stopping prematurely.

    5.6.1release notes

  • Fixes handling of the ES6 iterator done flag, affecting iteration behavior.

    5.6.0release notes

  • Stops the hour-step loop early on spring-forward DST days to prevent skipping a day.

    5.6.0release notes

  • Fixes parsing of repeat ranges in CronExpressionParser.

    5.6.0release notes

  • CronExpression.reset() now preserves the timezone.

    5.6.0release notes