date-holidays 3.29.0 → 3.30.0
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 +22 -0
- package/LICENSE +2 -0
- package/README.md +12 -3
- package/data/countries/AR.yaml +41 -12
- package/data/countries/DE.yaml +1 -1
- package/data/countries/IT.yaml +1 -1
- package/data/countries/NF.yaml +54 -0
- package/data/countries/PK.yaml +65 -0
- package/data/holidays.json +200 -12
- 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/eslint.config.mjs +74 -0
- package/lib/data.cjs +200 -12
- package/package.json +11 -10
- package/src/data.js +21013 -20825
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
2
|
+
import js from '@eslint/js'
|
|
3
|
+
import globals from 'globals'
|
|
4
|
+
import { flatConfigs as importX } from 'eslint-plugin-import-x'
|
|
5
|
+
import n from 'eslint-plugin-n'
|
|
6
|
+
import promise from 'eslint-plugin-promise'
|
|
7
|
+
import { configs as ymlConfigs } from 'eslint-plugin-yml'
|
|
8
|
+
|
|
9
|
+
export default defineConfig([
|
|
10
|
+
globalIgnores([
|
|
11
|
+
'coverage/**',
|
|
12
|
+
'dist/**',
|
|
13
|
+
'lib/**',
|
|
14
|
+
'src/data.js',
|
|
15
|
+
'pnpm-lock.yaml'
|
|
16
|
+
]),
|
|
17
|
+
{
|
|
18
|
+
files: ['**/*.js', '**/*.mjs'],
|
|
19
|
+
languageOptions: {
|
|
20
|
+
globals: {
|
|
21
|
+
...globals.browser,
|
|
22
|
+
...globals.node,
|
|
23
|
+
...globals.mocha
|
|
24
|
+
},
|
|
25
|
+
ecmaVersion: 'latest',
|
|
26
|
+
sourceType: 'module'
|
|
27
|
+
},
|
|
28
|
+
extends: [
|
|
29
|
+
js.configs.recommended,
|
|
30
|
+
n.configs['flat/recommended'],
|
|
31
|
+
promise.configs['flat/recommended'],
|
|
32
|
+
importX.recommended
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
files: ['**/*.cjs'],
|
|
37
|
+
languageOptions: {
|
|
38
|
+
globals: {
|
|
39
|
+
...globals.node,
|
|
40
|
+
...globals.mocha
|
|
41
|
+
},
|
|
42
|
+
ecmaVersion: 'latest',
|
|
43
|
+
sourceType: 'commonjs'
|
|
44
|
+
},
|
|
45
|
+
extends: [
|
|
46
|
+
js.configs.recommended,
|
|
47
|
+
n.configs['flat/recommended'],
|
|
48
|
+
promise.configs['flat/recommended'],
|
|
49
|
+
importX.recommended
|
|
50
|
+
],
|
|
51
|
+
rules: {
|
|
52
|
+
'n/no-unsupported-features/es-syntax': 'off'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
// Tooling and example files follow different constraints than runtime code.
|
|
57
|
+
// Relax strict n/* checks here to avoid non-actionable lint noise.
|
|
58
|
+
files: ['eslint.config.mjs', 'examples/**', 'scripts/**'],
|
|
59
|
+
rules: {
|
|
60
|
+
'n/no-unpublished-import': 'off',
|
|
61
|
+
'n/no-missing-require': 'off',
|
|
62
|
+
'n/no-unsupported-features/es-syntax': 'off',
|
|
63
|
+
'n/no-process-exit': 'off',
|
|
64
|
+
'n/hashbang': 'off'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
files: ['**/*.yaml', '**/*.yml'],
|
|
69
|
+
extends: [ymlConfigs['flat/standard']],
|
|
70
|
+
rules: {
|
|
71
|
+
'yml/plain-scalar': 'off'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
])
|
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": "2026-05-
|
|
6
|
+
"version": "2026-05-20",
|
|
7
7
|
"license": "CC-BY-SA-3",
|
|
8
8
|
"holidays": {
|
|
9
9
|
"AD": {
|
|
@@ -750,8 +750,8 @@ const data = {
|
|
|
750
750
|
},
|
|
751
751
|
"05-25": {
|
|
752
752
|
"name": {
|
|
753
|
-
"en": "Day of the
|
|
754
|
-
"es": "
|
|
753
|
+
"en": "Day of the May Revolution",
|
|
754
|
+
"es": "Día de la Revolución de Mayo"
|
|
755
755
|
}
|
|
756
756
|
},
|
|
757
757
|
"06-10": {
|
|
@@ -778,10 +778,10 @@ const data = {
|
|
|
778
778
|
}
|
|
779
779
|
]
|
|
780
780
|
},
|
|
781
|
-
"06-17 if tuesday,wednesday then previous monday if thursday then next monday": {
|
|
781
|
+
"06-17 if tuesday,wednesday then previous monday if thursday,friday then next monday": {
|
|
782
782
|
"name": {
|
|
783
783
|
"en": "Anniversary of the Passing to Immortality of General Martín Miguel de Güemes",
|
|
784
|
-
"es": "
|
|
784
|
+
"es": "Paso a la Inmortalidad del General Don Martín Miguel de Güemes"
|
|
785
785
|
},
|
|
786
786
|
"active": [
|
|
787
787
|
{
|
|
@@ -789,7 +789,7 @@ const data = {
|
|
|
789
789
|
}
|
|
790
790
|
]
|
|
791
791
|
},
|
|
792
|
-
"06-20": {
|
|
792
|
+
"06-20 #1": {
|
|
793
793
|
"name": {
|
|
794
794
|
"en": "National Flag Day",
|
|
795
795
|
"es": "Día de la Bandera"
|
|
@@ -802,7 +802,15 @@ const data = {
|
|
|
802
802
|
{
|
|
803
803
|
"from": "1991-12-18",
|
|
804
804
|
"to": "1995-01-10"
|
|
805
|
-
}
|
|
805
|
+
}
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
"06-20 #2": {
|
|
809
|
+
"name": {
|
|
810
|
+
"en": "Anniversary of the Passing to Immortality of General Manuel Belgrano",
|
|
811
|
+
"es": "Paso a la Inmortalidad del General D. Manuel Belgrano"
|
|
812
|
+
},
|
|
813
|
+
"active": [
|
|
806
814
|
{
|
|
807
815
|
"from": "2010-11-03"
|
|
808
816
|
}
|
|
@@ -822,8 +830,8 @@ const data = {
|
|
|
822
830
|
},
|
|
823
831
|
"3rd monday in June": {
|
|
824
832
|
"name": {
|
|
825
|
-
"en": "
|
|
826
|
-
"es": "
|
|
833
|
+
"en": "Anniversary of the Passing to Immortality of General Manuel Belgrano",
|
|
834
|
+
"es": "Paso a la Inmortalidad del General D. Manuel Belgrano"
|
|
827
835
|
},
|
|
828
836
|
"active": [
|
|
829
837
|
{
|
|
@@ -984,7 +992,10 @@ const data = {
|
|
|
984
992
|
]
|
|
985
993
|
},
|
|
986
994
|
"12-08": {
|
|
987
|
-
"
|
|
995
|
+
"name": {
|
|
996
|
+
"en": "Immaculate Conception of Mary",
|
|
997
|
+
"es": "Inmaculada Concepción de María"
|
|
998
|
+
},
|
|
988
999
|
"active": [
|
|
989
1000
|
{
|
|
990
1001
|
"from": "1995-01-11"
|
|
@@ -1038,6 +1049,27 @@ const data = {
|
|
|
1038
1049
|
"es": "Feriado Nacional de los Campeones Mundiales de Fútbol en la Copa Mundial de la FIFA CATAR 2022"
|
|
1039
1050
|
}
|
|
1040
1051
|
},
|
|
1052
|
+
"2026-03-23": {
|
|
1053
|
+
"name": {
|
|
1054
|
+
"en": "Tourism Purposes Non-Working Day",
|
|
1055
|
+
"es": "Día no laborable con fines turísticos"
|
|
1056
|
+
},
|
|
1057
|
+
"type": "optional"
|
|
1058
|
+
},
|
|
1059
|
+
"2026-07-10": {
|
|
1060
|
+
"name": {
|
|
1061
|
+
"en": "Tourism Purposes Non-Working Day",
|
|
1062
|
+
"es": "Día no laborable con fines turísticos"
|
|
1063
|
+
},
|
|
1064
|
+
"type": "optional"
|
|
1065
|
+
},
|
|
1066
|
+
"2026-12-07": {
|
|
1067
|
+
"name": {
|
|
1068
|
+
"en": "Tourism Purposes Non-Working Day",
|
|
1069
|
+
"es": "Día no laborable con fines turísticos"
|
|
1070
|
+
},
|
|
1071
|
+
"type": "optional"
|
|
1072
|
+
},
|
|
1041
1073
|
"1980-10-22": {
|
|
1042
1074
|
"name": {
|
|
1043
1075
|
"en": "National Census 1980",
|
|
@@ -8476,7 +8508,7 @@ const data = {
|
|
|
8476
8508
|
}
|
|
8477
8509
|
},
|
|
8478
8510
|
"MV": {
|
|
8479
|
-
"name": "Mecklenburg
|
|
8511
|
+
"name": "Mecklenburg-Vorpommern",
|
|
8480
8512
|
"days": {
|
|
8481
8513
|
"03-08 since 2023": {
|
|
8482
8514
|
"_name": "03-08"
|
|
@@ -14914,7 +14946,7 @@ const data = {
|
|
|
14914
14946
|
"name": "Piedmont",
|
|
14915
14947
|
"regions": {
|
|
14916
14948
|
"TO": {
|
|
14917
|
-
"
|
|
14949
|
+
"names": {
|
|
14918
14950
|
"it": "Torino",
|
|
14919
14951
|
"en": "Turin"
|
|
14920
14952
|
},
|
|
@@ -19794,6 +19826,70 @@ const data = {
|
|
|
19794
19826
|
}
|
|
19795
19827
|
}
|
|
19796
19828
|
},
|
|
19829
|
+
"NF": {
|
|
19830
|
+
"names": {
|
|
19831
|
+
"en": "Norfolk Island"
|
|
19832
|
+
},
|
|
19833
|
+
"dayoff": "sunday",
|
|
19834
|
+
"langs": [
|
|
19835
|
+
"en"
|
|
19836
|
+
],
|
|
19837
|
+
"zones": [
|
|
19838
|
+
"Pacific/Norfolk"
|
|
19839
|
+
],
|
|
19840
|
+
"_days": "AU",
|
|
19841
|
+
"days": {
|
|
19842
|
+
"2nd monday in March": false,
|
|
19843
|
+
"03-06 and if saturday,sunday then next monday": {
|
|
19844
|
+
"name": {
|
|
19845
|
+
"en": "Foundation Day"
|
|
19846
|
+
},
|
|
19847
|
+
"type": "public"
|
|
19848
|
+
},
|
|
19849
|
+
"easter": false,
|
|
19850
|
+
"04-25 if sunday then next monday": false,
|
|
19851
|
+
"2020-04-27": false,
|
|
19852
|
+
"04-25": {
|
|
19853
|
+
"name": {
|
|
19854
|
+
"en": "Anzac Day"
|
|
19855
|
+
}
|
|
19856
|
+
},
|
|
19857
|
+
"easter -1": false,
|
|
19858
|
+
"monday after 05-27": false,
|
|
19859
|
+
"06-08 if saturday,sunday then next monday": {
|
|
19860
|
+
"substitute": true,
|
|
19861
|
+
"name": {
|
|
19862
|
+
"en": "Anniversary (Bounty) Day"
|
|
19863
|
+
},
|
|
19864
|
+
"type": "public"
|
|
19865
|
+
},
|
|
19866
|
+
"2nd monday in June": false,
|
|
19867
|
+
"Monday after 2nd saturday in June prior to 2022-09-09": {
|
|
19868
|
+
"substitute": true,
|
|
19869
|
+
"name": {
|
|
19870
|
+
"en": "Queen's Birthday"
|
|
19871
|
+
}
|
|
19872
|
+
},
|
|
19873
|
+
"Monday after 2nd saturday in June since 2022-09-09 if is public holiday then next monday": {
|
|
19874
|
+
"name": {
|
|
19875
|
+
"en": "King's Birthday"
|
|
19876
|
+
}
|
|
19877
|
+
},
|
|
19878
|
+
"1st monday in October": false,
|
|
19879
|
+
"2nd monday in October": {
|
|
19880
|
+
"name": {
|
|
19881
|
+
"en": "Norfolk Island Agricultural Show"
|
|
19882
|
+
},
|
|
19883
|
+
"type": "public"
|
|
19884
|
+
},
|
|
19885
|
+
"Wednesday before 12-01": {
|
|
19886
|
+
"name": {
|
|
19887
|
+
"en": "Thanksgiving Day"
|
|
19888
|
+
},
|
|
19889
|
+
"type": "public"
|
|
19890
|
+
}
|
|
19891
|
+
}
|
|
19892
|
+
},
|
|
19797
19893
|
"NG": {
|
|
19798
19894
|
"names": {
|
|
19799
19895
|
"en": "Nigeria"
|
|
@@ -21342,6 +21438,98 @@ const data = {
|
|
|
21342
21438
|
}
|
|
21343
21439
|
}
|
|
21344
21440
|
},
|
|
21441
|
+
"PK": {
|
|
21442
|
+
"names": {
|
|
21443
|
+
"en": "Pakistan",
|
|
21444
|
+
"ur": "پاکستان"
|
|
21445
|
+
},
|
|
21446
|
+
"langs": [
|
|
21447
|
+
"ur"
|
|
21448
|
+
],
|
|
21449
|
+
"zones": [
|
|
21450
|
+
"Asia/Karachi"
|
|
21451
|
+
],
|
|
21452
|
+
"dayoff": "sunday",
|
|
21453
|
+
"days": {
|
|
21454
|
+
"02-05": {
|
|
21455
|
+
"name": {
|
|
21456
|
+
"en": "Kashmir Day",
|
|
21457
|
+
"ur": "یومِ یکجہتیِ کشمیر"
|
|
21458
|
+
}
|
|
21459
|
+
},
|
|
21460
|
+
"03-23": {
|
|
21461
|
+
"name": {
|
|
21462
|
+
"en": "Pakistan Day",
|
|
21463
|
+
"ur": "یومِ پاکستان"
|
|
21464
|
+
}
|
|
21465
|
+
},
|
|
21466
|
+
"05-01": {
|
|
21467
|
+
"_name": "05-01"
|
|
21468
|
+
},
|
|
21469
|
+
"05-28": {
|
|
21470
|
+
"name": {
|
|
21471
|
+
"en": "Youm-e-Takbeer",
|
|
21472
|
+
"ur": "یومِ تکبیر"
|
|
21473
|
+
}
|
|
21474
|
+
},
|
|
21475
|
+
"08-14": {
|
|
21476
|
+
"name": {
|
|
21477
|
+
"en": "Independence Day",
|
|
21478
|
+
"ur": "یومِ آزادی"
|
|
21479
|
+
}
|
|
21480
|
+
},
|
|
21481
|
+
"11-09": {
|
|
21482
|
+
"name": {
|
|
21483
|
+
"en": "Iqbal Day",
|
|
21484
|
+
"ur": "یومِ اقبال"
|
|
21485
|
+
}
|
|
21486
|
+
},
|
|
21487
|
+
"12-25": {
|
|
21488
|
+
"name": {
|
|
21489
|
+
"en": "Quaid-e-Azam Day",
|
|
21490
|
+
"ur": "یومِ قائدِاعظم"
|
|
21491
|
+
}
|
|
21492
|
+
},
|
|
21493
|
+
"9 Muharram P2D": {
|
|
21494
|
+
"name": {
|
|
21495
|
+
"en": "Ashura",
|
|
21496
|
+
"ur": "عاشورہ"
|
|
21497
|
+
}
|
|
21498
|
+
},
|
|
21499
|
+
"12 Rabi al-awwal": {
|
|
21500
|
+
"_name": "12 Rabi al-awwal"
|
|
21501
|
+
},
|
|
21502
|
+
"1 Shawwal P3D": {
|
|
21503
|
+
"_name": "1 Shawwal"
|
|
21504
|
+
},
|
|
21505
|
+
"10 Dhu al-Hijjah P3D": {
|
|
21506
|
+
"_name": "10 Dhu al-Hijjah"
|
|
21507
|
+
}
|
|
21508
|
+
},
|
|
21509
|
+
"states": {
|
|
21510
|
+
"BA": {
|
|
21511
|
+
"name": "Balochistan"
|
|
21512
|
+
},
|
|
21513
|
+
"GB": {
|
|
21514
|
+
"name": "Gilgit-Baltistan"
|
|
21515
|
+
},
|
|
21516
|
+
"IS": {
|
|
21517
|
+
"name": "Islamabad"
|
|
21518
|
+
},
|
|
21519
|
+
"JK": {
|
|
21520
|
+
"name": "Azad Kashmir"
|
|
21521
|
+
},
|
|
21522
|
+
"KP": {
|
|
21523
|
+
"name": "Khyber Pakhtunkhwa"
|
|
21524
|
+
},
|
|
21525
|
+
"PB": {
|
|
21526
|
+
"name": "Punjab"
|
|
21527
|
+
},
|
|
21528
|
+
"SD": {
|
|
21529
|
+
"name": "Sindh"
|
|
21530
|
+
}
|
|
21531
|
+
}
|
|
21532
|
+
},
|
|
21345
21533
|
"PL": {
|
|
21346
21534
|
"names": {
|
|
21347
21535
|
"pl": "Polska",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "date-holidays",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.30.0",
|
|
4
4
|
"description": "worldwide holidays",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"holidays",
|
|
@@ -250,14 +250,15 @@
|
|
|
250
250
|
"@babel/preset-env": "^7.29.5",
|
|
251
251
|
"@commitlint/cli": "^18.6.1",
|
|
252
252
|
"@commitlint/config-conventional": "^18.6.3",
|
|
253
|
+
"@eslint/js": "^10.0.1",
|
|
253
254
|
"@mocha/contributors": "git+https://github.com/commenthol/contributors.git#semver:1.1.0-0",
|
|
254
255
|
"babel-loader": "^9.2.1",
|
|
255
|
-
"eslint": "^
|
|
256
|
-
"eslint-
|
|
257
|
-
"eslint-plugin-
|
|
258
|
-
"eslint-plugin-
|
|
259
|
-
"eslint-plugin-
|
|
260
|
-
"
|
|
256
|
+
"eslint": "^10.4.0",
|
|
257
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
258
|
+
"eslint-plugin-n": "^18.0.1",
|
|
259
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
260
|
+
"eslint-plugin-yml": "^3.3.2",
|
|
261
|
+
"globals": "^17.6.0",
|
|
261
262
|
"husky": "^9.1.7",
|
|
262
263
|
"mocha": "^11.7.5",
|
|
263
264
|
"npm-run-all": "^4.1.5",
|
|
@@ -265,7 +266,7 @@
|
|
|
265
266
|
"rollup": "^2.80.0",
|
|
266
267
|
"tstyche": "^4.3.0",
|
|
267
268
|
"watch-run": "^1.2.5",
|
|
268
|
-
"webpack": "^5.
|
|
269
|
+
"webpack": "^5.107.0",
|
|
269
270
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
270
271
|
"webpack-cli": "^5.1.4"
|
|
271
272
|
},
|
|
@@ -273,7 +274,6 @@
|
|
|
273
274
|
"node": ">=12.0.0"
|
|
274
275
|
},
|
|
275
276
|
"c4uIgnore": {
|
|
276
|
-
"eslint-plugin-yml": "^0.15.0 // newer versions do too much checking",
|
|
277
277
|
"rollup": "^2.79.1 // v3 changed exports; needs refactoring first."
|
|
278
278
|
},
|
|
279
279
|
"scripts": {
|
|
@@ -287,7 +287,8 @@
|
|
|
287
287
|
"clean:modules": "rimraf node_modules",
|
|
288
288
|
"doc:attrib": "node scripts/attributions.cjs",
|
|
289
289
|
"doc:tree": "node scripts/addtree.cjs",
|
|
290
|
-
"lint": "eslint
|
|
290
|
+
"lint": "eslint",
|
|
291
|
+
"lint:fix": "eslint --fix",
|
|
291
292
|
"fixtures": "mocha test/all.mocha.js --writetests --countries",
|
|
292
293
|
"test": "npm-run-all test:*",
|
|
293
294
|
"test:ci": "mocha",
|