bizdays-toolkit 0.22.1 → 0.22.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 CHANGED
@@ -4,6 +4,15 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.22.2] - 2026-10-27
8
+
9
+ ### Changed
10
+
11
+ - ガイド(英日)の「未確定の祝日」で、祝日の翌日・祝前日の規則が見る日を 0.22.1 で「隣の日(`skipWeekdays` があれば塊の全体)」としたのは実装と違っていたので、「隣の日。`skipWeekdays` があれば、そこから飛ばす曜日を越えて最も近い祝日まで」に直した(0.22.1 の節の「実装どおり」は誤り。塊の中で最も近い祝日より遠い日は見ないので、その日が未確定の祝日でも `unconfirmed-holiday` にならない。動作は変わらない)
12
+ - 型定義のコメント(`OnHolidayRule` の `"after-holiday"`)の「祝日でない翌日に振り替える」を「その日以降で最初の祝日でない日(土曜日のこともある)に振り替える」にした(0.22.1 でガイドを直した説明と揃える。`.js` は変わらない)
13
+ - `docs/migration.md`: 0.22.0 の `cycle` への書き換えの注意の「`openRecurring` の規則と重なる日は営業日になる」に、祝日ではその `openRecurring` の規則も `"over-holiday"` の場合だけであることを足した(祝日には `"over-holiday"` の休業の規則が、既定の `"under-holiday"` の `openRecurring` より先に決まる)。祝前日の行に、祝前日は祝日でないので祝日での順番の違いは関係しないことを足した
14
+ - 0.22.1 の節の補足: 言葉どおりの翌平日を `skipWeekdays` で書けると示したのはガイド(英日)だけ。README(英日)は「翌平日」を「次の祝日でない日」に置き換え、規則の表に「土曜日のこともある」を足した(`skipWeekdays` での書き方は示していない)。`scripts/bench.ts` のコメントと `test/recurring.test.ts` のテスト名の「翌平日」も直していた(どちらも公開物に含まれない)
15
+
7
16
  ## [0.22.1] - 2026-10-27
8
17
 
9
18
  ### Changed
@@ -651,7 +660,8 @@
651
660
 
652
661
  - 日本: 2026 年 2 月の官報(2027 年の春分・秋分の日)まで反映(`dataVersion: "2026-02"`、`confirmedThrough: 2027`)
653
662
 
654
- [Unreleased]: https://github.com/inohan77/bizdays-toolkit/compare/v0.22.1...HEAD
663
+ [Unreleased]: https://github.com/inohan77/bizdays-toolkit/compare/v0.22.2...HEAD
664
+ [0.22.2]: https://github.com/inohan77/bizdays-toolkit/compare/v0.22.1...v0.22.2
655
665
  [0.22.1]: https://github.com/inohan77/bizdays-toolkit/compare/v0.22.0...v0.22.1
656
666
  [0.22.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.21.4...v0.22.0
657
667
  [0.21.4]: https://github.com/inohan77/bizdays-toolkit/compare/v0.21.3...v0.21.4
@@ -63,7 +63,7 @@ export type Month = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
63
63
  * 繰り返しの規則が祝日に当たったときの扱い。
64
64
  * - "under-holiday": 祝日の下。祝日の扱いに従う(既定)
65
65
  * - "over-holiday": 祝日の上。祝日でも当てはめる
66
- * - "after-holiday": 祝日の後。祝日には当てはめず、祝日でない翌日に振り替える
66
+ * - "after-holiday": 祝日の後。祝日には当てはめず、その日以降で最初の祝日でない日(土曜日のこともある)に振り替える
67
67
  * @public
68
68
  */
69
69
  export type OnHolidayRule = "under-holiday" | "over-holiday" | "after-holiday";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bizdays-toolkit",
3
- "version": "0.22.1",
3
+ "version": "0.22.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",