node-cron breaking changes
node-cron 4.6.0 (July 5, 2026) is its newest release with breaking changes, 5 of them. The first: Inverted cron ranges now wrap around instead of being swapped in node-cron 4.6.0. Every breaking API change we have recorded in node-cron on npm: 34 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.6.0, released July 5, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.0.0 to 4.6.0: 25 breaking changes in 7 versions.
- From 2.0.0 to 4.6.0: 31 breaking changes in 8 versions.
node-cron 4.6.0 breaking changes
- Behavior changed
Ranges whose start is greater than their end now expand with wrap-around rather than silently swapping the bounds. Check any schedules that use inverted ranges. github.com - Behavior changed
Scheduling a task now validates the cron expression up front, so expressions that were previously accepted silently may now throw. Make sure schedule strings are valid. github.com - Behavior changed
Runs triggered manually through execute() no longer count toward a task's maxExecutions limit. Scheduled runs are counted as before. github.com - Signature changed
TaskContext
Was type TaskContext = {date: Date; dateLocalIso: string; task?: ScheduledTask; execution?: Execution; triggeredAt: Date; reason?: SkipReason;}; now type TaskContext = {date: Date; dateLocalIso: string; task?: ScheduledTask; execution?... npmjs.com - Signature changed
TaskOptions
Was type TaskOptions = {timezone?: string; name?: string; noOverlap?: boolean; distributed?: boolean; runCoordinator?: RunCoordinator; distributedLease?: number; maxExecutions?: number; maxRandomDelay?: number; logger?: Logger... npmjs.com
node-cron 4.5.0 breaking changes
- Signature changed
ParsedFields.dayOfWeek
Was dayOfWeek: number[]; now dayOfWeek: (number | string)[]. npmjs.com
node-cron 4.4.1 breaking changes
- Removed
TaskOptions.distributedTtl
The distributedTtl task option was renamed to distributedLease with the same meaning and no alias. Code that adopted distributedTtl in 4.4.0 must rename it to distributedLease. npmjs.com - Signature changed
TaskOptions
Was type TaskOptions = {timezone?: string; name?: string; noOverlap?: boolean; distributed?: boolean; runCoordinator?: RunCoordinator; distributedTtl?: number; maxExecutions?: number; maxRandomDelay?: number; logger?: Logger... npmjs.com
node-cron 4.4.0 breaking changes
- Signature changed
TaskContext
Was type TaskContext = {date: Date; dateLocalIso: string; task?: ScheduledTask; execution?: Execution; triggeredAt: Date;}; now type TaskContext = {date: Date; dateLocalIso: string; task?: ScheduledTask; execution?: Execution; triggeredAt... npmjs.com - Signature changed
TaskOptions
Was type TaskOptions = {timezone?: string; name?: string; noOverlap?: boolean; maxExecutions?: number; maxRandomDelay?: number; logger?: Logger; suppressMissedWarning?: boolean; missedExecutionTolerance?: number; executeTimeout?: number... npmjs.com
node-cron 4.3.0 breaking changes
- Behavior changed
missedExecutionTolerance
The new missedExecutionTolerance option defaults to 1000ms, so a run that wakes up to about 1 second late now executes instead of emitting execution:missed. Code that relies on execution:missed for those runs must set the option to 0 or... github.com - Signature changed
ScheduledTask.getStatus
Was getStatus(): string | Promise<string>; now getStatus(): string. npmjs.com - Signature changed
TaskOptions
Was type TaskOptions = {timezone?: string; name?: string; noOverlap?: boolean; maxExecutions?: number; maxRandomDelay?: number;}; now type TaskOptions = {timezone?: string; name?: string; noOverlap?: boolean; maxExecutions?: number... npmjs.com
node-cron 4.1.0 breaking changes
- Removed
Options
Options was removed in node-cron 4.1.0 npmjs.com - Signature changed
createTask
Was function createTask(expression: string, func: TaskFn | string, options?: Options): ScheduledTask; now function createTask(expression: string, func: TaskFn | string, options?: TaskOptions): ScheduledTask. npmjs.com - Signature changed
schedule
Was function schedule(expression: string, func: TaskFn | string, options?: Options): ScheduledTask; now function schedule(expression: string, func: TaskFn | string, options?: TaskOptions): ScheduledTask. npmjs.com - Signature changed
TaskOptions
Was type TaskOptions = {timezone?: string; name?: string; noOverlap?: boolean; maxExecutions?: number;}; now type TaskOptions = {timezone?: string; name?: string; noOverlap?: boolean; maxExecutions?: number; maxRandomDelay?: number;}. npmjs.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
node-cron 4.0.0 breaking changes
- Removed
getTasks
getTasks was removed in node-cron 4.0.0 npmjs.com - Removed
schedule
schedule was removed in node-cron 4.0.0 npmjs.com
And 6 more in this version.
node-cron 3.0.0 breaking changes
- Signature changed
schedule
Was function schedule(cronExpression: string, func: () => void, options?: ScheduleOptions): ScheduledTask; now function schedule(cronExpression: string, func: ((now: Date | "manual" | "init") => void) | string, options?: ScheduleOptions)... npmjs.com - Signature changed
ScheduledTask
Was interface ScheduledTask; now interface ScheduledTask extends EventEmitter. npmjs.com
And 4 more in this version.
node-cron 2.0.0 breaking changes
- Removed
ImmediateStart
ImmediateStart is removed and replaced by an options parameter. Use the scheduled option to get the same behavior. github.com - Signature changed
schedule
Was function schedule(a: string, func: () => void, immediateStart?: boolean): ScheduledTask; now function schedule(cronExpression: string, func: () => void, options?: ScheduleOptions): ScheduledTask. npmjs.com
And 1 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.