Skip to content

Releases: spatie/opening-hours

4.1.2

18 Dec 12:39
6c90d8c
Compare
Choose a tag to compare

What's Changed

Full Changelog: 4.1.1...4.1.2

4.1.1

11 Dec 10:19
7dde181
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.1.0...4.1.1

4.1.0

27 Nov 11:04
e7b4a12
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.0.3...4.1.0

4.0.3

17 Nov 13:01
773ab4f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 4.0.2...4.0.3

4.0.2

24 Oct 13:49
5a031ad
Compare
Choose a tag to compare

What's Changed

Full Changelog: 4.0.1...4.0.2

4.0.1

19 Oct 17:51
11f7e02
Compare
Choose a tag to compare

What's Changed

  • Allow date without year in validFrom/validTo structured data

Full Changelog: 4.0.0...4.0.1

4.0.0

26 Jun 08:01
48b4532
Compare
Choose a tag to compare

What's Changed

  • Replace getData() with readonly property ->data
  • Added isAlwaysOpen() and isAlwaysClosed() methods
  • Converted Day to an enum
  • Made Time and TimeRange readonly
  • Support OpeningHoursSpecification structured data for creating OpeningHours by @ambroisemaupate in #232
  • Improve createFromStructuredData() by @kylekatarnls in #237
  • Update PHPUnit from 10 to 11 and multiple testing tools by @Chris53897 in #246 #245 #244
  • Check both start and end to consider a range before/after by @kylekatarnls in #251
  • Drop PHP < 8.2

New Contributors

Full Changelog: 3.0.0...4.0.0

3.0.0

12 Nov 10:29
67ebe77
Compare
Choose a tag to compare
  • Add Time::date() method
  • Add DateTimeRange class
  • Add ranges support via to or - separator
  • Deprecate fill() and setData()
  • Remove setFilters()
  • Drop PHP < 7.4

2.41.0: Cap holidays check to end date when calculating diff

12 Jun 19:56
2113e28
Compare
Choose a tag to compare

Cap holidays check to end date when calculating diff

2.13.0: Make comparison microsecond-precise

07 Aug 15:48
befffe9
Compare
Choose a tag to compare

Make comparison microsecond-precise