Yasumi v2.3.0 Release Notes

Release Date: 2020-06-22 // almost 4 years ago
  • ➕ Added

    • ➕ Added Canada Provider #215 (lux)
    • ➕ Added Luxembourg Provider #205 (Arkounay)
    • Holiday providers for states of Austria. #182 (aprog)
    • ➕ Added All Souls Day to Lithuania #227 (norkunas)
    • Catholic Christmas Day is a new official holiday since 2017 in the Ukraine. #202
    • ➕ Additional Dates for Australia/Victoria:AFL Grand Final Friday #190 (brucealdridge)
    • Substituted holidays (holidays that fall in the weekend) for Australia. #201 (c960657)
    • ➕ Added New Years Eve to Germany #226 (Patrick-Root)
    • Day of Liberation (Tag der Befreiung) is a one-time official holiday in 2020 in Berlin (Germany).
    • 🌐 Catalan translations for holidays in Catalonia, Valencian Community, Balearic Islands and Aragon #189 (c960657)
    • ➕ Added American English spelling for Labour Day #216
    • ➕ Added French translation for Second Christmas Day #188 (Arkounay)

    • ➕ Added accessor methods Holiday::getKey() and SubstituteHoliday:: getSubstitutedHoliday() #220+#221 (c960657)

    • ➕ Added missing return (correct) and parameter types in various methods.

    🔄 Changed

    • 📇 Renamed the Australian states to be full names instead of abbreviations to be in line with other Holiday Providers #214
    • Statehood Day is celebrated at a new date since 2020 in Croatia. #203 (krukru)
    • Independence Day is no longer an official holiday since 2020 in Croatia. #203 (krukru)
    • Homeland Thanksgiving Day has been renamed to "Victory and Homeland Thanksgiving Day and the Day of Croatian Defenders" since 2020 in Croatia. #203 (krukru)
    • Remembrance Day for Homeland War Victims and Remembrance Day for the Victims of Vukovar and Skabrnja is a new official holiday since 2020 in Croatia. #203 (krukru)
    • 👷 Second International Workers' Day in Ukraine was an official holiday only until
      1. #202
    • Holiday names in Danish, Dutch, and Norwegian are no longer capitalized. #185 (c960657)

    • 🔄 Changed the fallback from DEFAULT_LANGUAGE to ' en'. #183 (c960657)

    • 🐎 Introduced a DateTimeZoneFactory class to improve performance. This will keep a static reference to the instantiated DateTimezone, thus saving resources. #213 (pvgnd)

    • 🔄 Changed DateTime to DateTimeImmutable as dates should be that: immutable (by default)

    • Explicitly set nullable parameters as such.

    • 🔨 Refactored various conditional structures.

    • 🔄 Changed signature of some methods as parameters with defaults should come after required parameters.

    • ⚡️ Updated third party dependencies.

    🛠 Fixed

    • 🛠 Fixed Ukraine holidays on weekends. These days need to be substituted. #202
    • 🛠 Fixed issue if the next working day happens to be in the next year (i.e. not in the year of the Yasumi instance) #192 (tniemann)
    • 🛠 Fix locale fallback for substitute holidays #180 (c960657)
    • 🛠 Fixed issue if the previous working day happens to be in the previous year (i.e. not in the year of the Yasumi instance)

    • 🛠 Fixed compound conditions that are always true by simplifying the condition steps.

    🗄 Deprecated

    • 🗄 Deprecated direct access to public properties Holiday::$shortName and SubstituteHoliday::$substitutedHoliday in favor of accessor methods #220 (c960657)

    ✂ Removed

    • 👍 PHP 7.1 Support, as it has reached its end of life.
    • ✂ Removed the assertion of the instance type in some functions as it is already defined by the return type.
    • ✂ Removed unused variables, namespaces, brackets, empty tests, etc.