Skip to main content

Changelog

All notable changes to Vali-Range are documented here. Follows Keep a Changelog and Semantic Versioning.


[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.