Skip to main content

Changelog

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


[1.0.0] — 2025-07-01

Added

  • CalendarWeek struct representing an ISO week with its year, week number, start date, and end date.
  • ValiCalendar with workday utilities: IsWorkday, WorkdaysBetween, AddWorkdays, NextWorkday, PreviousWorkday.
  • Week utilities: WeekOf, WeeksInMonth.
  • Month and year aggregates: WorkdaysInMonth, WorkdaysInYear, HolidaysInMonth, HolidaysInYear.
  • Optional IHolidayProvider integration to exclude holidays from workday calculations.
  • AddValiCalendar() extension method for IServiceCollection DI registration.

Performance

  • WeeksInMonth uses a static readonly GregorianCalendar instance to avoid repeated allocations on each call.