Skip to main content

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.0 target framework. Still pins Vali-Time at 1.0.1 — doesn't need any of its newer members.

[1.0.0] — 2025-07-01​

Added​

  • DateRange struct representing a start/end date pair.
  • ValiRange with 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 for IServiceCollection DI registration.

Performance​

  • Merge uses Count == 0 instead of Any() to avoid unnecessary enumeration when checking for an empty collection.