Skip to content

chore(deps): bump croner from 11.0.0 to 11.0.1 - #153

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/croner-11.0.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/croner-11.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Bumps croner from 11.0.0 to 11.0.1.

Release notes

Sourced from croner's releases.

11.0.1

Croner 11.0.1 is a maintenance release that tightens up 11.0.0: stricter pattern parsing that rejects malformed input instead of guessing, a new fixedTimeRule option for Vixie-style DST handling of lists and ranges, faster job creation, and a round of fixes to previousRuns(), the interval option and early-year dates, many of them from first-time contributors.

Added

  • fixedTimeRule option, which selects which jobs are fixed-time jobs in DST handling. The default, "single-value", is unchanged and the same as croner-rust. With "no-wildcard", a job without a wildcard (* or ?) or step in seconds, minutes and hours is a fixed-time job, so 30 2,14 * * * runs at the end of a DST gap and once in a DST overlap, close to Vixie cron, reported by @​sscarduzio in #438.

Changed

  • previousRuns() without a reference counts from now, including the milliseconds, so called from 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, and previousRun() still gives the time it started. With the interval option, previousRuns() returns runs at least interval seconds before the reference, so not the run that just started.
  • Creating a job is 55-64% faster. Each pattern filled its 10,000-entry year array two times, and each job also parsed a default pattern that only date-based jobs use, by @​g4lb in #453.

Fixed

  • previousRuns() skipped a run in the same second as the reference when the reference had milliseconds, so * * * * * * from 00:00:05.500 returned 00:00:04 instead of 00: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 is not returned, the same as with a longer interval, by @​Kernel-Hunter in #454.
  • 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 too much.
  • A number in a pattern has to be digits only. What came after a number was ignored, so 3* meant 3, 15W5 meant 15W, 5#[#2](https://github.com/Hexagon/croner/issues/2) and 5L#2 meant 5 and 5#2, and an L anywhere in day-of-month was dropped, so 5L meant the 5th and the last day. These patterns throw now. Valid patterns are not affected, by @​simonkundrik in #451.
  • A month or day name has to stand alone in a pattern. It was replaced by its number wherever it was, so SUN6 meant 6, JANFEB meant 12 and */FRI meant */5. These patterns throw now. Valid patterns are not affected, by @​simonkundrik in #455.
  • The docs no longer say that DST handling is the same as Vixie cron for lists and ranges. Vixie cron treats them as fixed-time jobs, Croner treats them as interval jobs by default, reported by @​sscarduzio in #438.
  • @weekly with alternativeWeekdays: true threw RangeError: CronPattern: Invalid value for dayOfWeek: -1. It now runs on Sundays, as without the option and as in croner-rust.
  • Matching a day past the end of a month no longer skips valid runs when day-of-month and day-of-week conditions use OR logic, by @​mmporong in #437.
  • Calendar traversal preserves years 1-99 instead of interpreting them as 1901-1999, including weekday modifiers, leap days, local dates and timezone conversion, by @​mayankdhingra02 in #431.
  • A catch callback that returns a rejected promise (an async callback that throws) no longer causes an unhandled rejection. The callback is still not awaited, so a pending callback does not delay trigger() or keep a protected job busy. Thrown errors were ignored since #337, but only

... (truncated)

Changelog

Sourced from croner's changelog.

[11.0.1] - 2026-11-14

Added

  • fixedTimeRule option, which selects which jobs are fixed-time jobs in DST handling (#438). The default, "single-value", is unchanged and the same as croner-rust. With "no-wildcard", a job without a wildcard (* or ?) or step in seconds, minutes and hours is a fixed-time job, so 30 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 called from 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, and previousRun() still gives the time it started. With the interval option, previousRuns() returns runs at least interval seconds before the reference, so not the run that just started.
  • Creating a job is 55-64% faster. Each pattern filled its 10,000-entry year array two times, and 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 had milliseconds, so * * * * * * from 00:00:05.500 returned 00:00:04 instead of 00: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 is not 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 too much.
  • A number in a pattern has to be digits only. What came after a number was ignored, so 3* meant 3, 15W5 meant 15W, 5#[#2](https://github.com/Hexagon/croner/issues/2) and 5L#2 meant 5 and 5#2, and an L anywhere in day-of-month was dropped, so 5L meant the 5th and the last day. These patterns throw now. Valid patterns are not affected.
  • A month or day name has to stand alone in a pattern. It was replaced by its number wherever it was, so SUN6 meant 6, JANFEB meant 12 and */FRI meant */5. These patterns throw now. Valid patterns are not affected.
  • The docs no longer say that DST handling is the same as Vixie cron for lists and ranges. Vixie cron treats them as fixed-time jobs, Croner treats them as interval jobs by default (#438).
  • @weekly with alternativeWeekdays: true threw RangeError: CronPattern: Invalid value for dayOfWeek: -1. It now runs on Sundays, as without the option and as in croner-rust.
  • Matching a day past the end of a month no longer skips valid runs when day-of-month and day-of-week conditions use OR logic (#437).
  • Calendar traversal preserves years 1-99 instead of interpreting them as 1901-1999, including weekday modifiers, leap days, local dates and timezone conversion.
  • A catch callback that returns a rejected promise (an async callback that throws) no longer causes an unhandled rejection. The callback is still not awaited, so a pending callback does not delay trigger() or keep a protected job busy. Thrown errors were ignored since #337, but only when thrown synchronously (#427).
  • previousRuns() no longer skips nearest weekday (W) days that fall after the highest plain day-of-month in the pattern. With 0 0 0 15,30W * *, only the 15th was found when going

... (truncated)

Commits
  • bee697a Merge pull request #460 from Hexagon/dev
  • bfa5fdb Merge pull request #465 from Hexagon/lw-list-error
  • 07bd25f Merge pull request #464 from Hexagon/changelog-release-date
  • 901b8c6 Say that LW can not be in a list in day-of-month
  • 10af829 Set the 11.0.1 release date in the changelog
  • 665eac6 Merge pull request #461 from Hexagon/claude/previous-runs-interval-one
  • 4515b78 Merge pull request #462 from Hexagon/claude/year-one-boundary
  • dae0255 fix: stop previousRuns() at year 1, and use the job's year for the interval l...
  • 7e90569 fix: keep an interval of one second in previousRuns() from a fractional refer...
  • 03ae447 Merge pull request #459 from Hexagon/ccr-27ce6fd5-9nxgpq
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from NSchatz as a code owner November 28, 2026 19:13
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 28, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/croner-11.0.1 branch from 6532425 to 483c407 Compare November 29, 2026 22:54
Bumps [croner](https://github.com/Hexagon/croner) from 11.0.0 to 11.0.1.
- [Release notes](https://github.com/Hexagon/croner/releases)
- [Changelog](https://github.com/Hexagon/croner/blob/master/CHANGELOG.md)
- [Commits](Hexagon/croner@11.0.0...11.0.1)

---
updated-dependencies:
- dependency-name: croner
  dependency-version: 11.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/croner-11.0.1 branch from 483c407 to 004984c Compare November 30, 2026 05:37

This branch has not been deployed

No deployments
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 javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants