Changelog
All notable changes to Vali-Schedule are documented here. Follows Keep a Changelog and Semantic Versioning.
[1.1.0] — 2025-10-07
Added
IValiSchedule.SkipWeekends()andSkipHolidays(IHolidayProvider, HolidaySkipStrategy)to exclude weekend/holiday occurrences, resolved viaNextWorkday(default),PreviousWorkday, orSkip.HolidaySkipStrategyenum.IValiSchedule.OccurrencePeriods(DateTime from, DateTime to)— pairs consecutive occurrences intoVali_Range.Models.DateRangeperiods.Vali_Schedule.Cron.CronSchedule— zero-dependency 5-field cron expression support (Parse/TryParse), implementingIValiSchedule. See Cron Expressions.Vali_Schedule.Cron.CronFormatException— field/token-attributed parse errors.
Changed
- Added the
net10.0target framework. - New cross-package dependencies:
Vali-Schedulenow referencesVali-HolidayandVali-Range. OnlySkipHolidays()requires a concreteIHolidayProvider;SkipWeekends()has no such requirement.
Fixed
OccurrencePeriodsonCronScheduleused to close its last period with.AddTicks(1)as the search start for the next occurrence — atCronSchedule's minute-granularity resolution this never escaped the current occurrence's slot, so the closing lookup re-returned the same occurrence instead of the real next one. Fixed to.AddMinutes(1).
[1.0.0] — 2025-07-01
Added
RecurrenceTypeenum with values:Daily,Weekly,Monthly,Yearly,Custom.ValiSchedulefluent builder with methods:Every,On,At,StartingFrom,EndsAfter,EndsOn,WithCustomPredicate.- Occurrence queries:
NextOccurrence,PreviousOccurrence,OccursOn. - Bulk enumeration:
Occurrences,OccurrencesInRange. AddValiSchedule()extension method forIServiceCollectionDI registration.
Performance
OccurrencesandOccurrencesInRangeuse an incremental counter to track recurrence index, avoiding repeated full-sequence scans when iterating large schedules.