Almost a year has passed since the release of v1.8.0, but finally it is here: Yasumi v2.0.0!
Upgraded entirely to PHP version 7 with PHP 7.1 being the minimum required version. Base code and all unit tests have been reworked to compatibility with PHP 7. This also means support of PHP 5 has now come to an end.
More details can be found in the blog entry here: Welcome Yasumi version 2!
Implemented enhancements:
- New filter to select holidays that happen on a given date #119 (cruxicheiros)
- Holiday Providers for all Australian states and territories. #112 (Milamber33)
- Holiday Provider for Bosnia. #94 (TheAdnan)
- Added Reformation Day as offical holiday since 2018 in Lower Saxony (Germany). #115 (Taxcamp)
- Added Reformation Day as offical holiday since 2018 in Schleswig-Holstein (Germany). #106 (HenningCash)
- Added Reformation Day as offical holiday since 2018 in Hamburg (Germany). #108 (HenningCash)
- Added Reformation Day as offical holiday since 2018 in Bremen (Germany). #116 (TalonTR)
- The (observed) holidays Lukkeloven, Constitution Day, New Year's Eve and Labour Day, as well as summertime and wintertime are included for Denmark #104 (c960657)
- Upgraded to PHPUnit to version 7.5.
- Changed Japanese holiday for the 2020 Olympic Games. Marine Day, Mountain Day and Health And Sports Day. #113 (cookie-maker)
- Summer/winter time is now fetched from PHP's tz database. #103 (c960657)
- Changed translation for Norway's national day. #98 (c960657)
- Applied proper null checks in the summertime and wintertime calculations for Denmark and The Netherlands.
- Corrected some namespaces for Australia and Germany.
- Updated copyright year.
- Upgraded various dependency packages.
- Internal locale list updated based on CLDR v34.
- Refactored the Japan and USA Holiday Provider by moving the holiday calculations to private methods. This reduced the complexity of the initialize method.
Resolved issues
- Translation for Russia showed in English (except New Year's Day) as the proper locale was not in place.
- Fixed issue for summertime in Denmark in 1980. By default summertime in Denmark is set for the last day of March since 1980, however in 1980 itself, it started on April, 6th.
- Fixed spelling issue in the Swedish translation. #97 (c960657)
- Fixed spelling issues in the Danish translation. #96 (c960657)
- Fixed German Easter Sunday and Pentecost Sunday holidays (not nationwide, only in Brandenburg). #100 (TalonTR)
- Fixed BetweenFilter to ignore time part and timezone. #101 (c960657)
- Fixed bug in provider list generation related to variable order of files returned by the filesystem #107 (leafnode)