chore(deps): update dependency node-cron to v4.4.1#271
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
eee228b to
194fa04
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.2.1→4.4.1Release Notes
merencia/node-cron (node-cron)
v4.4.1Compare Source
Changed
distributedTtloption todistributedLease(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.distributedTtlwas introduced in 4.4.0 and is removed without an alias.v4.4.0Compare Source
Added
ScheduledTask:getNextRuns(n)(preview the next Nrun times),
match(date),msToNext(),isBusy(),runsLeft()andgetPattern(). ([#547])cron.parse(expression)andcron.validateDetailed(expression):decompose an expression into its fields, or get every field-level problem
(without throwing) for tooling and richer error messages. ([#548])
distributed: trueruns a task on asingle instance per fire across a fleet. Ships a built-in
NODE_CRON_RUNenv-var default (one designated runner, no dependencies) and a pluggable
RunCoordinator(viasetRunCoordinator, or the per-taskrunCoordinatoroption) for high-availability, per-fire coordination (e.g. a Redis lock).
Adds the
distributedTtloption and anexecution:skippedevent carrying areason('not-elected'|'coordinator-error'). Works for inline andbackground tasks. ([#549])
Fixed
getNextMatchno longer scans every time of day on a day that matches theday-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
milisecond→millisecondspelling and theconvertion/→conversion/directory name.v4.3.0Compare 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])missedExecutionToleranceoption (ms, default1000): a heartbeat thatwakes 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])
startTimeoutoption for background tasks (ms, default5000). ([#535])Fixed
getNextMatch: no more ~1-year overshoot when a daily timefalls in the spring-forward gap. ([#518])
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])
skipped runs on daily/weekly schedules. ([#485])
Changed
>= 20.11); tested on Node20, 22 and 24.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.