Skip to content

Releases: spatie/opening-hours

2.1.0-beta.1: Handle consecutive ranges

15 Feb 11:00
4031753
Compare
Choose a tag to compare
Pre-release
  • Fixed #88 Opening hours across Midnight
  • Fixed #89 Data support for next open hours
  • Implemented #93 Enable PHP 8

2.0.0

13 Dec 07:54
f725af1
Compare
Choose a tag to compare
  • Added support for immutable dates
  • Allowed to add meta-data to global/exceptions config, days config, ranges settings via setData() and getData()
  • Allowed dynamic opening hours settings
  • Added TimeRange::fromArray() and TimeRange::fromDefinition() (to support array of hours+data or string[] or string)
  • Added setFilters() and getFilters()

⚠ Breaking changes:

  • nextOpen() and nextClose() return type changed for DateTimeInterface as it can now return DateTimeImmutable too
  • toDateTime() changed both input type and return type for DateTimeInterface as it can now take and return DateTimeImmutable too

2.0.0-beta.1

12 Dec 08:01
f725af1
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release
  • Added support for immutable dates
  • Allowed to add meta-data to global/exceptions config, days config, ranges settings via setData() and getData()
  • Allowed dynamic opening hours settings
  • Added TimeRange::fromArray() and TimeRange::fromDefinition() (to support array of hours+data or string[] or string)
  • Added setFilters() and getFilters()

⚠ Breaking changes:

  • nextOpen() and nextClose() return type changed for DateTimeInterface as it can now return DateTimeImmutable too
  • toDateTime() changed both input type and return type for DateTimeInterface as it can now take and return DateTimeImmutable too

1.9.0

07 Dec 11:19
Compare
Choose a tag to compare
  • Allow to merge overlapping hours #43
  • Fix nextOpen() and nextClose() consecutive calls #73

1.8.1

18 Oct 22:14
5f72cb5
Compare
Choose a tag to compare
  • overspilling timerange will now contain start time

1.8.0

17 Sep 13:34
68ddc8e
Compare
Choose a tag to compare
  • Added nextClose

1.7.0

02 Aug 06:58
1b6eed8
Compare
Choose a tag to compare
  • Added additional helpers on Time

1.6.0

26 Mar 08:51
Compare
Choose a tag to compare
  • Added the ability to pass a DateTime instance to mutate to Time::toDateTime

1.5.0

26 Feb 10:05
Compare
Choose a tag to compare
  • Added OpeningHours::forWeekCombined()

1.4.0

15 Sep 10:14
Compare
Choose a tag to compare
  • Added the ability to add recurring exceptions