Skip to content

Update dependency cron-parser to v5#671

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

Update dependency cron-parser to v5#671
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cron-parser-5.x

Conversation

@renovate

@renovate renovate Bot commented Feb 13, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cron-parser ^4.0.0 β†’ ^5.0.0 age confidence

Release Notes

harrisiirak/cron-parser (cron-parser)

v5.6.1

Compare Source

What's Changed

New Contributors

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

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

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: - TypeScript rewrite

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: (UTC)

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

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


  • 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 7 times, most recently from 4b62de2 to 3ee76b6 Compare February 18, 2025 23:10
@renovate renovate Bot force-pushed the renovate/cron-parser-5.x branch 10 times, most recently from 85cdd65 to cd48630 Compare March 1, 2025 01:28
@renovate renovate Bot force-pushed the renovate/cron-parser-5.x branch 11 times, most recently from e0daf18 to b0a9266 Compare March 8, 2025 13:14
@renovate renovate Bot force-pushed the renovate/cron-parser-5.x branch 2 times, most recently from dfe6d88 to 96c91f1 Compare March 11, 2025 01:48
@renovate renovate Bot force-pushed the renovate/cron-parser-5.x branch 13 times, most recently from a9085c7 to d796b66 Compare March 28, 2025 07:36
@renovate renovate Bot force-pushed the renovate/cron-parser-5.x branch 10 times, most recently from 8791f8f to b6dc051 Compare April 4, 2025 15:15
@renovate renovate Bot force-pushed the renovate/cron-parser-5.x branch 6 times, most recently from 44362e8 to ebf402c Compare April 7, 2025 06:16
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