unstale

npm / cron

cron

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

15 breaking1 new APIs and options1 tooling2 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

cron 45 changes

Breaking changes 2

  • job.running was renamed to job.isActive; update code that reads or writes the old property.

    4.0.0release notes

  • Node v16 is no longer supported, so developers must use a supported Node.js version.

    4.0.0release notes

Tooling 1

  • Node versions were updated to include 24 and 25.

    4.4.0release notes

Fixes and other changes 2

  • Suppresses the setTimeout warning when negative values are used.

    4.3.5release notes

  • Errors in async onTick functions are now caught.

    4.3.4release notes

cron 313 changes

Breaking changes 12

  • The method was removed; use new CronJob(...args) or CronJob.from(argsObject) instead.

    3.0.0release notes

  • The method was removed; use new CronTime() instead.

    3.0.0release notes

  • CronJob can be constructed with arguments using new CronJob(...args), replacing cron.job().

    3.0.0release notes

  • CronJob.from(argsObject) is the alternative for object-based job creation.

    3.0.0release notes

  • The constructor no longer accepts an object as its first and only parameter; use CronJob.from(argsObject) instead.

    3.0.0release notes

  • Callbacks are now called in the order they were registered.

    3.0.0release notes

  • CronTime can be instantiated with new CronTime(), replacing cron.time().

    3.0.0release notes

  • Calling nextDates without an argument now returns an empty array.

    3.0.0release notes

  • Providing both timeZone and utcOffset now throws an error.

    3.0.0release notes

  • Cron behavior was aligned with UNIX standards.

    3.0.0release notes

  • utcOffset no longer accepts a string.

    3.0.0release notes

  • Values between -60 and 60 are no longer interpreted as hours.

    3.0.0release notes

New APIs and options 1

cron 21 changes

Breaking changes 1

  • The project moves from moment.js to luxon, a breaking change for developers using the affected date-time functionality.

    2.0.0release notes