Releases: spatie/opening-hours
Releases · spatie/opening-hours
2.1.0: Handle consecutive ranges
2.1.0-beta.1: Handle consecutive ranges
2.0.0
- Added support for immutable dates
- Allowed to add meta-data to global/exceptions config, days config, ranges settings via
setData()
andgetData()
- Allowed dynamic opening hours settings
- Added
TimeRange::fromArray()
andTimeRange::fromDefinition()
(to support array of hours+data or string[] or string) - Added
setFilters()
andgetFilters()
⚠ Breaking changes:
nextOpen()
andnextClose()
return type changed forDateTimeInterface
as it can now returnDateTimeImmutable
tootoDateTime()
changed both input type and return type forDateTimeInterface
as it can now take and returnDateTimeImmutable
too
2.0.0-beta.1
- Added support for immutable dates
- Allowed to add meta-data to global/exceptions config, days config, ranges settings via
setData()
andgetData()
- Allowed dynamic opening hours settings
- Added
TimeRange::fromArray()
andTimeRange::fromDefinition()
(to support array of hours+data or string[] or string) - Added
setFilters()
andgetFilters()
⚠ Breaking changes:
nextOpen()
andnextClose()
return type changed forDateTimeInterface
as it can now returnDateTimeImmutable
tootoDateTime()
changed both input type and return type forDateTimeInterface
as it can now take and returnDateTimeImmutable
too
1.9.0
1.8.1
- overspilling timerange will now contain start time
1.8.0
- Added
nextClose
1.7.0
- Added additional helpers on
Time
1.6.0
- Added the ability to pass a
DateTime
instance to mutate toTime::toDateTime
1.5.0
- Added
OpeningHours::forWeekCombined()