date-holidays 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -4
- package/data/countries/BA.yaml +1 -1
- package/data/countries/BY.yaml +5 -5
- package/data/countries/ES.yaml +57 -1
- package/data/countries/HU.yaml +55 -0
- package/data/countries/KR.yaml +8 -2
- package/data/countries/SG.yaml +30 -1
- package/data/holidays.json +206 -21
- package/data/names.yaml +2 -2
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/umd.min.js +1 -1
- package/dist/umd.min.js.map +1 -1
- package/lib/data.cjs +206 -21
- package/package.json +8 -6
- package/src/data.js +206 -21
package/README.md
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
[](https://github.com/commenthol/date-holidays/actions/workflows/ci.yml)
|
|
7
7
|
[](https://github.com/GeiserX/awesome-europe#readme)
|
|
8
8
|
|
|
9
|
+
> **Note:** Version 4 uses [`Temporal`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal),
|
|
10
|
+
> for browser bundles, which is supported by Chrome, Edge and Firefox but not yet by Safari.
|
|
11
|
+
> For Safari, load a Temporal polyfill (e.g. [`temporal-polyfill`](https://www.npmjs.com/package/temporal-polyfill))
|
|
12
|
+
> before the bundle.
|
|
13
|
+
|
|
14
|
+
|
|
9
15
|
This module provides dates of holidays for various countries, states and regions
|
|
10
16
|
by type while considering the applicable timezone.
|
|
11
17
|
|
|
@@ -882,12 +888,17 @@ Please take a look at `./webpack.config.js`. To further reduce size consider cus
|
|
|
882
888
|
|
|
883
889
|
This project also runs in all modern browsers. See `./examples/browser`. The browser export uses the Temporal timezone adapter, so browsers must support `Temporal` or load a polyfill before the bundle.
|
|
884
890
|
|
|
891
|
+
> **Note:** Version 4 uses [`Temporal`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal),
|
|
892
|
+
> for browser bundles, which is supported by Chrome, Edge and Firefox but not yet by Safari.
|
|
893
|
+
> For Safari, load a Temporal polyfill (e.g. [`temporal-polyfill`](https://www.npmjs.com/package/temporal-polyfill))
|
|
894
|
+
> before the bundle.
|
|
895
|
+
|
|
885
896
|
| Browser | Version |
|
|
886
897
|
| ------- | :-----: |
|
|
887
|
-
| Chrome | >=
|
|
888
|
-
| Firefox | >=
|
|
889
|
-
| Safari |
|
|
890
|
-
| Edge | >=
|
|
898
|
+
| Chrome | >=144 |
|
|
899
|
+
| Firefox | >=139 |
|
|
900
|
+
| Safari | polyfill required |
|
|
901
|
+
| Edge | >=144 |
|
|
891
902
|
|
|
892
903
|
Please do not forget to set the correct charset!
|
|
893
904
|
|
package/data/countries/BA.yaml
CHANGED
package/data/countries/BY.yaml
CHANGED
|
@@ -21,17 +21,17 @@ holidays:
|
|
|
21
21
|
easter:
|
|
22
22
|
_name: easter
|
|
23
23
|
name:
|
|
24
|
-
be:
|
|
24
|
+
be: Вялікдзень каталіцкі
|
|
25
25
|
type: observance
|
|
26
26
|
orthodox:
|
|
27
27
|
name:
|
|
28
28
|
en: Orthodox Easter
|
|
29
|
-
be:
|
|
29
|
+
be: Вялікдзень праваслаўны
|
|
30
30
|
type: observance
|
|
31
31
|
orthodox +9:
|
|
32
32
|
name:
|
|
33
33
|
en: Commemoration Day
|
|
34
|
-
be:
|
|
34
|
+
be: Радуніца
|
|
35
35
|
03-08:
|
|
36
36
|
_name: 03-08
|
|
37
37
|
05-01:
|
|
@@ -39,7 +39,7 @@ holidays:
|
|
|
39
39
|
05-09:
|
|
40
40
|
name:
|
|
41
41
|
en: Victory Day
|
|
42
|
-
be: Дзень
|
|
42
|
+
be: Дзень Перамогі
|
|
43
43
|
07-03:
|
|
44
44
|
_name: Independence Day
|
|
45
45
|
active:
|
|
@@ -51,7 +51,7 @@ holidays:
|
|
|
51
51
|
12-25:
|
|
52
52
|
_name: 12-25
|
|
53
53
|
name:
|
|
54
|
-
be: Каляды
|
|
54
|
+
be: Каляды каталіцкія
|
|
55
55
|
# states:
|
|
56
56
|
# BR:
|
|
57
57
|
# name: Brest
|
package/data/countries/ES.yaml
CHANGED
|
@@ -8,6 +8,7 @@ holidays:
|
|
|
8
8
|
# @source https://www.boe.es/boe/dias/2023/10/27/pdfs/BOE-A-2023-22014.pdf (2024)
|
|
9
9
|
# @source https://www.boe.es/boe/dias/2024/10/18/pdfs/BOE-A-2024-21316.pdf (2025)
|
|
10
10
|
# @source https://www.boe.es/boe/dias/2025/10/28/pdfs/BOE-A-2025-21667.pdf (2026)
|
|
11
|
+
# @source https://www.boe.es/boe/dias/2026/10/13/pdfs/BOE-A-2026-21254.pdf (2027)
|
|
11
12
|
# @source https://www.boe.es/buscar/doc.php?id=BOE-A-2021-17113
|
|
12
13
|
# @source https://www.boe.es/buscar/act.php?id=BOE-A-1983-20906#art45
|
|
13
14
|
# buscar: "la relación de fiestas laborales para el año 20xx"
|
|
@@ -156,16 +157,39 @@ holidays:
|
|
|
156
157
|
days:
|
|
157
158
|
easter -3:
|
|
158
159
|
_name: easter -3
|
|
159
|
-
|
|
160
|
+
disable:
|
|
161
|
+
- "2018-03-29"
|
|
162
|
+
07-28:
|
|
160
163
|
name: Día de las Instituciones de Cantabria
|
|
161
164
|
09-15:
|
|
162
165
|
name: La Bien Aparecida
|
|
163
166
|
substitutes 09-15 if Sunday then next Monday:
|
|
164
167
|
name: La Bien Aparecida
|
|
168
|
+
disable:
|
|
169
|
+
- "2019-09-16"
|
|
170
|
+
- "2024-09-16"
|
|
165
171
|
substitutes 12-06 if sunday then next monday:
|
|
166
172
|
substitute: true
|
|
167
173
|
name:
|
|
168
174
|
es: Día de la Constitución Española
|
|
175
|
+
disable:
|
|
176
|
+
- "2020-12-07"
|
|
177
|
+
# Days chosen in years when other regional days fall on a Sunday
|
|
178
|
+
2019-04-22:
|
|
179
|
+
_name: easter 1
|
|
180
|
+
2020-04-13:
|
|
181
|
+
_name: easter 1
|
|
182
|
+
2024-04-01:
|
|
183
|
+
_name: easter 1
|
|
184
|
+
2019-07-25:
|
|
185
|
+
name:
|
|
186
|
+
es: Santiago Apóstol
|
|
187
|
+
2024-07-25:
|
|
188
|
+
name:
|
|
189
|
+
es: Santiago Apóstol
|
|
190
|
+
2019-12-09:
|
|
191
|
+
substitute: true
|
|
192
|
+
_name: 12-08
|
|
169
193
|
CE:
|
|
170
194
|
name: Ciudad de Ceuta
|
|
171
195
|
days:
|
|
@@ -417,6 +441,8 @@ holidays:
|
|
|
417
441
|
days:
|
|
418
442
|
03-19:
|
|
419
443
|
_name: 03-19
|
|
444
|
+
disable:
|
|
445
|
+
- "2022-03-19"
|
|
420
446
|
easter -3:
|
|
421
447
|
_name: easter -3
|
|
422
448
|
substitutes 05-01 if Sunday then next Monday:
|
|
@@ -426,6 +452,23 @@ holidays:
|
|
|
426
452
|
substitute: true
|
|
427
453
|
name:
|
|
428
454
|
es: Día de la Constitución Española
|
|
455
|
+
06-09:
|
|
456
|
+
name:
|
|
457
|
+
es: Día de la Región de Murcia
|
|
458
|
+
disable:
|
|
459
|
+
- "2019-06-09"
|
|
460
|
+
enable:
|
|
461
|
+
- "2019-06-10"
|
|
462
|
+
# Days chosen in years when other regional days fall on a Sunday
|
|
463
|
+
2019-01-07:
|
|
464
|
+
substitute: true
|
|
465
|
+
_name: 01-06
|
|
466
|
+
2023-01-02:
|
|
467
|
+
substitute: true
|
|
468
|
+
_name: 01-01
|
|
469
|
+
2024-12-09:
|
|
470
|
+
substitute: true
|
|
471
|
+
_name: 12-08
|
|
429
472
|
MD:
|
|
430
473
|
name: Comunidad de Madrid
|
|
431
474
|
days:
|
|
@@ -524,3 +567,16 @@ holidays:
|
|
|
524
567
|
name:
|
|
525
568
|
es: San Juan
|
|
526
569
|
ca: Sant Joan
|
|
570
|
+
disable:
|
|
571
|
+
- "2027-06-24"
|
|
572
|
+
10-09:
|
|
573
|
+
name:
|
|
574
|
+
es: Día de la Comunitat Valenciana
|
|
575
|
+
ca: Dia de la Comunitat Valenciana
|
|
576
|
+
substitutes 12-25 if sunday then next monday:
|
|
577
|
+
substitute: true
|
|
578
|
+
_name: 12-25
|
|
579
|
+
disable:
|
|
580
|
+
- "2022-12-26"
|
|
581
|
+
2022-04-14:
|
|
582
|
+
_name: easter -3
|
package/data/countries/HU.yaml
CHANGED
|
@@ -100,6 +100,11 @@ holidays:
|
|
|
100
100
|
12-24:
|
|
101
101
|
_name: 12-24
|
|
102
102
|
type: optional
|
|
103
|
+
active:
|
|
104
|
+
- to: "2024-01-01"
|
|
105
|
+
# @source https://njt.jog.gov.hu/jogszabaly/2026-72-00-00.1
|
|
106
|
+
12-24 since 2026:
|
|
107
|
+
_name: 12-24
|
|
103
108
|
12-25:
|
|
104
109
|
_name: 12-25
|
|
105
110
|
type: public
|
|
@@ -159,3 +164,53 @@ holidays:
|
|
|
159
164
|
hu: Téli szünet
|
|
160
165
|
en: Winter school holiday
|
|
161
166
|
type: school
|
|
167
|
+
# @source https://njt.jog.gov.hu/jogszabaly/2021-23-20-7Q
|
|
168
|
+
"2022-03-14":
|
|
169
|
+
_name: Bridge Day
|
|
170
|
+
name:
|
|
171
|
+
hu: Pihenőnap
|
|
172
|
+
type: bank
|
|
173
|
+
"2022-10-31":
|
|
174
|
+
_name: Bridge Day
|
|
175
|
+
name:
|
|
176
|
+
hu: Pihenőnap
|
|
177
|
+
type: bank
|
|
178
|
+
# @source https://njt.jog.gov.hu/jogszabaly/2023-15-20-8P
|
|
179
|
+
"2024-08-19":
|
|
180
|
+
_name: Bridge Day
|
|
181
|
+
name:
|
|
182
|
+
hu: Pihenőnap
|
|
183
|
+
type: bank
|
|
184
|
+
"2024-12-24":
|
|
185
|
+
_name: 12-24
|
|
186
|
+
type: bank
|
|
187
|
+
"2024-12-27":
|
|
188
|
+
_name: Bridge Day
|
|
189
|
+
name:
|
|
190
|
+
hu: Pihenőnap
|
|
191
|
+
type: bank
|
|
192
|
+
# @source https://njt.jog.gov.hu/jogszabaly/2024-11-20-2X
|
|
193
|
+
"2025-05-02":
|
|
194
|
+
_name: Bridge Day
|
|
195
|
+
name:
|
|
196
|
+
hu: Pihenőnap
|
|
197
|
+
type: bank
|
|
198
|
+
"2025-10-24":
|
|
199
|
+
_name: Bridge Day
|
|
200
|
+
name:
|
|
201
|
+
hu: Pihenőnap
|
|
202
|
+
type: bank
|
|
203
|
+
"2025-12-24":
|
|
204
|
+
_name: 12-24
|
|
205
|
+
type: bank
|
|
206
|
+
# @source https://njt.jog.gov.hu/jogszabaly/2025-10-20-2X
|
|
207
|
+
"2026-01-02":
|
|
208
|
+
_name: Bridge Day
|
|
209
|
+
name:
|
|
210
|
+
hu: Pihenőnap
|
|
211
|
+
type: bank
|
|
212
|
+
"2026-08-21":
|
|
213
|
+
_name: Bridge Day
|
|
214
|
+
name:
|
|
215
|
+
hu: Pihenőnap
|
|
216
|
+
type: bank
|
package/data/countries/KR.yaml
CHANGED
|
@@ -53,15 +53,21 @@ holidays:
|
|
|
53
53
|
ko: 어린이날
|
|
54
54
|
active:
|
|
55
55
|
- from: "2014-01-01"
|
|
56
|
-
|
|
56
|
+
# Renamed from 석가탄신일 to 부처님오신날 on 2017-10-17, after that year’s holiday
|
|
57
|
+
# @source https://ko.wikisource.org/wiki/관공서의_공휴일에_관한_규정_(제28394호)
|
|
58
|
+
korean 4-0-8 prior to 2018:
|
|
57
59
|
name:
|
|
58
60
|
en: Buddha’s Birthday
|
|
59
61
|
ko: 석가탄신일
|
|
62
|
+
korean 4-0-8 since 2018:
|
|
63
|
+
name:
|
|
64
|
+
en: Buddha’s Birthday
|
|
65
|
+
ko: 부처님오신날
|
|
60
66
|
substitutes korean 4-0-8 if Saturday,Sunday then next Monday:
|
|
61
67
|
substitute: true
|
|
62
68
|
name:
|
|
63
69
|
en: Buddha’s Birthday
|
|
64
|
-
ko:
|
|
70
|
+
ko: 부처님오신날
|
|
65
71
|
active:
|
|
66
72
|
- from: "2023-01-01"
|
|
67
73
|
06-06:
|
package/data/countries/SG.yaml
CHANGED
|
@@ -62,12 +62,23 @@ holidays:
|
|
|
62
62
|
- "2024-04-09"
|
|
63
63
|
- "2025-03-30"
|
|
64
64
|
- "2026-03-20"
|
|
65
|
+
- "2027-03-09"
|
|
66
|
+
- "2028-02-26"
|
|
65
67
|
enable:
|
|
66
68
|
- "2022-05-03"
|
|
67
69
|
- "2023-04-22"
|
|
68
70
|
- "2024-04-10"
|
|
69
71
|
- "2025-03-31"
|
|
70
72
|
- "2026-03-21"
|
|
73
|
+
# @source https://www.mom.gov.sg/employment-practices/public-holidays#Year-2027
|
|
74
|
+
- "2027-03-10"
|
|
75
|
+
# Forecast; PublicHolidays.sg updates this when MOM releases the official dates.
|
|
76
|
+
# @source https://publicholidays.sg/
|
|
77
|
+
- "2028-02-27"
|
|
78
|
+
"2028-02-28":
|
|
79
|
+
substitute: true
|
|
80
|
+
name:
|
|
81
|
+
en: Hari Raya Puasa
|
|
71
82
|
10 Dhu al-Hijjah:
|
|
72
83
|
_name: 10 Dhu al-Hijjah
|
|
73
84
|
name:
|
|
@@ -80,12 +91,17 @@ holidays:
|
|
|
80
91
|
- "2023-06-28"
|
|
81
92
|
- "2024-06-16"
|
|
82
93
|
- "2025-06-06"
|
|
94
|
+
- "2027-05-16"
|
|
83
95
|
enable:
|
|
84
96
|
- "2022-07-10"
|
|
85
97
|
- "2023-06-29"
|
|
86
98
|
- "2024-06-17"
|
|
87
99
|
- "2025-06-07"
|
|
100
|
+
# @source https://www.mom.gov.sg/employment-practices/public-holidays#Year-2027
|
|
101
|
+
- "2027-05-17"
|
|
88
102
|
# @attrib https://en.wikipedia.org/wiki/Vesak
|
|
103
|
+
# @source https://www.mom.gov.sg/employment-practices/public-holidays#Year-2027
|
|
104
|
+
# @source https://publicholidays.sg/vesak-day/
|
|
89
105
|
# date if sunday then next monday
|
|
90
106
|
"2001-05-07":
|
|
91
107
|
_name: Vesak
|
|
@@ -152,6 +168,15 @@ holidays:
|
|
|
152
168
|
"2026-06-01":
|
|
153
169
|
substitute: true
|
|
154
170
|
_name: Vesak
|
|
171
|
+
chinese 4-0-15:
|
|
172
|
+
_name: Vesak
|
|
173
|
+
active:
|
|
174
|
+
- from: "2027-01-01"
|
|
175
|
+
substitutes chinese 4-0-15 if sunday then next monday:
|
|
176
|
+
substitute: true
|
|
177
|
+
_name: Vesak
|
|
178
|
+
active:
|
|
179
|
+
- from: "2027-01-01"
|
|
155
180
|
# Deepavali
|
|
156
181
|
# date if sunday then next monday
|
|
157
182
|
"2000-10-26":
|
|
@@ -220,9 +245,13 @@ holidays:
|
|
|
220
245
|
"2026-11-09":
|
|
221
246
|
substitute: true
|
|
222
247
|
_name: Deepavali
|
|
248
|
+
# @source https://www.mom.gov.sg/employment-practices/public-holidays#Year-2027
|
|
223
249
|
"2027-10-28":
|
|
224
250
|
_name: Deepavali
|
|
225
|
-
|
|
251
|
+
# Forecast; PublicHolidays.sg and CalendarLabs agree on this date.
|
|
252
|
+
# @source https://publicholidays.sg/
|
|
253
|
+
# @source https://www.calendarlabs.com/holidays/singapore/2028
|
|
254
|
+
"2028-10-17":
|
|
226
255
|
_name: Deepavali
|
|
227
256
|
"2029-11-05":
|
|
228
257
|
_name: Deepavali
|