Skip to content

Update dependency cron-parser to v5 - #31

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cron-parser-5.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cron-parser-5.x

Conversation

@renovate

@renovate renovate Bot commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cron-parser ^4.9.0 → ^5.0.0 age confidence

Release Notes

harrisiirak/cron-parser (cron-parser)

v5.10.6

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.10.5...v5.10.6

v5.10.5

Compare Source

What's Changed
New Contributors

Full Changelog: harrisiirak/cron-parser@v5.10.4...v5.10.5

v5.10.4

Compare Source

What's Changed
New Contributors

Full Changelog: harrisiirak/cron-parser@v5.10.3...v5.10.4

v5.10.3

Compare Source

What's Changed
New Contributors

Full Changelog: harrisiirak/cron-parser@v5.10.2...v5.10.3

v5.10.2

Compare Source

What's Changed
New Contributors

Full Changelog: harrisiirak/cron-parser@v5.10.1...v5.10.2

v5.10.1

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.10.0...v5.10.1

v5.10.0

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.9.0...v5.10.0

v5.9.0

Compare Source

What's Changed
New Contributors

Full Changelog: harrisiirak/cron-parser@v5.8.1...v5.9.0

v5.8.1

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.8.0...v5.8.1

v5.8.0

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.7.0...v5.8.0

v5.7.0

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.6.1...v5.7.0

v5.6.2

Compare Source

[!WARNING]
The npm package published for this version does not contain these fixes. The tarball was built from a stale dist/ and shipped the 5.6.1 source tree, so #​414 and #​415 are not present in cron-parser@5.6.2. This version is deprecated on npm - use 5.7.0 instead.

What's Changed
  • fix: enforce iteration loop limit so unsatisfiable expressions throw instead of returning a bogus date by @​spokodev in #​415
  • fix: do not drop a matching day of month when the day of week uses an nth (#) occurrence by @​spokodev in #​414

Full Changelog: harrisiirak/cron-parser@v5.6.1...v5.6.2

v5.6.1

Compare Source

[!WARNING]
The npm package published for this version does not contain these fixes. The tarball was built from a stale dist/ and shipped the 5.6.1 source tree, so #​414 and #​415 are not present in cron-parser@5.6.2. This version is deprecated on npm - use 5.7.0 instead.

What's Changed
  • fix: enforce iteration loop limit so unsatisfiable expressions throw instead of returning a bogus date by @​spokodev in #​415
  • fix: do not drop a matching day of month when the day of week uses an nth (#) occurrence by @​spokodev in #​414

Full Changelog: harrisiirak/cron-parser@v5.6.1...v5.6.2

v5.6.0

Compare Source

What's Changed

New Contributors

Full Changelog: harrisiirak/cron-parser@v5.5.0...v5.6.0

v5.5.0

Compare Source

What's Changed
New Contributors

Full Changelog: harrisiirak/cron-parser@v5.4.0...v5.5.0

v5.4.0

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.3.1...v5.4.0

v5.3.1

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.3.0...v5.3.1

v5.3.0

Compare Source

What's Changed

Full Changelog: harrisiirak/cron-parser@v5.2.0...v5.3.0

v5.2.0

Compare Source

What's Changed
Breaking Changes
  • #​379 changed CronField constructor signature and removed nthDayOfWeek field from CronExpressionOptions. See PR for more details.
New Contributors

Full Changelog: harrisiirak/cron-parser@v5.1.1...v5.2.0

v5.1.1

Compare Source

  • e6b0046 - Fix last day of month handling when explicit month is set (#​375)
  • a306f80 - Update luxon to the latest (3.6.1) version
  • 099bc28 - Update development dependencies to the latest versions

v5.1.0

Compare Source

  • #​374 - Improve handling and support for special characters (L, #) in the includesDate method

v5.0.6

Compare Source

  • 8f2081e - Simplify strict mode flag usage in getRawFields
  • 6599e15 - Update strict mode documentation

v5.0.5

Compare Source

  • 38a8458 - Restore 4.x compatibility and use the current timezone for currentDate instead of setting it to UTC (#​370)

v5.0.4

Compare Source

v5.0.3

Compare Source

  • e0bda7e - Parse field for day of week should allow 0 or SUN values (#​366)

v5.0.2

Compare Source

v5.0.1

Compare Source

This first patch release contains couple of quick bugfixes that were reported after the first release of v5. Thanks for everybody that tried the new version out and provided some feedback.

  • 9b1e0f3 - Removed unused jest-runner-tsd dev dependency (#​361)
  • 683f585 - Use dynamic loading for fs and fs/promises to restore ability to use this package in the browser environment (#​362)
  • 5e10db0 - Remove assert module usage (can't be used in the browser environment without polyfill or included extra package) and improve/add test cases (#​364)
  • 7ca5c94 - Remove unused .npmignore
  • 9ddf705 - Fix benchmarking tool for module interface

v5.0.0

Compare Source

All changes come from #​360

Changelog
  • BREAKING CHANGE: Bumped the minimum Node.js version to >= 18 and TypeScript to >= 5.
  • BREAKING CHANGE: interval.fields (CronExpression.interval) now returns a readonly instance of CronFieldsCollection instead of a regular array. See CronFieldsCollection.from for how to modify the underlying data structure.
  • BREAKING CHANGE: Moved crontab file parsing from CronParser to a standalone CronFileParser class (fixes #​112).
  • BREAKING CHANGE: Removal of utc flag from the options. Pass in UTC timezone instead.
  • Refactored the codebase to TypeScript (fixes #​190).
  • Cleaned up test suites, removed duplicate test cases, and switched from tap to jest.
  • Improved documentation and introduced documentation generated by typedoc (fixes #​309, #​322, #​269).
  • Added benchmark tooling to help detect future performance regressions.
  • Added CronExpression.includesDate to evaluate whether a given date matches the pattern (closes #​299).
  • Fixed issues where certain range and repeat field expressions produced invalid intervals (fixes #​156).
  • Fixed an issue with day-of-month handling when the range is explicitly set and no wildcard is used (fixes #​284).
  • Improved repeat serialization for stringification (fixes #​236).
Performance improvements

While this release won't address the performance issues reported in #​287, it will bring some performance improvements of around 20-30% on average, depending on the pattern complexity. The following benchmark results were produced on my 2023 MBP.

┌────────────────────┬────────────┬────────────┬──────────┬─────┐
│ Pattern            │   Old Mean │   New Mean │   Change │     │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ * * * * * *        │    73.55ms │    37.43ms │   49.10% │  ↑  │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ 0 * * 1,4-10,L * * │  3504.51ms │  2338.42ms │   33.27% │  ↑  │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ 10-30/2 2 12 8 0   │  3111.18ms │  2234.32ms │   28.18% │  ↑  │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ 0 0 0 * * 4,6L     │  9400.33ms │  6825.61ms │   27.39% │  ↑  │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ 0 12 */5 6 *       │  7442.68ms │  5645.95ms │   24.14% │  ↑  │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ 0 15 */5 5 *       │  6998.87ms │  5443.22ms │   22.23% │  ↑  │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ 0 0 6-20/2,L 2 *   │  8832.87ms │  6947.63ms │   21.34% │  ↑  │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ 0 0 0 * * 1L,5L    │ 15416.07ms │ 12474.12ms │   19.08% │  ↑  │
├────────────────────┼────────────┼────────────┼──────────┼─────┤
│ 10 2 12 8 7        │  7105.79ms │  5947.91ms │   16.29% │  ↑  │
└────────────────────┴────────────┴────────────┴──────────┴─────┘

Benchmarks can be run locally by executing the command.:

npm run bench

Individual patterns can be benchmarked by executing bench:pattern command:

npm run bench:pattern "* * * * * *"

Configuration

📅 Schedule: (in timezone America/Los_Angeles)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • 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 force-pushed the renovate/cron-parser-5.x branch from 1cfa7cd to a83a8ab Compare April 8, 2026 14:55
@renovate renovate Bot changed the title fix(deps): update dependency cron-parser to v5 Update dependency cron-parser to v5 Apr 8, 2026
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from a83a8ab to 79b974f Compare April 29, 2026 10:10
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch 2 times, most recently from 585cba0 to 30ef519 Compare May 18, 2026 14:53
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch 2 times, most recently from 266b421 to 6435e1d Compare June 1, 2026 22:31
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from 6435e1d to 463b41f Compare June 11, 2026 15:44
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from 463b41f to 1397c93 Compare June 27, 2026 20:42
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from 1397c93 to 52aa807 Compare July 12, 2026 11:58
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from 52aa807 to a6939db Compare July 20, 2026 19:37
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from a6939db to d74920f Compare August 4, 2026 20:31
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch 2 times, most recently from 79a7c66 to 485f704 Compare August 16, 2026 22:13
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from 485f704 to cd8f50f Compare August 26, 2026 16:09
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from cd8f50f to 891387b Compare September 15, 2026 20:05
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from 891387b to bb90e5e Compare September 25, 2026 02:45
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from bb90e5e to bc28748 Compare October 12, 2026 12:52
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch 3 times, most recently from a8c216e to b61beb8 Compare November 15, 2026 17:00
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch 4 times, most recently from a43502d to bccab89 Compare November 26, 2026 17:02
@renovate
renovate Bot force-pushed the renovate/cron-parser-5.x branch from bccab89 to d67dc3d Compare November 28, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants