Packages

node-cron

4.6.0 · 5 Jul 2026ISC5.7M / weekRepositoryHomepagenpmAtom feed

Upgrading node-cron from 4.2.1 to 4.3.0

1 release in betweenevery note read

Other targets from 4.2.1Newest 4.x, Latest4.6.0
0
changes to make
0
advisories fixed
3
new
2
fixes

Release by release

  1. 4.3.0

    17 Jun 20263 new · 2 fixes
    • new

      L (last day of month) in the day-of-month field — e.g. 0 0 12 L * *, leap-year aware, and combinable with explicit days (15,L). (#396, closes #147 — thanks @antonidasyang)

    • new

      missedExecutionTolerance option (ms, default 1000): a heartbeat that wakes a little late still runs its slot instead of being reported as missed. Always capped to the gap to the next slot. (#534, closes #485)

    • new

      startTimeout option for background tasks (ms, default 5000).

    • fixed

      Rewrote getNextMatch for correctness around DST: no more ~1-year overshoot when a daily time falls in the spring-forward gap. (#533, closes #518)

    • fixed

      Background task start failures now reject with the real cause (e.g. unsupported TypeScript syntax, missing file) instead of an opaque timeout, and a failed/timed-out start no longer leaves an orphaned daemon running. (#535, closes #484)

2 other lines we could not sort, mostly version bumps
  • Supported Node.js is now >= 20 (was >= 20.11), tested on Node 20, 22 and 24.

    4.3.0
  • missedExecutionTolerance defaults to 1000ms, so a scheduled run that wakes up to ~1s late now executes instead of emitting execution:missed. This is a bug-fix improvement, not an API break.

    4.3.0

1 internal line (docs, tests, tooling) left out.