Skip to content

Bump croner from 4.0.2 to 5.0.1 - #932

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/croner-5.0.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/croner-5.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Bumps croner from 4.0.2 to 5.0.1.

Release notes

Sourced from croner's releases.

5.0.1

What's Changed

Full Changelog: Hexagon/croner-rust@v5.0.0...v5.0.1

5.0.0

Croner 5.0.0 Release Notes

Major Features & Dependency Changes

  • jiff 1.0 Support: Moved the optional jiff backend from jiff 0.2 to jiff 1.0 by @​microcd-dev (#79), issue reported by @​tgrecojr (#76). Croner now takes and returns jiff::ZonedDateTime.
  • no_std Support: Added no_std support behind a new std feature, enabled by default. Without it croner only needs alloc (#69), with further usability improvements in #82.
  • Fewer Dependencies: Replaced derive_builder and strum with hand-written code by @​AlphaJack (#61, merged via #80). A build with only the jiff feature now compiles 3 crates instead of 19.
  • Faster & Leaner: Parsing is about 8x faster and finding occurrences scans field bitfields directly by @​g4lb (#77). A parsed Cron keeps about 160 bytes of heap instead of 5.2 KB for a pattern like 0 0 * * MON-FRI.
  • Error Handling: Added CronIterator::last_error() to tell an iterator that stopped on an error apart from one that ran out of occurrences. CronIterator no longer prints to stderr. CronError now implements Clone, PartialEq, Eq and core::error::Error (also without std), and is re-exported as croner::CronError (#82).

Improvements, Bug Fixes & Refactoring

  • Stricter Name Parsing: Weekday names (MON…SUN) are only accepted in the day-of-week field and month names (JAN…DEC) only in the month field. Previously 0 0 * * jan silently ran on Mondays (#72, #73).
  • Bare L in Day-of-Week Rejected: A bare L in the day-of-week field is now rejected instead of silently dropped (0 0 * * L never matched) by @​bardrop (#75).
  • Long DST/Offset Gaps: Fixed fixed-time jobs failing with TimeSearchLimitExceeded when their wall clock time fell in a gap longer than two hours, such as the day Pacific/Apia skipped on 2011-12-30 (#84, #85).
  • Documentation: Corrected the README's description of fixed-time jobs in a DST gap that ends at midnight, issue reported by @​okarin2033 (#74, #83), and linked to the other Croner implementations (#71).
  • CronParserBuilder now implements Debug, Clone, Copy, PartialEq and Eq, and the crate is listed in the no-std crates.io category.

Breaking Changes & Migration Guide

Most code needs no changes if you use the default features (std and chrono) and your cron patterns only use weekday and month names in their own fields. For complete details, consult the https://github.com/hexagon/croner-rust/blob/HEAD/MIGRATION.md guide. Key breaking changes include:

  • jiff 1.0: The jiff feature now requires jiff 1.0. Upgrade jiff in your own dependencies and replace jiff::Zoned with jiff::ZonedDateTime:
[dependencies]
croner = { version = "5", default-features = false, features = ["std", "jiff"] }
jiff = "1"
  • Minimum Rust Version: Croner now requires Rust 1.85 or newer, with or without the jiff feature.
  • no_std Without Default Features: With default-features = false, croner is now no_std. Add the std feature to keep the previous behaviour, e.g. features = ["std", "jiff"].
  • Stricter Patterns: Weekday and month names outside their own fields now fail with CronError::IllegalCharacters, and a bare L in the day-of-week field fails with CronError::ComponentError. These patterns used to parse but ran on an unintended schedule (or never).
  • Removed APIs: The unused parser::CronParserBuilderError type has been removed. CronParserBuilder's methods are unchanged.

... (truncated)

Changelog

Sourced from croner's changelog.

[5.0.1] - 2026-11-25

Added

  • Added the parser option fixed_time_rule with parser::FixedTimeRule, matching the fixedTimeRule option of croner for JavaScript. It decides which jobs count as fixed-time jobs in DST handling. The default, FixedTimeRule::SingleValue, keeps the current rule: a single value in each of seconds, minutes and hours. FixedTimeRule::NoWildcard also counts lists and ranges without a wildcard or step, closer to Vixie cron, so 0 1,13 * * * runs once in a repeated (fall-back) hour instead of on both passes (#91).
  • Added CronPattern::fixed_time_rule().

Changed

  • Parsing a pattern without letters is about 2x faster, because the weekday and month name replacement is skipped for it.

Fixed

  • A day-of-week range of SUN-SUN now matches Sundays only. -SUN is read as 7 so that ranges like SAT-SUN work, which turned SUN-SUN into 0-7 and matched every day (e.g. 0 0 * * SUN-SUN ran daily). Ports Hexagon/croner#469 (#87, #88).
  • With alternative_weekdays (Quartz-style, SUN = 1), day-of-week ranges ending in SUN such as SAT-SUN and MON-SUN failed with "Range out of bounds.", because they became 7-1 and 2-1. As in Quartz, a day-of-week range whose end is before its start now wraps around the week in this mode, so SAT-SUN is Saturday and Sunday and FRI-MON is Friday to Monday. Numeric and stepped ranges wrap too (7-1, FRI-TUE/2). Standard mode and other fields are unchanged (#89).

[5.0.0] - 2026-11-22

This release has breaking changes. See https://github.com/Hexagon/croner-rust/blob/main/MIGRATION.md for how to upgrade from 4.x.

Added

  • Added no_std support through a new std feature, enabled by default. Without it croner only needs alloc (#69).
  • Added CronIterator::last_error(), which tells an iterator that stopped on an error (such as TimeSearchLimitExceeded) apart from one that ran out of occurrences.
  • CronError now implements Clone, PartialEq and Eq.
  • CronError implements core::error::Error, also without std. std::error::Error is the same trait, so nothing changes for std users.
  • CronError is re-exported at the crate root as croner::CronError. croner::errors::CronError still works.
  • CronParserBuilder now implements Debug, Clone, Copy, PartialEq and Eq.
  • Added the no-std crates.io category.

Changed

  • Breaking: the jiff feature now uses jiff 1.0 instead of jiff 0.2. jiff 1.0 renamed jiff::Zoned to jiff::ZonedDateTime, so croner now takes and returns jiff::ZonedDateTime, and code using the jiff feature must upgrade to jiff 1.0 as well. jiff 1.0 requires Rust 1.85. See https://github.com/Hexagon/croner-rust/blob/main/MIGRATION.md (#76).
  • Breaking: croner now requires Rust 1.85 or newer (rust-version is set in Cargo.toml), with or without the jiff feature. This matches jiff 1.0's minimum.
  • Breaking: with default-features = false, croner is now no_std. CronError keeps its Error impl, but serde is built without its std feature. Add the std feature to keep the previous behaviour, e.g. features = ["std", "jiff"].
  • Breaking: removed the unused parser::CronParserBuilderError type. CronParserBuilder is now written by hand instead of with derive_builder, which is no longer a dependency; its methods are unchanged.
  • Breaking: weekday and month names are only accepted in their own fields, and a bare L in the day-of-week field is rejected. Patterns that used to parse (and run on an unintended schedule) now return an error; see Fixed below.
  • Removed the strum dependency. The is_* methods on Seconds and Year are now hand-written, const, and otherwise unchanged (#61, #80). Together with the derive_builder removal, a build with only the jiff feature now compiles 3 crates (croner, jiff, jiff-core) instead of 19.
  • CronIterator no longer prints errors to stderr, with or without std. Use CronIterator::last_error() to see why an iterator stopped.
  • CronIterator's PartialEq, PartialOrd and Hash ignore last_error.
  • A parsed Cron keeps much less heap: about 160 bytes instead of 5.2 KB for a pattern like 0 0 * * MON-FRI, and parsing peaks at about 0.5 KB instead of 5.5 KB. A year field that is * (or left out) no longer stores one byte per year up to YEAR_UPPER_LIMIT. A pattern with an explicit year list or range still does. Equality, ordering and hashing of Cron, CronPattern and CronComponent are unchanged.
  • Parsing is about 8x faster, because a * field now sets its bits in one pass, and finding the next or previous occurrence scans the bits of a field directly (#77).

Fixed

  • Weekday names (MON…SUN) are now only accepted in the day-of-week field and month names (JAN…DEC) only in the month field. Names in any other field were silently read as the number they stand for (e.g. 0 0 * * jan ran on Mondays and mon * * * * at minute 1); such patterns now fail with CronError::IllegalCharacters (#72, #73).
  • A bare L in the day-of-week field is now rejected. It has no weekday to apply to, so it was silently dropped: 0 0 * * L never matched (find_next_occurrence ended in TimeSearchLimitExceeded) and 0 0 * * 1,L ran on Mondays only. Such patterns now fail with CronError::ComponentError. L after a weekday (5L, 5#L) and in day-of-month is unchanged (#75).
  • Fixed fixed-time jobs failing with CronError::TimeSearchLimitExceeded when their wall clock time fell in a gap longer than two hours, such as the whole day Pacific/Apia skipped on 2011-12-30. The end of a gap was searched one second at a time with a two-hour cap; it is now found by stepping out of the gap and bisecting back, so a gap of any length is crossed in a few dozen time zone lookups, and the documented gap rule applies (e.g. 0 12 * * * runs at 2011-12-31 00:00 +14:00, and 0 12 30 * * skips to 2012-01-30) (#84).

Documentation

  • Corrected the README's description of fixed-time jobs in a spring-forward DST gap. They run at the first valid time after the gap only if that time still matches the day, month and year fields. When the gap ends at midnight, that time is on the next calendar day: a daily job runs there, and a job restricted to the gap's day skips that occurrence (e.g. 30 23 30 * * in America/Nuuk has no run in March 2024) (#74).
  • The README's DST gap section now notes that the gap rule holds for gaps of any length, with Pacific/Apia on 2011-12-30 as an example (#84).

[4.0.3]

Fixed

... (truncated)

Commits
  • 7b4999e Merge pull request #92 from Hexagon/ccr-f69c670a-k0tvbq
  • 82cf6f0 Add fixed_time_rule parser option and bump to 5.0.1
  • 8fb9382 Merge pull request #90 from Hexagon/ccr-8008dcf7-ms7g1z
  • 3e2f00d Add changelog entry for #89
  • 6ae10d5 Merge remote-tracking branch 'origin/main' into ccr-8008dcf7-ms7g1z
  • 5f847e8 Add changelog entry for SUN-SUN fix
  • a6534c7 Merge pull request #88 from Hexagon/ccr-8008dcf7-ms7g1z
  • b069b0c Merge pull request #89 from Hexagon/ccr-8008dcf7-ms7g1z-quartz-sun-range
  • 3f8ee3b Gate chrono-based SUN-SUN test behind the chrono feature
  • 820c392 Wrap Quartz-style day-of-week ranges around the week
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [croner](https://github.com/hexagon/croner-rust) from 4.0.2 to 5.0.1.
- [Release notes](https://github.com/hexagon/croner-rust/releases)
- [Changelog](https://github.com/Hexagon/croner-rust/blob/main/CHANGELOG.md)
- [Commits](Hexagon/croner-rust@v4.0.2...v5.0.1)

---
updated-dependencies:
- dependency-name: croner
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Dec 1, 2026
@schmitch

schmitch commented Dec 2, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot attempted to update this pull request, but because the branch dependabot/cargo/croner-5.0.1 is protected it was unable to do so.

@dependabot @github

dependabot Bot commented on behalf of github Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Oh no! Something went wrong on our end. Please try again later.

If the problem persists, please contact GitHub support for assistance 🙇

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 rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant