Skip to content

fix(deps): update dependency node-cron to v4#118

Open
renovate[bot] wants to merge 1 commit into
rewritefrom
renovate/node-cron-4.x
Open

fix(deps): update dependency node-cron to v4#118
renovate[bot] wants to merge 1 commit into
rewritefrom
renovate/node-cron-4.x

Conversation

@renovate

@renovate renovate Bot commented May 28, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
node-cron (source) ^3.0.3^4.5.0 age confidence

Release Notes

node-cron/node-cron (node-cron)

v4.5.0

Compare Source

Added
  • lastRun() introspection getter on ScheduledTask: returns { date, result } after
    a successful execution, { date, error } after a failed one, or null before the first
    run. ([#​557])
  • Extended day-of-week tokens: <weekday>#<nth> (nth weekday of the month, e.g.
    1#1 for the first Monday) and <weekday>L (last weekday of the month, e.g. 5L
    for the last Friday). ([#​560])
Performance
  • Cache Intl.DateTimeFormat instances per timezone instead of rebuilding on every
    call. ([#​561])
  • Parse the cron expression once per TimeMatcher instead of re-parsing in
    MatcherWalker. ([#​562])
  • Compute the GMT offset lazily (only when formatting ISO strings, not during the
    next-run search). ([#​563])
  • Replace crypto.randomBytes with crypto.randomUUID for internal ID
    generation. ([#​564])
  • Skip setTimeout jitter wrapper when maxRandomDelay is zero. ([#​565])
  • Bundle dist into flat files instead of preserving the module tree (reduces import
    time). ([#​566])
Fixed
  • Flaky should schedule a task test: poll for the first execution instead of
    asserting an exact count after a fixed sleep.
Changed
  • Renamed internal functions interprete to interpret and
    appendSeccondExpression to appendSecondExpression. ([#​567])
  • Rewritten README and package metadata to surface scheduling capabilities
    (overlap prevention, distributed coordination, background tasks). ([#​568])

v4.4.1

Compare Source

Changed
  • Renamed the distributedTtl option to distributedLease (same meaning:
    the safety lease, in ms, for lease-based coordinators). The old name was the
    only abbreviation in the options API; the new one groups with distributed.
    distributedTtl was introduced in 4.4.0 and is removed without an alias.

v4.4.0

Compare Source

Added
  • Task introspection on ScheduledTask: getNextRuns(n) (preview the next N
    run times), match(date), msToNext(), isBusy(), runsLeft() and
    getPattern(). ([#​547])
  • cron.parse(expression) and cron.validateDetailed(expression):
    decompose an expression into its fields, or get every field-level problem
    (without throwing) for tooling and richer error messages. ([#​548])
  • Distributed run coordination — opt-in distributed: true runs a task on a
    single instance per fire across a fleet. Ships a built-in NODE_CRON_RUN
    env-var default (one designated runner, no dependencies) and a pluggable
    RunCoordinator (via setRunCoordinator, or the per-task runCoordinator
    option) for high-availability, per-fire coordination (e.g. a Redis lock).
    Adds the distributedTtl option and an execution:skipped event carrying a
    reason ('not-elected' | 'coordinator-error'). Works for inline and
    background tasks. ([#​549])
Fixed
  • getNextMatch no longer scans every time of day on a day that matches the
    day-of-month but not the weekday. A dense expression constrained by both
    (e.g. * * * 15 * 1) could take minutes to resolve; it is now instant.
Changed
  • Internal-only cleanups (no public API change): fixed the milisecond
    millisecond spelling and the convertion/conversion/ directory name.

v4.3.0

Compare Source

Added
  • 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). ([#​147])
  • 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, so it can never run a slot twice.
    ([#​485])
  • startTimeout option for background tasks (ms, default 5000). ([#​535])
Fixed
  • DST correctness in getNextMatch: no more ~1-year overshoot when a daily time
    falls in the spring-forward gap. ([#​518])
  • 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 or timed-out start no longer leaves an orphaned daemon running.
    ([#​484])
  • Long-timer drift no longer produces spurious "missed execution" warnings or
    skipped runs on daily/weekly schedules. ([#​485])
Changed
  • Minimum supported Node.js is now >= 20 (was >= 20.11); tested on Node
    20, 22 and 24.

Behavior note: 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.

v4.2.1

Compare Source

Fixed
  • ESM/CJS interop and task-file import on Windows.

v4.2.0

Compare Source

Added
  • getTasks() and getTask(id) to inspect the task registry.

v4.1.1

Compare Source

Fixed
  • Overlap prevention (noOverlap).

v4.1.0

Compare Source

Added
  • Jitter via the maxRandomDelay option.
Fixed
  • createID compatibility with older Node versions (e.g. Node 16).

v4.0.7

Compare Source

Fixed
  • Dropped timeZoneName from the localized-time conversion (DST handling).

v4.0.6

Compare Source

Fixed
  • getNextMatch edge cases, including a time parsed as 24:00.

v4.0.5

Compare Source

Added
  • Missing task options.

v4.0.4

Compare Source

Fixed
  • GMT offset on Node 16 and the crypto import.

v4.0.3

Compare Source

Fixed
  • Background task file resolution path.

v4.0.2

Compare Source

Fixed
  • Cap the heartbeat delay so long intervals don't overflow setTimeout.

v4.0.1

Compare Source

Fixed
  • Dual CommonJS/ESM build output.

v4.0.0

Compare Source

Full rewrite in TypeScript with a new, event-driven API: lifecycle events,
background tasks (run a task file in a forked process), createTask for tasks
that start stopped, per-task logger, and a dual ESM/CJS build. The legacy
scheduled/runOnInit options were removed and several event names changed.
See the migration guide.


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • Between 12:00 AM and 12:59 AM (* 0 * * *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label May 28, 2025
@renovate renovate Bot force-pushed the renovate/node-cron-4.x branch from a7c13ec to bd93c13 Compare May 31, 2025 01:33
@renovate renovate Bot force-pushed the renovate/node-cron-4.x branch from bd93c13 to 40ffeed Compare June 20, 2025 19:31
@renovate renovate Bot force-pushed the renovate/node-cron-4.x branch from 40ffeed to 659c2af Compare July 1, 2025 02:07
@renovate renovate Bot force-pushed the renovate/node-cron-4.x branch from 659c2af to 98a069f Compare July 10, 2025 21:08
@renovate renovate Bot force-pushed the renovate/node-cron-4.x branch from 98a069f to 30b7f3f Compare November 10, 2025 14:01
@renovate

renovate Bot commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: pnpm-lock.yaml
Progress: resolved 1, reused 0, downloaded 0, added 0
 WARN  deprecated discord.js@14.17.3: This version is deprecated. Please use a newer version
Progress: resolved 19, reused 0, downloaded 0, added 0
 ERROR  Command failed with exit code 128: git ls-remote git+ssh://git@github.com/Hypixel-API-Reborn/discord.js-docs.git HEAD
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This error happened while installing a direct dependency of /tmp/renovate/repos/github/Hypixel-API-Reborn/Support-Bot

pnpm: Command failed with exit code 128: git ls-remote git+ssh://git@github.com/Hypixel-API-Reborn/discord.js-docs.git HEAD
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
    at makeError (/opt/containerbase/tools/pnpm/9.9.0/24.17.0/node_modules/pnpm/dist/pnpm.cjs:19451:17)
    at handlePromise (/opt/containerbase/tools/pnpm/9.9.0/24.17.0/node_modules/pnpm/dist/pnpm.cjs:20022:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async getRepoRefs (/opt/containerbase/tools/pnpm/9.9.0/24.17.0/node_modules/pnpm/dist/pnpm.cjs:113428:23)
    at async resolveRef (/opt/containerbase/tools/pnpm/9.9.0/24.17.0/node_modules/pnpm/dist/pnpm.cjs:113440:20)
    at async resolveGit (/opt/containerbase/tools/pnpm/9.9.0/24.17.0/node_modules/pnpm/dist/pnpm.cjs:113380:24)
    at async Object.resolve (/opt/containerbase/tools/pnpm/9.9.0/24.17.0/node_modules/pnpm/dist/pnpm.cjs:113688:175)
    at async run (/opt/containerbase/tools/pnpm/9.9.0/24.17.0/node_modules/pnpm/dist/pnpm.cjs:132384:23)

@renovate renovate Bot force-pushed the renovate/node-cron-4.x branch 2 times, most recently from 9752dea to bc5eef5 Compare June 18, 2026 10:58
@renovate renovate Bot force-pushed the renovate/node-cron-4.x branch from bc5eef5 to a1e5e87 Compare June 21, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants