Repository navigation
chore(deps): Update dependency croner to v11.0.1 (main) - #615
Merged
Merged
Conversation
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:
11.0.0→11.0.1Release Notes
Hexagon/croner (croner)
v11.0.1Compare Source
Added
fixedTimeRuleoption, which selects which jobs are fixed-time jobs in DST handling (#438). Thedefault,
"single-value", is unchanged and the same as croner-rust. With"no-wildcard", a jobwithout a wildcard (
*or?) or step in seconds, minutes and hours is a fixed-time job, so30 2,14 * * *runs at the end of a DST gap and once in a DST overlap, close to Vixie cron.Changed
previousRuns()without a reference counts from now, including the milliseconds, so calledfrom inside a callback it returns the run that just started. Before, it returned the run before
that.
previousRuns(2)[1]gives the scheduled time of the run before, andpreviousRun()stillgives the time it started. With the
intervaloption,previousRuns()returns runs at leastintervalseconds before the reference, so not the run that just started.each job also parsed a default pattern that only date-based jobs use.
Fixed
previousRuns()skipped a run in the same second as the reference when the reference hadmilliseconds, so
* * * * * *from00:00:05.500returned00:00:04instead of00:00:05.This also applies to a string reference in a named timezone, whose milliseconds were dropped.
With
interval: 1, the run in the same second is less than a second before the reference and isnot returned, the same as with a longer interval.
msToNext()from a string reference in a named timezone, such as"2025-01-02T00:00:05.500Z"with
timezone: "UTC", dropped the milliseconds of the reference and returned up to 999 ms toomuch.
3*meant3,15W5meant15W,5##​2and5L#2meant5and5#2, and anLanywhere inday-of-month was dropped, so
5Lmeant the 5th and the last day. These patterns throw now. Validpatterns are not affected.
was, so
SUN6meant6,JANFEBmeant12and*/FRImeant*/5. These patterns throw now.Valid patterns are not affected.
cron treats them as fixed-time jobs, Croner treats them as interval jobs by default (#438).
@weeklywithalternativeWeekdays: truethrewRangeError: CronPattern: Invalid value for dayOfWeek: -1. It now runs on Sundays, as without the option and as in croner-rust.day-of-week conditions use OR logic (#437).
weekday modifiers, leap days, local dates and timezone conversion.
catchcallback that returns a rejected promise (anasynccallback that throws) no longercauses an unhandled rejection. The callback is still not awaited, so a pending callback does not
delay
trigger()or keep aprotected job busy. Thrown errors were ignored since #337, but onlywhen thrown synchronously (#427).
previousRuns()no longer skips nearest weekday (W) days that fall after the highest plainday-of-month in the pattern. With
0 0 0 15,30W * *, only the 15th was found when goingbackwards into a new month.
intervaloption now counts elapsed time, so a DST change in between no longer shortens orstretches it. Before, the interval was added to the wall clock: after a spring forward the next
run could come minutes after the last one instead of
intervalseconds, in a repeated hour itignored the interval, and a 24 hour interval gave 23 or 25 hours.
previousRuns()stops at year 1, the first supported year. With a named timezone, a search thatreached year 0 took minutes for a job that runs every second, and without one it returned runs
in year 0.
intervaloption near year 1 or year 9999 uses the year in the timezone of the job. Theyear in UTC was used, so
nextRun()could returnnullin the hours around new year.LWin a day-of-month list, such as1W,15W,LW, throws an error that saysLWcan not be in alist. The error said that
Lhas to be a value of its own.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.