bizdays-toolkit 0.21.0 → 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 +23 -1
- package/README.md +1 -1
- package/dist/uk/rules.js +14 -22
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,26 @@
|
|
|
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
|
+
|
|
17
|
+
## [0.21.1] - 2026-10-26
|
|
18
|
+
|
|
19
|
+
### Data
|
|
20
|
+
|
|
21
|
+
- 英国の臨時の祝日のうち固有の名称が公式の文書にない 2 日の `name` を、政府の答弁が述べた理由を括弧で添えた形にした: 1995-05-08(Scotland)"Additional bank holiday" → "Additional bank holiday (VE Day 50th anniversary)"、1999-12-31(全地域)"Additional bank holiday" → "Additional bank holiday (Millennium)"。括弧で理由を添える形は GOV.UK の 2020 年 "Early May bank holiday (VE day)" と同じ。日付・種別・`key` は変わらない(decisions.md の 49 番、`docs/sources/uk-bank-holidays-1974-1999.md` の第 5 節)
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- README: Data sources の英国の段落に `docs/sources/uk-bank-holidays-1974-1999.md` へのリンクを足した(0.21.0 では 2000〜2011 年の記録だけを指していた)
|
|
26
|
+
|
|
7
27
|
## [0.21.0] - 2026-10-25
|
|
8
28
|
|
|
9
29
|
### 移行
|
|
@@ -565,7 +585,9 @@
|
|
|
565
585
|
|
|
566
586
|
- 日本: 2026 年 2 月の官報(2027 年の春分・秋分の日)まで反映(`dataVersion: "2026-02"`、`confirmedThrough: 2027`)
|
|
567
587
|
|
|
568
|
-
[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
|
|
590
|
+
[0.21.1]: https://github.com/inohan77/bizdays-toolkit/compare/v0.21.0...v0.21.1
|
|
569
591
|
[0.21.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.20.0...v0.21.0
|
|
570
592
|
[0.20.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.19.0...v0.20.0
|
|
571
593
|
[0.19.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.18.0...v0.19.0
|
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ Japanese holidays are verified with the "National Holidays" CSV published on the
|
|
|
141
141
|
|
|
142
142
|
UK bank holidays are verified with the GOV.UK bank holidays data (<https://www.gov.uk/bank-holidays.json>, and for earlier years the history of the official GOV.UK repositories [alphagov/calendars](https://github.com/alphagov/calendars) and [alphagov/frontend](https://github.com/alphagov/frontend)), and the Welsh names of the Wales holidays with the Welsh version of GOV.UK (the verification data is a test fixture only; not included in the package).
|
|
143
143
|
|
|
144
|
-
For 2000–2011, which predate GOV.UK's data, the authority is the bank holiday lists the government published at the time (DTI and BERR, directgov, the Scottish Executive and Government, nidirect; captured by the Wayback Machine), checked against the Royal Proclamations and Northern Ireland Orders in The Gazette (<https://www.thegazette.co.uk/>); for 1974–1999 the proclamations are the authority. Thirteen days in 1975–1990 are returned by rule but could not be checked because the issues of The Gazette that carry them are not online (listed as `unverified` in the test fixture, with the reasons). The sources are listed in [docs/sources/uk-bank-holidays-2000-2011.md](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/sources/uk-bank-holidays-2000-2011.md) (test fixture only; not included in the package).
|
|
144
|
+
For 2000–2011, which predate GOV.UK's data, the authority is the bank holiday lists the government published at the time (DTI and BERR, directgov, the Scottish Executive and Government, nidirect; captured by the Wayback Machine), checked against the Royal Proclamations and Northern Ireland Orders in The Gazette (<https://www.thegazette.co.uk/>); for 1974–1999 the proclamations are the authority. Thirteen days in 1975–1990 are returned by rule but could not be checked because the issues of The Gazette that carry them are not online (listed as `unverified` in the test fixture, with the reasons). The sources are listed in [docs/sources/uk-bank-holidays-1974-1999.md](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/sources/uk-bank-holidays-1974-1999.md) and [docs/sources/uk-bank-holidays-2000-2011.md](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/sources/uk-bank-holidays-2000-2011.md) (test fixture only; not included in the package).
|
|
145
145
|
|
|
146
146
|
French public holidays are verified with the "Jours fériés en France" dataset published by DINUM on data.gouv.fr (<https://www.data.gouv.fr/datasets/jours-feries-en-france>, JSON exports for the Métropole and Alsace-Moselle zones; the verification data is a test fixture only; not included in the package).
|
|
147
147
|
|
package/dist/uk/rules.js
CHANGED
|
@@ -56,21 +56,18 @@ const MOVED = [
|
|
|
56
56
|
];
|
|
57
57
|
/** 布告による臨時の祝日 */
|
|
58
58
|
const SPECIAL_DAYS = [
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
// 1977 年の Silver Jubilee: England・Wales・NI は 6 月 7 日を追加(Spring は 6 月 6 日に移動)。Scotland は 6 月 6 日だけを追加。
|
|
62
|
-
// 名称は Hansard 1975-12-18 の公式プログラム "Tuesday 7th (Silver Jubilee Bank Holiday)" と 1977-01-19 "a special Silver Jubilee Bank Holiday"、
|
|
63
|
-
// 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 だけ
|
|
64
61
|
{ date: "1977-06-06", name: "Silver Jubilee bank holiday", divisions: SCOTLAND },
|
|
65
62
|
{ date: "1977-06-07", name: "Silver Jubilee bank holiday", divisions: NOT_SCOTLAND },
|
|
66
|
-
// 名称は 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"
|
|
67
63
|
{ date: "1981-07-29", name: "Royal Wedding bank holiday", divisions: ALL },
|
|
68
|
-
// 1995
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
// 1995 年: England・Wales・NI は Early May を 5/8 に移動、Scotland は附則の 5/1 に加えて 5/8 を追加
|
|
65
|
+
{
|
|
66
|
+
date: "1995-05-08",
|
|
67
|
+
name: "Additional bank holiday (VE Day 50th anniversary)",
|
|
68
|
+
divisions: SCOTLAND,
|
|
69
|
+
},
|
|
70
|
+
{ date: "1999-12-31", name: "Additional bank holiday (Millennium)", divisions: ALL },
|
|
74
71
|
{ date: "2002-06-03", name: "Golden Jubilee bank holiday", divisions: ALL },
|
|
75
72
|
{ date: "2011-04-29", name: "Royal Wedding bank holiday", divisions: ALL },
|
|
76
73
|
{ date: "2012-06-05", name: "Queen’s Diamond Jubilee", divisions: ALL },
|
|
@@ -93,13 +90,11 @@ const SPECIAL_DAYS = [
|
|
|
93
90
|
* 同じ曜日の並びの 2012・2017 年は、附則どおり 1/2 が 2nd January、1/3 が New Year’s Day の振替
|
|
94
91
|
*/
|
|
95
92
|
const RENAMED = [
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
// 2004 年の政府の一覧、1976 年の Hansard 1976-07-27 だけで、1993 年と England・Wales・NI の 28 日(布告はどの日の代わりかを書かない)は
|
|
99
|
-
// それに揃えた(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 の代わり
|
|
100
95
|
{ divisions: ALL, date: "1976-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
101
96
|
{ divisions: ALL, date: "1976-12-28", name: CHRISTMAS, kind: "substitute", key: "christmas" },
|
|
102
|
-
// 1
|
|
97
|
+
// 1/1 が土曜日の年の Scotland: 3 日が 2nd January(附則)、4 日が New Year’s Day の代わり
|
|
103
98
|
{
|
|
104
99
|
divisions: SCOTLAND,
|
|
105
100
|
date: "1977-01-03",
|
|
@@ -108,7 +103,7 @@ const RENAMED = [
|
|
|
108
103
|
key: "2nd-january",
|
|
109
104
|
},
|
|
110
105
|
{ divisions: SCOTLAND, date: "1977-01-04", name: NEW_YEAR, kind: "substitute", key: "new-year" },
|
|
111
|
-
// 12
|
|
106
|
+
// 12/25 が日曜日の年の Scotland: 26 日が Christmas Day(附則)、27 日が Boxing Day(布告)
|
|
112
107
|
{
|
|
113
108
|
divisions: SCOTLAND,
|
|
114
109
|
date: "1977-12-26",
|
|
@@ -163,7 +158,6 @@ const RENAMED = [
|
|
|
163
158
|
{ divisions: SCOTLAND, date: "1994-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
164
159
|
{ divisions: ALL, date: "1999-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
165
160
|
{ divisions: ALL, date: "1999-12-28", name: CHRISTMAS, kind: "substitute", key: "christmas" },
|
|
166
|
-
// 2000 年・2005 年の Scotland: 布告は 1 月 4 日を「1 月 1 日(土)の代わり」とし、1 月 3 日は附則の「1 月 2 日が日曜日なら 3 日」
|
|
167
161
|
{
|
|
168
162
|
divisions: SCOTLAND,
|
|
169
163
|
date: "2000-01-03",
|
|
@@ -172,7 +166,6 @@ const RENAMED = [
|
|
|
172
166
|
key: "2nd-january",
|
|
173
167
|
},
|
|
174
168
|
{ divisions: SCOTLAND, date: "2000-01-04", name: NEW_YEAR, kind: "substitute", key: "new-year" },
|
|
175
|
-
// 2004 年: 12 月 27 日は附則の「25・26 日が日曜日の年の 27 日」(Boxing Day の代わり)、28 日は布告で Christmas Day の代わり
|
|
176
169
|
{ divisions: ALL, date: "2004-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
177
170
|
{ divisions: ALL, date: "2004-12-28", name: CHRISTMAS, kind: "substitute", key: "christmas" },
|
|
178
171
|
{
|
|
@@ -183,7 +176,6 @@ const RENAMED = [
|
|
|
183
176
|
key: "2nd-january",
|
|
184
177
|
},
|
|
185
178
|
{ divisions: SCOTLAND, date: "2005-01-04", name: NEW_YEAR, kind: "substitute", key: "new-year" },
|
|
186
|
-
// 2005 年の Scotland: 12 月 26 日は附則の「Christmas Day が日曜日なら 26 日」、27 日は布告で追加された Boxing Day
|
|
187
179
|
{
|
|
188
180
|
divisions: SCOTLAND,
|
|
189
181
|
date: "2005-12-26",
|
|
@@ -192,7 +184,7 @@ const RENAMED = [
|
|
|
192
184
|
key: "christmas",
|
|
193
185
|
},
|
|
194
186
|
{ divisions: SCOTLAND, date: "2005-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
195
|
-
// 2011 年:
|
|
187
|
+
// 2011 年: 当時の政府の一覧は 26 日を Christmas Day、27 日を Boxing Day の振替とした
|
|
196
188
|
{ divisions: ALL, date: "2011-12-26", name: CHRISTMAS, kind: "substitute", key: "christmas" },
|
|
197
189
|
{ divisions: ALL, date: "2011-12-27", name: BOXING, kind: "substitute", key: "boxing-day" },
|
|
198
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",
|