bizdays-toolkit 0.9.0 → 0.9.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/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.1] - 2026-10-18
8
+
9
+ ライブラリのコードは 0.9.0 と同じ。
10
+
11
+ ### Changed
12
+
13
+ - README: スケジュールの `daysBetween` を `holiday` だけで絞ると、`dates`・`annual` で値を決めた祝日(特別営業日など)も含まれることと、それを除く絞り込み(`reason` が `"date"`・`"annual"` の日を除く)の例を足した
14
+
15
+ ### 開発
16
+
17
+ - ブラウザーでの確認の Edge の起動オプションに、`--disable-dev-shm-usage` と `--disable-gpu` を足した。CI のランナーで Edge のページの読み込みが止まり、やり直し(`RETRY`)がほぼ毎回起きていたため
18
+
7
19
  ## [0.9.0] - 2026-10-18
8
20
 
9
21
  ### 移行
@@ -226,7 +238,8 @@
226
238
 
227
239
  - 日本: 2026 年 2 月の官報(2027 年の春分・秋分の日)まで反映(`dataVersion: "2026-02"`、`confirmedThrough: 2027`)
228
240
 
229
- [Unreleased]: https://github.com/inohan77/bizdays-toolkit/compare/v0.9.0...HEAD
241
+ [Unreleased]: https://github.com/inohan77/bizdays-toolkit/compare/v0.9.1...HEAD
242
+ [0.9.1]: https://github.com/inohan77/bizdays-toolkit/compare/v0.9.0...v0.9.1
230
243
  [0.9.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.8.1...v0.9.0
231
244
  [0.8.1]: https://github.com/inohan77/bizdays-toolkit/compare/v0.8.0...v0.8.1
232
245
  [0.8.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.7.0...v0.8.0
package/README.md CHANGED
@@ -318,9 +318,15 @@ storeHours
318
318
  .daysBetween("2026-11-01", "2026-11-30")
319
319
  .filter((d) => d.holiday)
320
320
  .map((d) => d.date); // ["2026-11-03", "2026-11-23"]
321
+
322
+ // Holidays not overridden by specific or annual dates (New Year's Day is closed by the annual rule)
323
+ storeHours
324
+ .daysBetween("2026-12-28", "2027-01-11")
325
+ .filter((d) => d.holiday && d.reason !== "date" && d.reason !== "annual")
326
+ .map((d) => d.date); // ["2027-01-11"]
321
327
  ```
322
328
 
323
- `reason` is the rule that decided the value. With `holiday: "weekday"` (holidays follow the weekday rule), a holiday has `reason: "weekday"`, so check `holiday` to know whether a day is a holiday.
329
+ `reason` is the rule that decided the value. With `holiday: "weekday"` (holidays follow the weekday rule), a holiday has `reason: "weekday"`, so check `holiday` to know whether a day is a holiday. Filtering by `holiday` alone also keeps holidays whose value is set by `dates` or `annual` (such as special hours on New Year's Day). To list only holidays that follow the holiday handling, also exclude `reason` `"date"` and `"annual"`, as in the last example: `holiday` tells whether the day is a holiday, and `reason` tells which rule decided the value.
324
330
 
325
331
  Values are decided in the order `dates` (specific dates and ranges) → `annual` (annual dates and ranges) → `recurring` (`"over-holiday"`) → holidays → `recurring` (default and moved days) → `weekly` (weekday). When rules of the same type overlap, the one written first in the array wins.
326
332
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bizdays-toolkit",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
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. / 祝日と営業日のカレンダー(タイムゾーン対応・日本の祝日は内閣府、英国の bank holidays は GOV.UK のデータで全日照合)",
5
5
  "keywords": [
6
6
  "bank-holidays",