Repository navigation
v8.2.0
Changes
- feat(null-object): ✨ Return NullObjects from time and coordinate classes
Release details
- npm: https://www.npmjs.com/package/@haskou/value-objects/v/8.2.0
- Pull request: #88
- Source branch:
feat/null-safe-time-coordinates - Version bump:
minor
Pull request notes
Day, Hour, Duration, CalendarDay, MonthOfYear, TimestampInterval, Latitude, Longitude and Coordinates threw TypeError on nullish input, unlike the rest of the package. They now return a NullObject. MonthOfYear.fromString validates the year/month shape explicitly with InvalidFormatError. Includes tests and docs.