Repository navigation
Releases: ppeble/definitions
Releases · ppeble/definitions
Release list
v9.2.0
- Add
maEid al-Fitr and Eid al-Adha, calculated from the Hijri calendar. definitions pull-391 - Add
myHari Raya Puasa and Hari Raya Haji, calculated from the Hijri calendar and observed on the following Monday when they fall on a Sunday. definitions pull-392
v9.1.0
- Switch
trRamazan and Kurban Bayramı to a calculated Hijri date instead of a hand-maintained per-year table, so they no longer silently disappear past 2030. definitions pull-385, definitions issue-377 - Fix
vnGiỗ tổ Hùng Vương test dates for 2018-2023; the 2018 date was wrong due to a lunar calendar leap-month bug. definitions pull-386, definitions issue-150 - Shift observed
usIndependence Day off weekends for every region via a newindependence_dayfunction, replacing theus_va-onlyto_weekday_if_weekendshim; nearest weekday for most regions, the following Monday forus_ri, no shift forus_tx. definitions pull-387, holidays issue-478
v9.0.0
Breaking
- Remove the embedded
methods:andruby:blocks from all region files. Method bodies now live in each consuming library;function:andobserved:names are unchanged. Seedoc/SYNTAX.md. definitions pull-382, definitions pull-383, definitions issue-379
Non-breaking (results may change for the listed regions; no consumer code change needed) - Add
cnChina statutory national holidays, with year ranges for the 2008 and 2025 reforms. 调休 make-up workdays are not modelled. definitions pull-370, definitions issue-112 - Fix
jpsubstitute holidays ignoringyear_ranges, which made the 2019-only Reiwa accession dates recur every year. definitions pull-368, holidays issue-366 - Fix
kr설날 연휴 (Seollal eve) resolving to the wrong year; now derived as the day before 설날. definitions pull-371, holidays issue-388 - Fix
nz_slSouthland Anniversary Day to Easter Tuesday andnz_hbHawke's Bay Anniversary Day to the Friday before Labour Day. definitions pull-375, definitions issue-260 - Restrict
roBoboteaza and Soborul Sfântului Ioan Botezătorul to 2024 onwards. definitions pull-373, definitions issue-296 - Extend
trRamazan and Kurban Bayramı through 2030. definitions pull-376, definitions pull-378, definitions issue-377 - Add
de_beTag der Befreiung on 8 May 2025. definitions pull-293 (thanks to https://github.com/michaelem) - Add informal Day of the Dead for
usandcaon 1 and 2 November. definitions pull-374, holidays issue-393 - Add a
de_mvInternationaler Frauentag boundary test. definitions pull-372 - Fix a
thtest date typo. definitions pull-381
v8.2.0
- Add
byBelarus, with the nine non-working days set by the Labour Code plus Радуніца, the ninth day after Orthodox Easter, and the state holidays that remain ordinary working days marked informal, for definitions pull-364, reworked from holidays pull-402 (thanks to https://github.com/sania1801) - Add
coDía de Nuestra Señora del Rosario de Chiquinquirá, 9 July moved to the following Monday under the Emiliani law, a national holiday from 2026 under Law 2578, for definitions pull-344 (thanks to https://github.com/heysebitas) - Update
peto Peru's official calendar, adding Batalla de Ayacucho and Batalla de Junín from 2022, Día de la Fuerza Aérea del Perú from 2023 and Batalla de Arica y Día de la Bandera from 2024, each dated from its first observance rather than its publication year, and correcting the names of Día de San Pedro y San Pablo and Combate de Angamos, for definitions pull-365 (thanks to https://github.com/juniorUsca) - Mark
peDía de los Reyes Magos and Pascua as informal, since neither is a feriado. Peru now returns the official 16 national holidays, so callers relying on either of these as formal holidays will no longer receive them - Fix
es_gaSantiago Apóstol, which falls on 25 July and not 23, for definitions pull-366 (thanks to https://github.com/trumbitta)
v8.1.0
- Add
ieSt Brigid's Day, the first Monday in February or 1 February when that day is a Friday, a public holiday from 2023, for definitions issue-348 - Restore
skDeň Ústavy Slovenskej republiky and Deň boja za slobodu a demokraciu, which were removed entirely in 5.9.0 despite remaining state holidays in Slovak law - Mark
skDeň Ústavy Slovenskej republiky as informal from 2024 and Deň boja za slobodu a demokraciu as informal from 2025, the years each stopped being a day of rest, for definitions pull-288 (thanks to https://github.com/lucialopuchova) - Clarify that informal also covers holidays that remain in law but are ordinary working days
- Add
us_utJuneteenth observance rule, observed on June 19 when that is a Monday, the preceding Monday when June 19 is Tuesday through Friday, and the following Monday when it is a weekend, for definitions pull-290 (thanks to https://github.com/philipwritescode) - Allow
regionas a custom method argument, matching whatdoc/SYNTAX.mdhas always documented
v8.0.1
- Fix
phNational Heroes Day when August 31st falls on a Sunday for definitions issue-345 - Fix
gbChristmas and Boxing Day observed dates when Christmas falls on a Sunday for holidays issue-396 - Add required
region_namestomcto satisfy the ISO 3166 validation introduced in 8.0.0
v8.0.0
- Rename Vietnam region code from
vitovnto follow ISO 3166-1 alpha-2 (VIis US Virgin Islands,VNis Vietnam) for definitions issue-177 - Require all
region_namesto match the ISO 3166 standard with no exceptions (removed the internal escape hatch that previously allowed the non-standardvicode)
v7.0.0
- Drop support for EOL Ruby 3.2; minimum supported version is now Ruby 3.3 (testing 3.3, 3.4, 4.0, ruby-head)
- Fix
nzCanterbury Anniversary Day to the second Friday after the first Tuesday of November for holidays issue-285 - Fix
luWhit Monday to fall on Monday (Easter Sunday + 50 days) instead of Sunday for holidays issue-289 - Replace nil-returning year-gate functions with
year_ranges - Clarify that formal holidays are what is commonly called statutory holidays
v6.1.1
- Fix
frtest cases to match Pentecôte/Lundi de Pentecôte informal swap introduced in 6.1.0 - Fix
mcToussaint missingobservedmodifier and correct observed-day test cases - Run contract tests (smoke + generated definition tests) in downstream CI instead of smoke-only
v6.1.0
- Introduce
mc(Monaco) region (thanks to https://github.com/abenhamdine) - Fix
frPentecote Sunday to be an official public holiday (thanks to https://github.com/abenhamdine) - Fix
gbCornwall holidays for holidays issue-160 - Fix
us_gaApril State Holiday for years post-2020 (thanks to https://github.com/joseph-carino) - Add validation to ensure that all regions are represented in
index.yaml - Run downstream smoke tests instead of the full test suite on PR/push