date-holidays 3.14.0 → 3.14.3

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.14.3](https://github.com/commenthol/date-holidays/compare/3.14.2...3.14.3) (2022-02-25)
4
+
5
+ - docs(CA): add reference for National Day for Truth and Reconciliation [ffb6c908](https://github.com/commenthol/date-holidays/commit/ffb6c9080a71966bcf3bf7231bcf407801515304)
6
+ - Update CA.yaml [33322664](https://github.com/commenthol/date-holidays/commit/3332266472bb4f85b955081e3d8f48bff3b76360)
7
+ - docs: update spec [32e05c32](https://github.com/commenthol/date-holidays/commit/32e05c326ada41f81f1d163e862824bdec0311c0)
8
+ - fix(HK): Use new if is holiday rule for day after mid-autumn festival [653bc7a9](https://github.com/commenthol/date-holidays/commit/653bc7a9b7af388833e16ec81d907b7448d8c00e)
9
+ - fix(NZ-OTA): Move Provincial anniversary day if on Easter Monday [95cbb0ff](https://github.com/commenthol/date-holidays/commit/95cbb0ff8fc02e7404750c858b6309f810916c1f)
10
+ - fix(CH-GL): Move Näfelser Fahrt if on Maundy Thursday [aaa171e4](https://github.com/commenthol/date-holidays/commit/aaa171e46e53e9de5db6e328ee343f44990661f0)
11
+ - fix(CH): Add Maundy Thursday as observance [a0e69bab](https://github.com/commenthol/date-holidays/commit/a0e69bab7a78f8bda036f13717b2c25a9aaa79f0)
12
+
13
+ ## [3.14.2](https://github.com/commenthol/date-holidays/compare/3.14.1...3.14.2) (2022-01-12)
14
+
15
+ - fix(IL): join Mimouna with 7th day of Pesach [e85534c9](https://github.com/commenthol/date-holidays/commit/e85534c9d32182b05aa75af46b85870862d49fce)
16
+ - fix(IL): fix Mimouna date and add alternative names [17044cae](https://github.com/commenthol/date-holidays/commit/17044cae9444c54ab00e1e5acdea5259953e5751)
17
+ - chore(github-actions): enable push on master branch [302b2180](https://github.com/commenthol/date-holidays/commit/302b2180e9163a9e8d7c719dc5ccaa6d819c7c66)
18
+ - chore: use github actions [0b31c777](https://github.com/commenthol/date-holidays/commit/0b31c777248a03b04f10546ce141a01d89e170ce)
19
+
20
+ ## [3.14.1](https://github.com/commenthol/date-holidays/compare/3.14.0...3.14.1) (2022-01-11)
21
+
22
+ - fix(SE): mark optional [889f0b9d](https://github.com/commenthol/date-holidays/commit/889f0b9d27ef2e417f51b750e4061b829032e2c7)
23
+ - fix(SE): holiday observances [73caefb1](https://github.com/commenthol/date-holidays/commit/73caefb18ea17c77f6cdb845de5ca5a1465add88)
24
+ - Update SE.yaml [a9766ccd](https://github.com/commenthol/date-holidays/commit/a9766ccd9903771caefcfbe651e06e19265c40c1)
25
+
3
26
  ## [3.14.0](https://github.com/commenthol/date-holidays/compare/3.13.1...3.14.0) (2022-01-04)
4
27
 
5
28
  - fix(GB,GG,GI,IM,JE,#303): Spring bank holiday [59a33cec](https://github.com/commenthol/date-holidays/commit/59a33ceccf2b22dcd4b1f814614ef069d7472c54)
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > world-wide holidays in gregorian calender
4
4
 
5
5
  [![NPM version](https://badge.fury.io/js/date-holidays.svg)](https://www.npmjs.com/package/date-holidays/)
6
- [![Build Status](https://api.travis-ci.com/commenthol/date-holidays.svg?branch=master)](https://app.travis-ci.com/commenthol/date-holidays)
6
+ [![Build Status](https://github.com/commenthol/date-holidays/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/commenthol/date-holidays/actions/workflows/ci.yml?query=branch%3Amaster)
7
7
 
8
8
  This module provides dates of holidays for various countries, states and regions
9
9
  by type while considering the applicable timezone.
@@ -79,6 +79,11 @@ holidays:
79
79
  fr: Premier lundi d’août
80
80
  1st monday in September:
81
81
  _name: 05-01
82
+ # https://www.canada.ca/en/canadian-heritage/campaigns/national-day-truth-reconciliation.html
83
+ 09-30 since 2021:
84
+ name:
85
+ en: National Day for Truth and Reconciliation
86
+ fr: Journée nationale de la vérité et de la réconciliation
82
87
  2nd monday after 10-01:
83
88
  name:
84
89
  en: Thanksgiving
@@ -22,6 +22,9 @@ holidays:
22
22
  days:
23
23
  01-01:
24
24
  _name: 01-01
25
+ easter -3:
26
+ _name: easter -3
27
+ type: observance
25
28
  easter -2:
26
29
  _name: easter -2
27
30
  easter:
@@ -247,15 +250,11 @@ holidays:
247
250
  de: Berchtoldstag
248
251
  fr: Saint-Berthold
249
252
  type: optional
250
- # TODO: needs new rule: "Thursday after 04-02 if easter -3 then next Thursday"
251
- thursday after 04-02:
253
+ # if falls on easter -3 (Maundy Thursday) then move to next Thursday
254
+ Thursday after 04-02 if is observance holiday then next Thursday:
252
255
  name:
253
256
  de: Näfelser Fahrt
254
257
  fr: Bataille de Näfels
255
- disable:
256
- - "2023-04-06"
257
- enable:
258
- - "2023-04-13"
259
258
  3rd sunday after 09-01: false
260
259
  11-01:
261
260
  _name: 11-01
@@ -67,16 +67,11 @@ holidays:
67
67
  name:
68
68
  en: Hong Kong Special Administrative Region Establishment Day
69
69
  zh: 香港特別行政區成立紀念日
70
- # TODO: add rule: "chinese 08-0-15 if 07-01 then next weekday"
71
- chinese 08-0-16 and if Sunday then next Monday:
70
+ chinese 08-0-16 and if Sunday then next Monday if is public holiday then next day omit Saturday, Sunday:
72
71
  substitute: true
73
72
  name:
74
73
  en: The day following the Chinese Mid-Autumn Festival
75
74
  zh: 中秋節翌日
76
- disable:
77
- - "2020-10-01"
78
- enable:
79
- - "2020-10-02"
80
75
  10-01 and if Sunday then next Monday:
81
76
  substitute: true
82
77
  name:
@@ -93,7 +93,7 @@ holidays:
93
93
  note: Official holiday, business as usual
94
94
  15 Nisan:
95
95
  name:
96
- en: Passover
96
+ en: Passover (Pesach)
97
97
  he: פסח
98
98
  16 Nisan P5D:
99
99
  name:
@@ -103,14 +103,8 @@ holidays:
103
103
  note: School holiday, collective paid leave in many businesses and government offices
104
104
  21 Nisan:
105
105
  name:
106
- en: Seventh day of Passover
107
- he: שביעי של פסח
108
- 22 Nisan:
109
- name:
110
- en: Mimouna
111
- he: מימונה
112
- type: observance
113
- note: Unpaid leave upon request
106
+ en: Mimouna, Seventh day of Passover
107
+ he: מימונה, שביעי של פסח
114
108
  27 Nisan if Friday then previous Thursday if Sunday then next Monday:
115
109
  name:
116
110
  en: Holocaust Remembrance Day (Yom HaShoah)
@@ -145,13 +139,13 @@ holidays:
145
139
  type: school
146
140
  28 Iyyar:
147
141
  name:
148
- en: Jerusalem Day
142
+ en: Jerusalem Day (Yom Yerushalayim)
149
143
  he: יום ירושלים
150
144
  type: observance
151
145
  note: Optional paid leave
152
146
  6 Sivan:
153
147
  name:
154
- en: Shavuot
148
+ en: Shavuot (Feast of Weeks)
155
149
  he: שבועות
156
150
  17 Tamuz if Saturday then next Sunday:
157
151
  name:
@@ -238,11 +238,10 @@ holidays:
238
238
  en: Otago Province
239
239
  mi: Ōtākou
240
240
  days:
241
- # TODO: needs new rule "03-23 if ... then next monday if easter 1 then next Monday"
242
- 03-23 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday:
241
+ # 03-23 if ... then next monday if easter 1 then next Monday"; This will happen in 2285 the next time ;)
242
+ 03-23 if Tuesday,Wednesday,Thursday then previous Monday if Friday,Saturday,Sunday then next Monday if is public holiday then next Monday:
243
243
  name:
244
244
  en: Provincial anniversary day
245
- note: varies if coincides with easter monday
246
245
  STL:
247
246
  names:
248
247
  en: Southland
@@ -13,9 +13,10 @@ holidays:
13
13
  days:
14
14
  01-01:
15
15
  _name: 01-01
16
- 01-05:
16
+ 01-05 12:00:
17
17
  name:
18
18
  sv: Trettondagsafton
19
+ type: optional
19
20
  01-06:
20
21
  _name: 01-06
21
22
  01-13:
@@ -31,11 +32,11 @@ holidays:
31
32
  sv: Marie Bebådelsedag
32
33
  lat: Annuntiatio Mariæ
33
34
  type: observance
34
- 04-30:
35
+ 04-30 12:00:
35
36
  name:
36
37
  sv: Valborgsmässoafton
37
38
  en: Walpurgis Night
38
- type: observance
39
+ type: optional
39
40
  easter -3:
40
41
  _name: easter -3
41
42
  type: observance
@@ -46,6 +47,7 @@ holidays:
46
47
  type: observance
47
48
  easter -1:
48
49
  _name: easter -1
50
+ type: observance
49
51
  easter 1:
50
52
  _name: easter 1
51
53
  05-01:
@@ -56,6 +58,7 @@ holidays:
56
58
  name:
57
59
  sv: Pingstafton
58
60
  en: Whitsun Eve
61
+ type: observance
59
62
  easter 49:
60
63
  _name: easter 49
61
64
  type: public
@@ -80,11 +83,11 @@ holidays:
80
83
  sv: Midsommardagen
81
84
  en: Midsummer Day
82
85
  fi: Juhannuspäivä
83
- friday after 10-30:
86
+ friday after 10-30 12:00:
84
87
  name:
85
88
  sv: Allhelgonaafton
86
89
  en: Halloween
87
- type: observance
90
+ type: optional
88
91
  saturday after 10-31:
89
92
  _name: 11-01
90
93
  11-06:
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2022-01-04",
2
+ "version": "2022-02-25",
3
3
  "license": "CC-BY-SA-3",
4
4
  "holidays": {
5
5
  "AD": {
@@ -4205,6 +4205,12 @@
4205
4205
  "1st monday in September": {
4206
4206
  "_name": "05-01"
4207
4207
  },
4208
+ "09-30 since 2021": {
4209
+ "name": {
4210
+ "en": "National Day for Truth and Reconciliation",
4211
+ "fr": "Journée nationale de la vérité et de la réconciliation"
4212
+ }
4213
+ },
4208
4214
  "2nd monday after 10-01": {
4209
4215
  "name": {
4210
4216
  "en": "Thanksgiving",
@@ -4831,6 +4837,10 @@
4831
4837
  "01-01": {
4832
4838
  "_name": "01-01"
4833
4839
  },
4840
+ "easter -3": {
4841
+ "_name": "easter -3",
4842
+ "type": "observance"
4843
+ },
4834
4844
  "easter -2": {
4835
4845
  "_name": "easter -2"
4836
4846
  },
@@ -5154,17 +5164,11 @@
5154
5164
  },
5155
5165
  "type": "optional"
5156
5166
  },
5157
- "thursday after 04-02": {
5167
+ "Thursday after 04-02 if is observance holiday then next Thursday": {
5158
5168
  "name": {
5159
5169
  "de": "Näfelser Fahrt",
5160
5170
  "fr": "Bataille de Näfels"
5161
- },
5162
- "disable": [
5163
- "2023-04-06"
5164
- ],
5165
- "enable": [
5166
- "2023-04-13"
5167
- ]
5171
+ }
5168
5172
  },
5169
5173
  "3rd sunday after 09-01": false,
5170
5174
  "11-01": {
@@ -10586,18 +10590,12 @@
10586
10590
  "zh": "香港特別行政區成立紀念日"
10587
10591
  }
10588
10592
  },
10589
- "chinese 08-0-16 and if Sunday then next Monday": {
10593
+ "chinese 08-0-16 and if Sunday then next Monday if is public holiday then next day omit Saturday, Sunday": {
10590
10594
  "substitute": true,
10591
10595
  "name": {
10592
10596
  "en": "The day following the Chinese Mid-Autumn Festival",
10593
10597
  "zh": "中秋節翌日"
10594
- },
10595
- "disable": [
10596
- "2020-10-01"
10597
- ],
10598
- "enable": [
10599
- "2020-10-02"
10600
- ]
10598
+ }
10601
10599
  },
10602
10600
  "10-01 and if Sunday then next Monday": {
10603
10601
  "substitute": true,
@@ -11753,7 +11751,7 @@
11753
11751
  },
11754
11752
  "15 Nisan": {
11755
11753
  "name": {
11756
- "en": "Passover",
11754
+ "en": "Passover (Pesach)",
11757
11755
  "he": "פסח"
11758
11756
  }
11759
11757
  },
@@ -11767,18 +11765,10 @@
11767
11765
  },
11768
11766
  "21 Nisan": {
11769
11767
  "name": {
11770
- "en": "Seventh day of Passover",
11771
- "he": "שביעי של פסח"
11768
+ "en": "Mimouna, Seventh day of Passover",
11769
+ "he": "מימונה, שביעי של פסח"
11772
11770
  }
11773
11771
  },
11774
- "22 Nisan": {
11775
- "name": {
11776
- "en": "Mimouna",
11777
- "he": "מימונה"
11778
- },
11779
- "type": "observance",
11780
- "note": "Unpaid leave upon request"
11781
- },
11782
11772
  "27 Nisan if Friday then previous Thursday if Sunday then next Monday": {
11783
11773
  "name": {
11784
11774
  "en": "Holocaust Remembrance Day (Yom HaShoah)",
@@ -11825,7 +11815,7 @@
11825
11815
  },
11826
11816
  "28 Iyyar": {
11827
11817
  "name": {
11828
- "en": "Jerusalem Day",
11818
+ "en": "Jerusalem Day (Yom Yerushalayim)",
11829
11819
  "he": "יום ירושלים"
11830
11820
  },
11831
11821
  "type": "observance",
@@ -11833,7 +11823,7 @@
11833
11823
  },
11834
11824
  "6 Sivan": {
11835
11825
  "name": {
11836
- "en": "Shavuot",
11826
+ "en": "Shavuot (Feast of Weeks)",
11837
11827
  "he": "שבועות"
11838
11828
  }
11839
11829
  },
@@ -16626,11 +16616,10 @@
16626
16616
  "mi": "Ōtākou"
16627
16617
  },
16628
16618
  "days": {
16629
- "03-23 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday": {
16619
+ "03-23 if Tuesday,Wednesday,Thursday then previous Monday if Friday,Saturday,Sunday then next Monday if is public holiday then next Monday": {
16630
16620
  "name": {
16631
16621
  "en": "Provincial anniversary day"
16632
- },
16633
- "note": "varies if coincides with easter monday"
16622
+ }
16634
16623
  }
16635
16624
  }
16636
16625
  },
@@ -17929,10 +17918,11 @@
17929
17918
  "01-01": {
17930
17919
  "_name": "01-01"
17931
17920
  },
17932
- "01-05": {
17921
+ "01-05 12:00": {
17933
17922
  "name": {
17934
17923
  "sv": "Trettondagsafton"
17935
- }
17924
+ },
17925
+ "type": "optional"
17936
17926
  },
17937
17927
  "01-06": {
17938
17928
  "_name": "01-06"
@@ -17956,12 +17946,12 @@
17956
17946
  },
17957
17947
  "type": "observance"
17958
17948
  },
17959
- "04-30": {
17949
+ "04-30 12:00": {
17960
17950
  "name": {
17961
17951
  "sv": "Valborgsmässoafton",
17962
17952
  "en": "Walpurgis Night"
17963
17953
  },
17964
- "type": "observance"
17954
+ "type": "optional"
17965
17955
  },
17966
17956
  "easter -3": {
17967
17957
  "_name": "easter -3",
@@ -17975,7 +17965,8 @@
17975
17965
  "type": "observance"
17976
17966
  },
17977
17967
  "easter -1": {
17978
- "_name": "easter -1"
17968
+ "_name": "easter -1",
17969
+ "type": "observance"
17979
17970
  },
17980
17971
  "easter 1": {
17981
17972
  "_name": "easter 1"
@@ -17990,7 +17981,8 @@
17990
17981
  "name": {
17991
17982
  "sv": "Pingstafton",
17992
17983
  "en": "Whitsun Eve"
17993
- }
17984
+ },
17985
+ "type": "observance"
17994
17986
  },
17995
17987
  "easter 49": {
17996
17988
  "_name": "easter 49",
@@ -18025,12 +18017,12 @@
18025
18017
  "fi": "Juhannuspäivä"
18026
18018
  }
18027
18019
  },
18028
- "friday after 10-30": {
18020
+ "friday after 10-30 12:00": {
18029
18021
  "name": {
18030
18022
  "sv": "Allhelgonaafton",
18031
18023
  "en": "Halloween"
18032
18024
  },
18033
- "type": "observance"
18025
+ "type": "optional"
18034
18026
  },
18035
18027
  "saturday after 10-31": {
18036
18028
  "_name": "11-01"