Changelog
All notable changes to Vali-Range are documented here. Follows Keep a Changelog and Semantic Versioning.
[1.0.0] — 2025-07-01
Added
DateRangestruct representing a start/end date pair.ValiRangewith factory methods:Create,LastUnits,NextUnits,ThisMonth,ThisWeek,ThisQuarter,ThisYear.- Range queries:
Contains,Overlaps,IsContainedBy,Intersection,Union. - Range transformations:
Expand,Shrink,Shift,IsAdjacent,Merge,Gaps. - Enumeration helpers:
EachDay,EachWeek,EachMonth,EachWorkday. - Split helpers:
SplitByMonth,SplitByQuarter. AddValiRange()extension method forIServiceCollectionDI registration.
Performance
MergeusesCount == 0instead ofAny()to avoid unnecessary enumeration when checking for an empty collection.