Changelog
All notable changes to Vali-Age are documented here. Follows Keep a Changelog and Semantic Versioning.
[1.1.0]
Added
Humanize()relative-time formatting (es/en) viaHumanizeEngine, built onVali-Time'sHumanizeCulture.- Stateless
DateTime.Humanize(...)extension method (Vali_Age.Extensions.DateTimeHumanizeExtensions) delegating to the same internal engine — no DI required. net10.0target framework.
Changed
- Temporarily depends on
Vali-Time's source viaProjectReferenceinstead of aPackageReference, becauseHumanizeCulturedoesn't exist in the publishedVali-Time1.0.1 package yet — switches toPackageReference Version="1.1.0"onceVali-Timerepublishes.
[1.0.0] — 2025-07-01
Added
AgeResultstruct withYears,Months,Days, andTotalDaysproperties.ValiAgewith age calculation methods:Years,Exact.- Formatting helpers:
FormatandRelative. - Birthday utilities:
IsBirthday,NextBirthday,DaysUntilBirthday. - Threshold check:
IsAtLeast. - Correct handling of February 29 birthdays in non-leap years (resolved to Feb 28).
AddValiAge()extension method forIServiceCollectionDI registration.
Fixed
NextBirthdaynow correctly advances to the following year when the birthday has already occurred in the current year, instead of returning a past date.