Packages

node-cron

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

Your version

4.6.0

latest5 Jul 2026Where it was published

In short

5 new19 fixed1 changed

Release note

Added

  • Add cron.shutdown(timeout?) for graceful process teardown

  • Add unref option for heartbeat timers

  • day-of-month: Quartz-style W, L-n and ? modifiers

  • Emit task:failed when a background daemon exits unexpectedly

  • Support cron expression nicknames (@yearly, @daily, etc.)

Fixed

  • Background task state transition on stop/destroy without fork

  • Clear jitter timeout on runner stop

  • CommonJS type resolution

  • Correct falied->failed typo in daemon task error log

  • Correct shutdown listener typing that broke the build

  • Correlate execute() by id, isolate event hooks, and stop counting manual runs toward maxExecutions

  • Daemon serialized task state with wrong field name

  • Expand inverted ranges with wrap-around instead of silently swapping

  • Harden cron.shutdown() teardown

  • Kill orphan child process on background task stop/destroy timeout

  • Make concurrent background start() await the daemon and time out coordinator lookups

  • Make lifecycle calls on a destroyed task safe no-ops

  • Prevent double destroy on registry remove

  • release-please: match existing v-prefixed tags

  • Runner promise bugs that could hang scheduling or crash process

  • Unref the IPC channel so background tasks let the process exit

  • Validate the cron expression when scheduling a task

  • validate() consistency and multi-asterisk expansion

  • Weekday 7-to-0 conversion corrupting ranges

Changed

  • Replace chai and sinon with native vitest assertions