Changelog
All notable changes to Vali-Range are documented here. Follows Keep a Changelog and Semantic Versioning.
[1.1.0] — 2026-10-14
Added
IValiRange.Subtract(DateRange a, DateRange b)— set-theoretic difference A \ B, completing the Intersection/Union/Subtract trio.
Changed
- Added
net10.0target framework. Still pinsVali-Timeat 1.0.1 — doesn't need any of its newer members.
[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.