es-regional-holidays 0.1.0 → 0.1.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/package.json CHANGED
@@ -1,34 +1,56 @@
1
1
  {
2
2
  "name": "es-regional-holidays",
3
- "version": "0.1.0",
4
- "description": "A JavaScript library to get public holidays in Spain by region.",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
3
+ "version": "0.1.1",
4
+ "description": "A JavaScript/TypeScript library to get public holidays in Spain by region.",
5
+ "author": "jmelop",
6
+ "license": "MIT",
9
7
  "repository": {
10
8
  "type": "git",
11
9
  "url": "git+https://github.com/jmelop/es-regional-holidays.git"
12
10
  },
11
+ "bugs": {
12
+ "url": "https://github.com/jmelop/es-regional-holidays/issues"
13
+ },
14
+ "homepage": "https://github.com/jmelop/es-regional-holidays#readme",
13
15
  "keywords": [
16
+ "spain",
17
+ "holidays",
18
+ "public-holidays",
19
+ "calendar",
20
+ "boe",
21
+ "regional-holidays",
22
+ "autonomous-communities",
14
23
  "españa",
15
24
  "festivos",
16
25
  "calendario-laboral",
17
26
  "dias-no-laborables",
18
- "festivos-autonomicos",
19
- "boe",
20
- "holidays",
21
- "public-holidays",
22
- "calendar"
27
+ "festivos-autonomicos"
23
28
  ],
24
- "author": "jmelop",
25
- "license": "ISC",
26
- "bugs": {
27
- "url": "https://github.com/jmelop/es-regional-holidays/issues"
29
+ "main": "./dist/index.js",
30
+ "module": "./dist/index.mjs",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.mjs",
36
+ "require": "./dist/index.js"
37
+ }
38
+ },
39
+ "files": [
40
+ "dist",
41
+ "README.md",
42
+ "LICENSE.md"
43
+ ],
44
+ "sideEffects": false,
45
+ "scripts": {
46
+ "build": "tsup src/index.ts --format esm,cjs --dts --clean",
47
+ "test": "vitest run",
48
+ "test:watch": "vitest",
49
+ "prepublishOnly": "npm run build && npm test"
28
50
  },
29
- "homepage": "https://github.com/jmelop/es-regional-holidays#readme",
30
51
  "devDependencies": {
31
52
  "tsup": "^8.5.1",
32
- "typescript": "^5.9.3"
53
+ "typescript": "^5.9.3",
54
+ "vitest": "^2.0.5"
33
55
  }
34
56
  }
@@ -1,452 +0,0 @@
1
- {
2
- "source": "BOE-A-2025-21667",
3
- "year": 2026,
4
- "legend": {
5
- "*": "Fiesta de ámbito nacional no sustituible",
6
- "**": "Fiesta nacional respecto de la que la Comunidad Autónoma no ha ejercido la facultad de sustitución",
7
- "***": "Fiesta propia de la Comunidad Autónoma (incluye Ceuta y Melilla)"
8
- },
9
- "regions": {
10
- "Andalucía": "AN",
11
- "Aragón": "AR",
12
- "Asturias": "AS",
13
- "Illes Balears": "IB",
14
- "Canarias (1)": "CN",
15
- "Cantabria": "CB",
16
- "Castilla-La Mancha": "CM",
17
- "Castilla y León": "CL",
18
- "Cataluña (2)": "CT",
19
- "Extremadura": "EX",
20
- "Galicia": "GA",
21
- "Com. Madrid": "MD",
22
- "Región Murcia": "MC",
23
- "C. Foral Navarra": "NC",
24
- "País Vasco": "PV",
25
- "La Rioja": "RI",
26
- "Comunitat Valenciana": "VC",
27
- "Ciudad de Ceuta": "CE",
28
- "Ciudad de Melilla": "ML"
29
- },
30
- "holidays": [
31
- {
32
- "date": "2026-01-01",
33
- "name": "Año Nuevo",
34
- "regions": {
35
- "AN": "*",
36
- "AR": "*",
37
- "AS": "*",
38
- "IB": "*",
39
- "CN": "*",
40
- "CB": "*",
41
- "CM": "*",
42
- "CL": "*",
43
- "CT": "*",
44
- "EX": "*",
45
- "GA": "*",
46
- "MD": "*",
47
- "MC": "*",
48
- "NC": "*",
49
- "PV": "*",
50
- "RI": "*",
51
- "VC": "*",
52
- "CE": "*",
53
- "ML": "*"
54
- }
55
- },
56
- {
57
- "date": "2026-01-06",
58
- "name": "Epifanía del Señor",
59
- "regions": {
60
- "AN": "**",
61
- "AR": "**",
62
- "AS": "**",
63
- "IB": "**",
64
- "CN": "**",
65
- "CB": "**",
66
- "CM": "**",
67
- "CL": "**",
68
- "CT": "**",
69
- "EX": "**",
70
- "GA": "**",
71
- "MD": "**",
72
- "MC": "**",
73
- "NC": "**",
74
- "PV": "**",
75
- "RI": "**",
76
- "VC": "**",
77
- "CE": "**",
78
- "ML": "**"
79
- }
80
- },
81
- {
82
- "date": "2026-02-28",
83
- "name": "Día de Andalucía",
84
- "regions": {
85
- "AN": "***"
86
- }
87
- },
88
- {
89
- "date": "2026-03-02",
90
- "name": "Lunes siguiente al Día de les Illes Balears",
91
- "regions": {
92
- "IB": "***"
93
- }
94
- },
95
- {
96
- "date": "2026-03-19",
97
- "name": "San José",
98
- "regions": {
99
- "GA": "**",
100
- "MC": "**",
101
- "NC": "**",
102
- "PV": "**",
103
- "VC": "**"
104
- }
105
- },
106
- {
107
- "date": "2026-03-20",
108
- "name": "Fiesta del Eid Fitr",
109
- "regions": {
110
- "ML": "***"
111
- }
112
- },
113
- {
114
- "date": "2026-04-02",
115
- "name": "Jueves Santo",
116
- "regions": {
117
- "AN": "**",
118
- "AR": "**",
119
- "AS": "**",
120
- "IB": "**",
121
- "CN": "**",
122
- "CB": "**",
123
- "CM": "**",
124
- "CL": "**",
125
- "EX": "**",
126
- "GA": "**",
127
- "MD": "**",
128
- "MC": "**",
129
- "NC": "**",
130
- "PV": "**",
131
- "RI": "**",
132
- "CE": "**",
133
- "ML": "**"
134
- }
135
- },
136
- {
137
- "date": "2026-04-03",
138
- "name": "Viernes Santo",
139
- "regions": {
140
- "AN": "*",
141
- "AR": "*",
142
- "AS": "*",
143
- "IB": "*",
144
- "CN": "*",
145
- "CB": "*",
146
- "CM": "*",
147
- "CL": "*",
148
- "CT": "*",
149
- "EX": "*",
150
- "GA": "*",
151
- "MD": "*",
152
- "MC": "*",
153
- "NC": "*",
154
- "PV": "*",
155
- "RI": "*",
156
- "VC": "*",
157
- "CE": "*",
158
- "ML": "*"
159
- }
160
- },
161
- {
162
- "date": "2026-04-06",
163
- "name": "Lunes de Pascua",
164
- "regions": {
165
- "IB": "***",
166
- "CM": "***",
167
- "CT": "***",
168
- "NC": "***",
169
- "PV": "***",
170
- "RI": "***",
171
- "VC": "***"
172
- }
173
- },
174
- {
175
- "date": "2026-04-23",
176
- "name": "San Jorge/Día de Aragón",
177
- "regions": {
178
- "AR": "***"
179
- }
180
- },
181
- {
182
- "date": "2026-04-23",
183
- "name": "Fiesta de Castilla y León",
184
- "regions": {
185
- "CL": "***"
186
- }
187
- },
188
- {
189
- "date": "2026-05-01",
190
- "name": "Fiesta del Trabajo",
191
- "regions": {
192
- "AN": "*",
193
- "AR": "*",
194
- "AS": "*",
195
- "IB": "*",
196
- "CN": "*",
197
- "CB": "*",
198
- "CM": "*",
199
- "CL": "*",
200
- "CT": "*",
201
- "EX": "*",
202
- "GA": "*",
203
- "MD": "*",
204
- "MC": "*",
205
- "NC": "*",
206
- "PV": "*",
207
- "RI": "*",
208
- "VC": "*",
209
- "CE": "*",
210
- "ML": "*"
211
- }
212
- },
213
- {
214
- "date": "2026-05-02",
215
- "name": "Fiesta de la Comunidad de Madrid",
216
- "regions": {
217
- "MD": "***"
218
- }
219
- },
220
- {
221
- "date": "2026-05-27",
222
- "name": "Fiesta Sacrificio-Eidul Adha",
223
- "regions": {
224
- "CE": "***"
225
- }
226
- },
227
- {
228
- "date": "2026-05-27",
229
- "name": "Fiesta Sacrificio-Aid al Adha",
230
- "regions": {
231
- "ML": "***"
232
- }
233
- },
234
- {
235
- "date": "2026-05-30",
236
- "name": "Día de Canarias",
237
- "regions": {
238
- "CN": "***"
239
- }
240
- },
241
- {
242
- "date": "2026-06-04",
243
- "name": "Corpus Christi",
244
- "regions": {
245
- "CM": "***"
246
- }
247
- },
248
- {
249
- "date": "2026-07-25",
250
- "name": "Santiago Apóstol/Día Nacional de Galicia",
251
- "regions": {
252
- "GA": "**",
253
- "PV": "**"
254
- }
255
- },
256
- {
257
- "date": "2026-07-28",
258
- "name": "Día de las Instituciones de Cantabria",
259
- "regions": {
260
- "CB": "***"
261
- }
262
- },
263
- {
264
- "date": "2026-08-05",
265
- "name": "Nuestra Señora de África",
266
- "regions": {
267
- "CE": "***"
268
- }
269
- },
270
- {
271
- "date": "2026-08-15",
272
- "name": "Asunción de la Virgen",
273
- "regions": {
274
- "AN": "*",
275
- "AR": "*",
276
- "AS": "*",
277
- "IB": "*",
278
- "CN": "*",
279
- "CB": "*",
280
- "CM": "*",
281
- "CL": "*",
282
- "CT": "*",
283
- "EX": "*",
284
- "GA": "*",
285
- "MD": "*",
286
- "MC": "*",
287
- "NC": "*",
288
- "PV": "*",
289
- "RI": "*",
290
- "VC": "*",
291
- "CE": "*",
292
- "ML": "*"
293
- }
294
- },
295
- {
296
- "date": "2026-09-02",
297
- "name": "Día de Ceuta",
298
- "regions": {
299
- "CE": "***"
300
- }
301
- },
302
- {
303
- "date": "2026-09-08",
304
- "name": "Día de Asturias",
305
- "regions": {
306
- "AS": "***"
307
- }
308
- },
309
- {
310
- "date": "2026-09-08",
311
- "name": "Día de Extremadura",
312
- "regions": {
313
- "EX": "***"
314
- }
315
- },
316
- {
317
- "date": "2026-09-11",
318
- "name": "Fiesta Nacional de Cataluña",
319
- "regions": {
320
- "CT": "***"
321
- }
322
- },
323
- {
324
- "date": "2026-09-15",
325
- "name": "La Bien Aparecida",
326
- "regions": {
327
- "CB": "***"
328
- }
329
- },
330
- {
331
- "date": "2026-10-09",
332
- "name": "Día de la Comunitat Valenciana",
333
- "regions": {
334
- "VC": "***"
335
- }
336
- },
337
- {
338
- "date": "2026-10-12",
339
- "name": "Fiesta Nacional de España",
340
- "regions": {
341
- "AN": "*",
342
- "AR": "*",
343
- "AS": "*",
344
- "IB": "*",
345
- "CN": "*",
346
- "CB": "*",
347
- "CM": "*",
348
- "CL": "*",
349
- "CT": "*",
350
- "EX": "*",
351
- "GA": "*",
352
- "MD": "*",
353
- "MC": "*",
354
- "NC": "*",
355
- "PV": "*",
356
- "RI": "*",
357
- "VC": "*",
358
- "CE": "*",
359
- "ML": "*"
360
- }
361
- },
362
- {
363
- "date": "2026-11-02",
364
- "name": "Día siguiente a Todos los Santos",
365
- "regions": {
366
- "AN": "**",
367
- "AR": "**",
368
- "AS": "**",
369
- "CN": "**",
370
- "CM": "**",
371
- "CL": "**",
372
- "EX": "**",
373
- "MD": "**",
374
- "NC": "**"
375
- }
376
- },
377
- {
378
- "date": "2026-12-07",
379
- "name": "Lunes siguiente al Día de la Constitución Española",
380
- "regions": {
381
- "AN": "**",
382
- "AR": "**",
383
- "AS": "**",
384
- "CB": "**",
385
- "CL": "**",
386
- "EX": "**",
387
- "MD": "**",
388
- "MC": "**",
389
- "RI": "**",
390
- "ML": "**"
391
- }
392
- },
393
- {
394
- "date": "2026-12-08",
395
- "name": "Inmaculada Concepción",
396
- "regions": {
397
- "AN": "*",
398
- "AR": "*",
399
- "AS": "*",
400
- "IB": "*",
401
- "CN": "*",
402
- "CB": "*",
403
- "CM": "*",
404
- "CL": "*",
405
- "CT": "*",
406
- "EX": "*",
407
- "GA": "*",
408
- "MD": "*",
409
- "MC": "*",
410
- "NC": "*",
411
- "PV": "*",
412
- "RI": "*",
413
- "VC": "*",
414
- "CE": "*",
415
- "ML": "*"
416
- }
417
- },
418
- {
419
- "date": "2026-12-25",
420
- "name": "Natividad del Señor",
421
- "regions": {
422
- "AN": "*",
423
- "AR": "*",
424
- "AS": "*",
425
- "IB": "*",
426
- "CN": "*",
427
- "CB": "*",
428
- "CM": "*",
429
- "CL": "*",
430
- "CT": "*",
431
- "EX": "*",
432
- "GA": "*",
433
- "MD": "*",
434
- "MC": "*",
435
- "NC": "*",
436
- "PV": "*",
437
- "RI": "*",
438
- "VC": "*",
439
- "CE": "*",
440
- "ML": "*"
441
- }
442
- },
443
- {
444
- "date": "2026-12-26",
445
- "name": "San Esteban",
446
- "regions": {
447
- "IB": "***",
448
- "CT": "***"
449
- }
450
- }
451
- ]
452
- }