Changelog History
Page 2
-
v1.6.0 Changes
January 06, 2017๐ We start the new year with a new release, in which we welcome Austria, Ireland, Romania and South Africa to the Yasumi family. Also Yasumi hit the 8000 mark in the first week of 2017: over 8000 times Yasumi has been installed already!
๐ Again, thank you all for your contributions and fixes!
Implemented enhancements:
- โ Added Holiday Provider for Romania. #52 (AngelinCalu)
- โ Added Holiday Provider for Ireland. stelgenhof
- โ Added Holiday Provider for South Africa. stelgenhof
- โ Added Holiday Provider for Austria. stelgenhof
- ๐จ Refactored the calculation of Orthodox Easter using the function from ChristianHolidays.php. #47 (AngelinCalu)
- โ Added 'en_US' translations for the Polish Independence Day and Constitution Day. #45 (AngelinCalu)
Resolved issues:
- The parameters of the
isHoliday
andisWorkingDay
methods now allow for classes that derive from DateTime (like the very popular Carbon class). #49 (stelgenhof)
-
v1.5.0 Changes
November 25, 2016๐ Being occupied with other projects is good but has the side effect some others don't get the attention they deserve (sorry Yasumi). However, happy to announce a new release of Yasumi with 4 new countries added and holiday providers for all the German states.
โ Yasumi now supports 62 holiday providers (23 countries and 39 sub-regions) and has over 1500 unit tests ensuring all holidays are calculated correctly.
๐ Big thanks to all the contributors making Yasumi better and more complete!
Implemented enhancements:
- โ Added Holiday Provider for Australia (and the sub-region of Victoria). #38 (brucealdridge)
- โ Added Holiday Provider for Portugal. #44 (rvelhote)
- โ Added Holiday Provider for Ukraine. #41 (madmis)
- โ Added Holiday Providers for all 16 German States. #34 (stelgenhof)
- โ Added Holiday Provider for Croatia. #32 (karlomikus)
- Possibility to retrieve the next or previous working day within a defined number of days from today #39 (brucealdridge)
- You can now also use your own holiday providers in addition to the included holiday providers. A very helpful improvement if Yasumi does not include your provider (yet), but you want to use yours! #29 (navarr)
Resolved issues:
- Carnival Day in Brazil was incorrectly set to be 47 days after Easter. Carnival Day begins Friday before Ash Wednesday (51 days to Easter). #36 (icaroce)
- All Saints Day for Finland was incorrectly set for November 1st. The correct date is Saturday between 31 Oct and 6 Nov, similar to Sweden. #43 (stelgenhof)
-
v1.4.0 Changes
June 04, 2016โ Added
- โ Added Holiday Provider for Brazil. #21 (dorianneto)
- โ Added Holiday Provider for the Czech Republic. #26 (dfridrich)
- โ Added Holiday Provider for the United Kingdom. #23 (stelgenhof)
- โ Add Welsh language (spoken in Wales, UK) translations for the holidays in the United Kingdom #25 (meigwilym)
- To determine a set of holidays between two dates you can now use the aptly named 'between()' method.
๐ Changed
- All Holiday Provider must now implement a code that will identify it. Typically, this is the ISO3166 code corresponding to the respective country or sub-region. This can help for purposes such as translations or interfacing with other API's for example.
๐ Fixed
- ๐ Fixed an issue with the unit test for the 'getProviders' method failing on Windows. Hardcoded unix-style directory separators have been replaced by DIRECTORY_SEPARATOR. #30 (navarr)
- ๐ Corrected a typo in the English translation for ๆฌ่ใฎๆฅ ( Japan) #22 (navarr)
- ๐ Fixed issue that the unit tests in 'YasumiTest' (methods 'next' and 'previous') did not cover the situations that the limits are exceeded. #28
-
v1.3.0 Changes
May 02, 2016โ Added
- โ Added Holiday Provider for Poland. #18 (mpdx)
- โ Added Holiday Provider for New Zealand. #13 (badams)
- โ Added Holiday Provider for Greece. #10 (sebdesign)
- โ Added Holiday Provider for Germany. #9 (eaglefsd)
- Added translations (
fr_FR
,fr_BE
) for Belgium National day #864d250 (R2c) - โ Added missing English (
en_US
) translations for the Christian holidays 'Immaculate Conception', 'Maundy Thursday', 'St. Georges Day', 'St. John's Day', 'St. Josephs Day' and 'St. Stephens Day'. - โ Added Test Interface class to ensure the unit tests contain a some minimal assertions.
๐ Changed
- ๐ Sorted all translations in the translation files alphabetically (descending).
- ๐จ Refactoring and cleanup of all unit tests.
๐ Fixed
- ๐ Fixed issue for Sweden as All Saints Day was always calculated to be on November 1st. However, the holiday has always been celebrated on a Saturday (between October 31 and November 6th).
- ๐ Fixed the getProviders as it was not able to load Holiday Providers defined in (sub) regions #5879133 (R2c)
- ๐ Fixed issue that it was possible for the AbstractProvider class to be loaded as a Holiday Provider #9678bc4 (R2c)
- โ Corrected incorrect pathname reference *BaseTestCase.php files ("Test" -> "test).
- ๐ Fixed issue for France as Good Friday and St. Stephens Day were defined as official holidays. These aren't national holidays and are only observed in the French departments Moselle, Bas-Rhin and Haut-Rhin. With this fix, these holidays have been removed from the France Holiday providers and new providers for the departments Moselle, Bas-Rhin and Haut-Rhin are added. #17 (R2c)
- โก๏ธ Updated locales list based on CLDR version 29. Removed locales of which the region identifier is not specified.
- ๐ Fixed issue for Sweden as Midsummer's Day (st. Johns Day) was always calculated to be on June 24th. However, the holiday has always been celebrated on a Saturday (between June 20 and June 26).
- ๐ Fixed base test for some Spain/LaRioja as some holidays have been established only in a particular year, causing false failures in the unit tests.
- โ Running php-cs-fixer fix . --level=psr2 generated a massive list of changes, and broke unit tests. Added a custom .php_cs config file to adhere to the PSR-2 Coding Standards and resolve this issue. In addition, the php-cs-fixer command has been added to composer to run the fixers and on the CI server (Travis), meaning PRโs will need to be PSR2 compliant before they can be merged. If any files do not pass, the build fails. #15 #16 (badams)
- Accidentally the timezone for Norway was set to "Europe/Copenhagen". This has been corrected to "Europe/Oslo" . #11 #12 (badams)
- ๐ Fixed issue for Finland as Midsummer's Day (st. Johns Day) was always calculated to be on June 24th. However, since 1955, the holiday has always been celebrated on a Saturday (between June 20 and June 26).
-
v1.2.0 Changes
April 04, 2016โ Added
- โ Added Holiday Provider for Denmark
- โ Added Holiday Provider for Norway
- โ Added Holiday Provider for Sweden
- โ Added Holiday Provider for Finland
- ๐ New function 'isWorkingDay' added that determines whether a date represents a working day or not. A working day is considered a date that is neither a holiday nor falls into the weekend.
๐ Changed
- ๐จ Refactoring and cleanup of unit tests
๐ Fixed
- The Vernal Equinox Day and Autumnal Equinox Day in Japan were excluded from having it substituted for another day in case these days would fall on the weekend.
- ๐ Fixed tests for some holiday providers as some holidays have been established only in a particular year, causing false failures in the unit tests.
-
v1.1.0 Changes
March 10, 2016โ Added
- โ Added Spain Holiday Provider (including the autonomous communities Andalusia, Aragon, Asturias, Balearic Islands, Basque Country, Canary Islands, Cantabria, Castile and Leรณn, Castilla-La Mancha, Ceuta, Community of Madrid, Extremadura, Galicia, La Rioja, Melilla, Navarre, Region of Murcia, Valencian Community)
- โ Added Corpus Christi, St. Joseph's Day, Maundy Thursday, St. George's Day, St. John's Day to the common Christian Holidays.
- โ Created separate tests for holidays that are substituted on different days.
- ๐ Allow for namespaced holiday providers.
- โ Added test for translation of Ash Wednesday and Valentine's Day in the Netherlands.
- โ Added test to check whether all holidays for a Holiday Provider are defined by the respective provider class.
๐ Changed
- โก๏ธ Updated some English, Italian, French and Dutch translations.
- ๐ Moved all other holiday calculations in the Netherlands and France to individual methods.
๐ Fixed
- For Japan substituted holidays had the same date as the original holidays.
โ Removed
- โ Removed support for PHP 5.4. The minimum version is now 5.5. PHP 7.0 is known to work however in Travis CI still allowed to fail.
-
v1.0.0 Changes
April 21, 2015- ๐ Initial Release
๐ [Unreleased]: https://github.com/azuyalabs/yasumi/compare/2.5.0...HEAD
๐ [1.0.0]: https://github.com/azuyalabs/yasumi/releases/tag/1.0.0