date-holidays 3.14.2 → 3.14.5
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/CHANGELOG.md +19 -0
- package/data/countries/BE.yaml +1 -0
- package/data/countries/CA.yaml +5 -0
- package/data/countries/CH.yaml +5 -6
- package/data/countries/DE.yaml +0 -7
- package/data/countries/HK.yaml +1 -6
- package/data/countries/NZ.yaml +2 -3
- package/data/holidays.json +19 -31
- 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 +19 -31
- package/package.json +14 -10
- package/src/data.js +19 -31
package/lib/data.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const data = {
|
|
6
|
-
"version": "2022-
|
|
6
|
+
"version": "2022-04-09",
|
|
7
7
|
"license": "CC-BY-SA-3",
|
|
8
8
|
"holidays": {
|
|
9
9
|
"AD": {
|
|
@@ -2100,7 +2100,8 @@ const data = {
|
|
|
2100
2100
|
"type": "observance"
|
|
2101
2101
|
},
|
|
2102
2102
|
"easter": {
|
|
2103
|
-
"_name": "easter"
|
|
2103
|
+
"_name": "easter",
|
|
2104
|
+
"type": "observance"
|
|
2104
2105
|
},
|
|
2105
2106
|
"easter 1": {
|
|
2106
2107
|
"_name": "easter 1"
|
|
@@ -4209,6 +4210,12 @@ const data = {
|
|
|
4209
4210
|
"1st monday in September": {
|
|
4210
4211
|
"_name": "05-01"
|
|
4211
4212
|
},
|
|
4213
|
+
"09-30 since 2021": {
|
|
4214
|
+
"name": {
|
|
4215
|
+
"en": "National Day for Truth and Reconciliation",
|
|
4216
|
+
"fr": "Journée nationale de la vérité et de la réconciliation"
|
|
4217
|
+
}
|
|
4218
|
+
},
|
|
4212
4219
|
"2nd monday after 10-01": {
|
|
4213
4220
|
"name": {
|
|
4214
4221
|
"en": "Thanksgiving",
|
|
@@ -4835,6 +4842,10 @@ const data = {
|
|
|
4835
4842
|
"01-01": {
|
|
4836
4843
|
"_name": "01-01"
|
|
4837
4844
|
},
|
|
4845
|
+
"easter -3": {
|
|
4846
|
+
"_name": "easter -3",
|
|
4847
|
+
"type": "observance"
|
|
4848
|
+
},
|
|
4838
4849
|
"easter -2": {
|
|
4839
4850
|
"_name": "easter -2"
|
|
4840
4851
|
},
|
|
@@ -5158,17 +5169,11 @@ const data = {
|
|
|
5158
5169
|
},
|
|
5159
5170
|
"type": "optional"
|
|
5160
5171
|
},
|
|
5161
|
-
"
|
|
5172
|
+
"Thursday after 04-02 if is observance holiday then next Thursday": {
|
|
5162
5173
|
"name": {
|
|
5163
5174
|
"de": "Näfelser Fahrt",
|
|
5164
5175
|
"fr": "Bataille de Näfels"
|
|
5165
|
-
}
|
|
5166
|
-
"disable": [
|
|
5167
|
-
"2023-04-06"
|
|
5168
|
-
],
|
|
5169
|
-
"enable": [
|
|
5170
|
-
"2023-04-13"
|
|
5171
|
-
]
|
|
5176
|
+
}
|
|
5172
5177
|
},
|
|
5173
5178
|
"3rd sunday after 09-01": false,
|
|
5174
5179
|
"11-01": {
|
|
@@ -7356,10 +7361,6 @@ const data = {
|
|
|
7356
7361
|
"HB": {
|
|
7357
7362
|
"name": "Hansestadt Bremen",
|
|
7358
7363
|
"days": {
|
|
7359
|
-
"12-31 14:00 if sunday then 00:00": {
|
|
7360
|
-
"_name": "12-31",
|
|
7361
|
-
"type": "public"
|
|
7362
|
-
},
|
|
7363
7364
|
"10-31": {
|
|
7364
7365
|
"_name": "Reformation Day",
|
|
7365
7366
|
"active": [
|
|
@@ -7375,9 +7376,6 @@ const data = {
|
|
|
7375
7376
|
"days": {
|
|
7376
7377
|
"easter 60": {
|
|
7377
7378
|
"_name": "easter 60"
|
|
7378
|
-
},
|
|
7379
|
-
"12-31 14:00 if sunday then 00:00": {
|
|
7380
|
-
"_name": "12-31"
|
|
7381
7379
|
}
|
|
7382
7380
|
}
|
|
7383
7381
|
},
|
|
@@ -7522,9 +7520,6 @@ const data = {
|
|
|
7522
7520
|
},
|
|
7523
7521
|
"10-31": {
|
|
7524
7522
|
"_name": "Reformation Day"
|
|
7525
|
-
},
|
|
7526
|
-
"12-31 14:00 if sunday then 00:00": {
|
|
7527
|
-
"_name": "12-31"
|
|
7528
7523
|
}
|
|
7529
7524
|
},
|
|
7530
7525
|
"regions": {
|
|
@@ -10590,18 +10585,12 @@ const data = {
|
|
|
10590
10585
|
"zh": "香港特別行政區成立紀念日"
|
|
10591
10586
|
}
|
|
10592
10587
|
},
|
|
10593
|
-
"chinese 08-0-16 and if Sunday then next Monday": {
|
|
10588
|
+
"chinese 08-0-16 and if Sunday then next Monday if is public holiday then next day omit Saturday, Sunday": {
|
|
10594
10589
|
"substitute": true,
|
|
10595
10590
|
"name": {
|
|
10596
10591
|
"en": "The day following the Chinese Mid-Autumn Festival",
|
|
10597
10592
|
"zh": "中秋節翌日"
|
|
10598
|
-
}
|
|
10599
|
-
"disable": [
|
|
10600
|
-
"2020-10-01"
|
|
10601
|
-
],
|
|
10602
|
-
"enable": [
|
|
10603
|
-
"2020-10-02"
|
|
10604
|
-
]
|
|
10593
|
+
}
|
|
10605
10594
|
},
|
|
10606
10595
|
"10-01 and if Sunday then next Monday": {
|
|
10607
10596
|
"substitute": true,
|
|
@@ -16622,11 +16611,10 @@ const data = {
|
|
|
16622
16611
|
"mi": "Ōtākou"
|
|
16623
16612
|
},
|
|
16624
16613
|
"days": {
|
|
16625
|
-
"03-23 if
|
|
16614
|
+
"03-23 if Tuesday,Wednesday,Thursday then previous Monday if Friday,Saturday,Sunday then next Monday if is public holiday then next Monday": {
|
|
16626
16615
|
"name": {
|
|
16627
16616
|
"en": "Provincial anniversary day"
|
|
16628
|
-
}
|
|
16629
|
-
"note": "varies if coincides with easter monday"
|
|
16617
|
+
}
|
|
16630
16618
|
}
|
|
16631
16619
|
}
|
|
16632
16620
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "date-holidays",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.5",
|
|
4
4
|
"description": "worldwide holidays",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"holidays",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"Joshua Rippon <joshuarippon1@gmail.com>",
|
|
56
56
|
"Julian Krenge <julian@parcellab.com>",
|
|
57
57
|
"Kane.Westwood <kane.westwood@moonpig.com>",
|
|
58
|
+
"Kerstens Maxim <maxim.kerstens@gmail.com>",
|
|
58
59
|
"Kevin Ley <3976145+kevinley@users.noreply.github.com>",
|
|
59
60
|
"Kevin Samoei <samoeikev@gmail.com>",
|
|
60
61
|
"Konstantinos Koukourakis <konstantinoskouk90@gmail.com>",
|
|
@@ -70,12 +71,15 @@
|
|
|
70
71
|
"Pandu Supriyono <mail@supriyono.nl>",
|
|
71
72
|
"Petar Kovačević <pero.5ar@gmail.com>",
|
|
72
73
|
"Philip Renich <hello@philiprenich.com>",
|
|
74
|
+
"oprogramador <uomodislesia@gmail.com>",
|
|
73
75
|
"r.ryngenen@gmail.com <r.ryngenen@gmail.com>",
|
|
74
76
|
"rbrasco <roger.brasco@scytl.com>",
|
|
75
77
|
"Roman Hirsch <r.hirsch@brendow.de>",
|
|
78
|
+
"RomanTheBrov <romouald.dombrovski@gmail.com>",
|
|
76
79
|
"Ryan Gerry <gerryster@gmail.com>",
|
|
77
80
|
"Sean Riley <spriley@msts.com>",
|
|
78
81
|
"seb <sebastien@lewebfrancais.fr>",
|
|
82
|
+
"Seb735 <duclutsebastien@yahoo.com>",
|
|
79
83
|
"Simon Victory <email@simonvictory.com>",
|
|
80
84
|
"Quennie <simply.me.queeny@gmail.com>",
|
|
81
85
|
"Tiago <tiago.peliciari@gmail.com>",
|
|
@@ -180,17 +184,17 @@
|
|
|
180
184
|
"reporter": "dot"
|
|
181
185
|
},
|
|
182
186
|
"dependencies": {
|
|
183
|
-
"date-holidays-parser": "^3.
|
|
187
|
+
"date-holidays-parser": "^3.3.0",
|
|
184
188
|
"js-yaml": "^4.1.0",
|
|
185
189
|
"lodash.omit": "^4.5.0",
|
|
186
190
|
"lodash.pick": "^4.4.0",
|
|
187
191
|
"prepin": "^1.0.3"
|
|
188
192
|
},
|
|
189
193
|
"devDependencies": {
|
|
190
|
-
"@babel/cli": "^7.
|
|
191
|
-
"@babel/core": "^7.
|
|
194
|
+
"@babel/cli": "^7.17.6",
|
|
195
|
+
"@babel/core": "^7.17.5",
|
|
192
196
|
"@babel/polyfill": "^7.12.1",
|
|
193
|
-
"@babel/preset-env": "^7.16.
|
|
197
|
+
"@babel/preset-env": "^7.16.11",
|
|
194
198
|
"@commitlint/cli": "^13.2.1",
|
|
195
199
|
"@commitlint/config-conventional": "^13.2.0",
|
|
196
200
|
"@mocha/contributors": "git+https://github.com/commenthol/contributors.git#semver:1.1.0-0",
|
|
@@ -205,15 +209,15 @@
|
|
|
205
209
|
"hashtree": "^0.7.0",
|
|
206
210
|
"husky": "^7.0.4",
|
|
207
211
|
"markedpp": "^1.0.4",
|
|
208
|
-
"mocha": "^9.1
|
|
212
|
+
"mocha": "^9.2.1",
|
|
209
213
|
"npm-run-all": "^4.1.5",
|
|
210
214
|
"rimraf": "^3.0.2",
|
|
211
|
-
"rollup": "^2.
|
|
212
|
-
"typescript": "^4.5.
|
|
215
|
+
"rollup": "^2.68.0",
|
|
216
|
+
"typescript": "^4.5.5",
|
|
213
217
|
"watch-run": "^1.2.5",
|
|
214
|
-
"webpack": "^5.
|
|
218
|
+
"webpack": "^5.69.1",
|
|
215
219
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
216
|
-
"webpack-cli": "^4.9.
|
|
220
|
+
"webpack-cli": "^4.9.2"
|
|
217
221
|
},
|
|
218
222
|
"engines": {
|
|
219
223
|
"node": ">=12.0.0"
|
package/src/data.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const data = {
|
|
2
|
-
version: '2022-
|
|
2
|
+
version: '2022-04-09',
|
|
3
3
|
license: 'CC-BY-SA-3',
|
|
4
4
|
holidays: {
|
|
5
5
|
AD: {
|
|
@@ -2096,7 +2096,8 @@ export const data = {
|
|
|
2096
2096
|
type: 'observance'
|
|
2097
2097
|
},
|
|
2098
2098
|
easter: {
|
|
2099
|
-
_name: 'easter'
|
|
2099
|
+
_name: 'easter',
|
|
2100
|
+
type: 'observance'
|
|
2100
2101
|
},
|
|
2101
2102
|
'easter 1': {
|
|
2102
2103
|
_name: 'easter 1'
|
|
@@ -4205,6 +4206,12 @@ export const data = {
|
|
|
4205
4206
|
'1st monday in September': {
|
|
4206
4207
|
_name: '05-01'
|
|
4207
4208
|
},
|
|
4209
|
+
'09-30 since 2021': {
|
|
4210
|
+
name: {
|
|
4211
|
+
en: 'National Day for Truth and Reconciliation',
|
|
4212
|
+
fr: 'Journée nationale de la vérité et de la réconciliation'
|
|
4213
|
+
}
|
|
4214
|
+
},
|
|
4208
4215
|
'2nd monday after 10-01': {
|
|
4209
4216
|
name: {
|
|
4210
4217
|
en: 'Thanksgiving',
|
|
@@ -4831,6 +4838,10 @@ export const data = {
|
|
|
4831
4838
|
'01-01': {
|
|
4832
4839
|
_name: '01-01'
|
|
4833
4840
|
},
|
|
4841
|
+
'easter -3': {
|
|
4842
|
+
_name: 'easter -3',
|
|
4843
|
+
type: 'observance'
|
|
4844
|
+
},
|
|
4834
4845
|
'easter -2': {
|
|
4835
4846
|
_name: 'easter -2'
|
|
4836
4847
|
},
|
|
@@ -5154,17 +5165,11 @@ export const data = {
|
|
|
5154
5165
|
},
|
|
5155
5166
|
type: 'optional'
|
|
5156
5167
|
},
|
|
5157
|
-
'
|
|
5168
|
+
'Thursday after 04-02 if is observance holiday then next Thursday': {
|
|
5158
5169
|
name: {
|
|
5159
5170
|
de: 'Näfelser Fahrt',
|
|
5160
5171
|
fr: 'Bataille de Näfels'
|
|
5161
|
-
}
|
|
5162
|
-
disable: [
|
|
5163
|
-
'2023-04-06'
|
|
5164
|
-
],
|
|
5165
|
-
enable: [
|
|
5166
|
-
'2023-04-13'
|
|
5167
|
-
]
|
|
5172
|
+
}
|
|
5168
5173
|
},
|
|
5169
5174
|
'3rd sunday after 09-01': false,
|
|
5170
5175
|
'11-01': {
|
|
@@ -7352,10 +7357,6 @@ export const data = {
|
|
|
7352
7357
|
HB: {
|
|
7353
7358
|
name: 'Hansestadt Bremen',
|
|
7354
7359
|
days: {
|
|
7355
|
-
'12-31 14:00 if sunday then 00:00': {
|
|
7356
|
-
_name: '12-31',
|
|
7357
|
-
type: 'public'
|
|
7358
|
-
},
|
|
7359
7360
|
'10-31': {
|
|
7360
7361
|
_name: 'Reformation Day',
|
|
7361
7362
|
active: [
|
|
@@ -7371,9 +7372,6 @@ export const data = {
|
|
|
7371
7372
|
days: {
|
|
7372
7373
|
'easter 60': {
|
|
7373
7374
|
_name: 'easter 60'
|
|
7374
|
-
},
|
|
7375
|
-
'12-31 14:00 if sunday then 00:00': {
|
|
7376
|
-
_name: '12-31'
|
|
7377
7375
|
}
|
|
7378
7376
|
}
|
|
7379
7377
|
},
|
|
@@ -7518,9 +7516,6 @@ export const data = {
|
|
|
7518
7516
|
},
|
|
7519
7517
|
'10-31': {
|
|
7520
7518
|
_name: 'Reformation Day'
|
|
7521
|
-
},
|
|
7522
|
-
'12-31 14:00 if sunday then 00:00': {
|
|
7523
|
-
_name: '12-31'
|
|
7524
7519
|
}
|
|
7525
7520
|
},
|
|
7526
7521
|
regions: {
|
|
@@ -10586,18 +10581,12 @@ export const data = {
|
|
|
10586
10581
|
zh: '香港特別行政區成立紀念日'
|
|
10587
10582
|
}
|
|
10588
10583
|
},
|
|
10589
|
-
'chinese 08-0-16 and if Sunday then next Monday': {
|
|
10584
|
+
'chinese 08-0-16 and if Sunday then next Monday if is public holiday then next day omit Saturday, Sunday': {
|
|
10590
10585
|
substitute: true,
|
|
10591
10586
|
name: {
|
|
10592
10587
|
en: 'The day following the Chinese Mid-Autumn Festival',
|
|
10593
10588
|
zh: '中秋節翌日'
|
|
10594
|
-
}
|
|
10595
|
-
disable: [
|
|
10596
|
-
'2020-10-01'
|
|
10597
|
-
],
|
|
10598
|
-
enable: [
|
|
10599
|
-
'2020-10-02'
|
|
10600
|
-
]
|
|
10589
|
+
}
|
|
10601
10590
|
},
|
|
10602
10591
|
'10-01 and if Sunday then next Monday': {
|
|
10603
10592
|
substitute: true,
|
|
@@ -16618,11 +16607,10 @@ export const data = {
|
|
|
16618
16607
|
mi: 'Ōtākou'
|
|
16619
16608
|
},
|
|
16620
16609
|
days: {
|
|
16621
|
-
'03-23 if
|
|
16610
|
+
'03-23 if Tuesday,Wednesday,Thursday then previous Monday if Friday,Saturday,Sunday then next Monday if is public holiday then next Monday': {
|
|
16622
16611
|
name: {
|
|
16623
16612
|
en: 'Provincial anniversary day'
|
|
16624
|
-
}
|
|
16625
|
-
note: 'varies if coincides with easter monday'
|
|
16613
|
+
}
|
|
16626
16614
|
}
|
|
16627
16615
|
}
|
|
16628
16616
|
},
|