bizdays-toolkit 0.21.1 → 0.21.2
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 +12 -1
- package/dist/uk/rules.js +8 -22
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.21.2] - 2026-10-26
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- `src/uk/rules.ts`: `SPECIAL_DAYS`・`RENAMED` の出典のコメントを、`docs/sources/` の記録の節への参照に短くした(根拠の本文は記録にあり、`dist` にはコメントが残るため)。`./uk` の gzip が 8,743 → 7,969 に減った(測定 7,969)。動作は変わらない
|
|
12
|
+
|
|
13
|
+
### 開発
|
|
14
|
+
|
|
15
|
+
- 納品の検査を `pnpm check` に 3 つ足した(decisions.md の 50 番)。`check-size`: CHANGELOG の今の版の節に書いた「測定 N」が実際の測定と一致すること(測り直し忘れを検出)。`check-package`: `docs/sources/*.md` が README.md と docs/README.ja.md の両方からリンクされていること、テスト用フィクスチャの `record`(出典の記録の節へのパス#アンカー)が実在すること
|
|
16
|
+
|
|
7
17
|
## [0.21.1] - 2026-10-26
|
|
8
18
|
|
|
9
19
|
### Data
|
|
@@ -575,7 +585,8 @@
|
|
|
575
585
|
|
|
576
586
|
- 日本: 2026 年 2 月の官報(2027 年の春分・秋分の日)まで反映(`dataVersion: "2026-02"`、`confirmedThrough: 2027`)
|
|
577
587
|
|
|
578
|
-
[Unreleased]: https://github.com/inohan77/bizdays-toolkit/compare/v0.21.
|
|
588
|
+
[Unreleased]: https://github.com/inohan77/bizdays-toolkit/compare/v0.21.2...HEAD
|
|
589
|
+
[0.21.2]: https://github.com/inohan77/bizdays-toolkit/compare/v0.21.1...v0.21.2
|
|
579
590
|
[0.21.1]: https://github.com/inohan77/bizdays-toolkit/compare/v0.21.0...v0.21.1
|
|
580
591
|
[0.21.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.20.0...v0.21.0
|
|
581
592
|
[0.20.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.19.0...v0.20.0
|
package/dist/uk/rules.js
CHANGED
|
@@ -56,26 +56,17 @@ const MOVED = [
|
|
|
56
56
|
];
|
|
57
57
|
/** 布告による臨時の祝日 */
|
|
58
58
|
const SPECIAL_DAYS = [
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
// docs/sources/uk-bank-holidays-1974-1999.md の名称の節)
|
|
62
|
-
// 1977 年の Silver Jubilee: England・Wales・NI は 6 月 7 日を追加(Spring は 6 月 6 日に移動)。Scotland は 6 月 6 日だけを追加。
|
|
63
|
-
// 名称は Hansard 1975-12-18 の公式プログラム "Tuesday 7th (Silver Jubilee Bank Holiday)" と 1977-01-19 "a special Silver Jubilee Bank Holiday"、
|
|
64
|
-
// Scotland は 1976-06-28 "a Jubilee holiday in Scotland"
|
|
59
|
+
// 名称の根拠と、固有の名称のない日に理由を括弧で添える規則: docs/sources/uk-bank-holidays-1974-1999.md 第 5 節
|
|
60
|
+
// 1977 年 Silver Jubilee: England・Wales・NI は 6/7 を追加(Spring は 6/6 に移動)、Scotland は 6/6 だけ
|
|
65
61
|
{ date: "1977-06-06", name: "Silver Jubilee bank holiday", divisions: SCOTLAND },
|
|
66
62
|
{ date: "1977-06-07", name: "Silver Jubilee bank holiday", divisions: NOT_SCOTLAND },
|
|
67
|
-
// 名称は The London Gazette 48690(1981-07-27)の告示の見出し "ROYAL WEDDING BANK HOLIDAY" と Hansard 1981-07-30 の答弁 "the public holiday on 29 July for the Royal Wedding"
|
|
68
63
|
{ date: "1981-07-29", name: "Royal Wedding bank holiday", divisions: ALL },
|
|
69
|
-
// 1995
|
|
70
|
-
// 政府は Scotland の分を "an additional day's bank holiday" とだけ呼び(Hansard 1993-12-16・1995-03-02)、固有の名称はない。
|
|
71
|
-
// 括弧は Hansard 1993-12-16 の理由 "commemorating the 50th anniversary of the ending of the second world war" による
|
|
64
|
+
// 1995 年: England・Wales・NI は Early May を 5/8 に移動、Scotland は附則の 5/1 に加えて 5/8 を追加
|
|
72
65
|
{
|
|
73
66
|
date: "1995-05-08",
|
|
74
67
|
name: "Additional bank holiday (VE Day 50th anniversary)",
|
|
75
68
|
divisions: SCOTLAND,
|
|
76
69
|
},
|
|
77
|
-
// 政府は "a one-off additional Bank Holiday throughout the United Kingdom on Friday, 31 December 1999" と呼び(Hansard 1998-06-03)、
|
|
78
|
-
// 固有の名称はない。括弧は同じ答弁の "the year 2000 will be heralded by" と質問の "to mark the Millennium" による
|
|
79
70
|
{ date: "1999-12-31", name: "Additional bank holiday (Millennium)", divisions: ALL },
|
|
80
71
|
{ date: "2002-06-03", name: "Golden Jubilee bank holiday", divisions: ALL },
|
|
81
72
|
{ date: "2011-04-29", name: "Royal Wedding bank holiday", divisions: ALL },
|
|
@@ -99,13 +90,11 @@ const SPECIAL_DAYS = [
|
|
|
99
90
|
* 同じ曜日の並びの 2012・2017 年は、附則どおり 1/2 が 2nd January、1/3 が New Year’s Day の振替
|
|
100
91
|
*/
|
|
101
92
|
const RENAMED = [
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
// 2004 年の政府の一覧、1976 年の Hansard 1976-07-27 だけで、1993 年と England・Wales・NI の 28 日(布告はどの日の代わりかを書かない)は
|
|
105
|
-
// それに揃えた(docs/sources/uk-bank-holidays-1974-1999.md の付録 C)
|
|
93
|
+
// 振替日の名称の割り当て。当時の一覧・布告・Hansard の文言に揃える(根拠: docs/sources/uk-bank-holidays-1974-1999.md 付録 C、
|
|
94
|
+
// docs/sources/uk-bank-holidays-2000-2011.md)。12/25 が土曜日の年: 27 日が Boxing Day、28 日が Christmas Day の代わり
|
|
106
95
|
{ divisions: ALL, date: "1976-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
107
96
|
{ divisions: ALL, date: "1976-12-28", name: CHRISTMAS, kind: "substitute", key: "christmas" },
|
|
108
|
-
// 1
|
|
97
|
+
// 1/1 が土曜日の年の Scotland: 3 日が 2nd January(附則)、4 日が New Year’s Day の代わり
|
|
109
98
|
{
|
|
110
99
|
divisions: SCOTLAND,
|
|
111
100
|
date: "1977-01-03",
|
|
@@ -114,7 +103,7 @@ const RENAMED = [
|
|
|
114
103
|
key: "2nd-january",
|
|
115
104
|
},
|
|
116
105
|
{ divisions: SCOTLAND, date: "1977-01-04", name: NEW_YEAR, kind: "substitute", key: "new-year" },
|
|
117
|
-
// 12
|
|
106
|
+
// 12/25 が日曜日の年の Scotland: 26 日が Christmas Day(附則)、27 日が Boxing Day(布告)
|
|
118
107
|
{
|
|
119
108
|
divisions: SCOTLAND,
|
|
120
109
|
date: "1977-12-26",
|
|
@@ -169,7 +158,6 @@ const RENAMED = [
|
|
|
169
158
|
{ divisions: SCOTLAND, date: "1994-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
170
159
|
{ divisions: ALL, date: "1999-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
171
160
|
{ divisions: ALL, date: "1999-12-28", name: CHRISTMAS, kind: "substitute", key: "christmas" },
|
|
172
|
-
// 2000 年・2005 年の Scotland: 布告は 1 月 4 日を「1 月 1 日(土)の代わり」とし、1 月 3 日は附則の「1 月 2 日が日曜日なら 3 日」
|
|
173
161
|
{
|
|
174
162
|
divisions: SCOTLAND,
|
|
175
163
|
date: "2000-01-03",
|
|
@@ -178,7 +166,6 @@ const RENAMED = [
|
|
|
178
166
|
key: "2nd-january",
|
|
179
167
|
},
|
|
180
168
|
{ divisions: SCOTLAND, date: "2000-01-04", name: NEW_YEAR, kind: "substitute", key: "new-year" },
|
|
181
|
-
// 2004 年: 12 月 27 日は附則の「25・26 日が日曜日の年の 27 日」(Boxing Day の代わり)、28 日は布告で Christmas Day の代わり
|
|
182
169
|
{ divisions: ALL, date: "2004-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
183
170
|
{ divisions: ALL, date: "2004-12-28", name: CHRISTMAS, kind: "substitute", key: "christmas" },
|
|
184
171
|
{
|
|
@@ -189,7 +176,6 @@ const RENAMED = [
|
|
|
189
176
|
key: "2nd-january",
|
|
190
177
|
},
|
|
191
178
|
{ divisions: SCOTLAND, date: "2005-01-04", name: NEW_YEAR, kind: "substitute", key: "new-year" },
|
|
192
|
-
// 2005 年の Scotland: 12 月 26 日は附則の「Christmas Day が日曜日なら 26 日」、27 日は布告で追加された Boxing Day
|
|
193
179
|
{
|
|
194
180
|
divisions: SCOTLAND,
|
|
195
181
|
date: "2005-12-26",
|
|
@@ -198,7 +184,7 @@ const RENAMED = [
|
|
|
198
184
|
key: "christmas",
|
|
199
185
|
},
|
|
200
186
|
{ divisions: SCOTLAND, date: "2005-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
201
|
-
// 2011 年:
|
|
187
|
+
// 2011 年: 当時の政府の一覧は 26 日を Christmas Day、27 日を Boxing Day の振替とした
|
|
202
188
|
{ divisions: ALL, date: "2011-12-26", name: CHRISTMAS, kind: "substitute", key: "christmas" },
|
|
203
189
|
{ divisions: ALL, date: "2011-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
204
190
|
// 2023 年の Scotland: GOV.UK の割り当て(1/2 が New Year’s Day、1/3 が 2nd January)に合わせる
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bizdays-toolkit",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"description": "Holidays, business-day calendar and day-by-day schedules (e.g. store hours) with time zone support. Japanese holidays verified against the Cabinet Office data; UK bank holidays (England, Wales, Scotland, Northern Ireland) verified against GOV.UK and The Gazette; French public holidays (metropole, Alsace-Moselle) verified against data.gouv.fr; Singapore public holidays verified against data.gov.sg. / 祝日と営業日のカレンダー(タイムゾーン対応・日本の祝日は内閣府、英国の bank holidays は GOV.UK と The Gazette、フランスの祝日は data.gouv.fr、シンガポールの祝日は data.gov.sg のデータで全日照合)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bank-holidays",
|