dsh-session-guard 4.2.5 → 4.2.7
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.ja.md +41 -41
- package/CHANGELOG.ko.md +41 -41
- package/CHANGELOG.md +40 -40
- package/README.de.md +375 -375
- package/README.en.md +7 -7
- package/README.es.md +374 -374
- package/README.fr.md +373 -373
- package/README.it.md +374 -374
- package/README.md +380 -380
- package/README.ru.md +374 -374
- package/dsh.plugin.json +16 -16
- package/lib/client.js +13 -4
- package/lib/client.js.map +1 -1
- package/package.json +109 -109
- package/src/client/family-section.tsx +20 -7
- package/src/client/index.ts +4 -0
- package/src/client/settings-bridge.ts +202 -202
- package/src/client/settings-card.tsx +397 -397
- package/src/settings-bridge.js +141 -141
package/README.en.md
CHANGED
|
@@ -344,13 +344,13 @@ npm test # node --test tests/*.test.mjs (timezone/weekend/state-machine/sessio
|
|
|
344
344
|
| `src/index.js` | Host apply (settings/routes/tick/provide service/retry + request guard wiring) |
|
|
345
345
|
| `src/client/` | Browser half (status badge + settings card + four-language dictionaries) |
|
|
346
346
|
|
|
347
|
-
|
|
348
|
-
## Statutory holidays and make-up workdays (4.2.0+)
|
|
349
|
-
|
|
350
|
-
weekendMode now means rest-day aware: statutory holidays (including ones landing on workdays) are off-peak all day; make-up-workday weekends enter the peak windows normally. The data source is the holiday-cn finalized snapshot — builtin 2026 with all 39 rows (33 rest days + 6 make-up workdays, State Council notices) — plus startup check and hourly refresh: jsDelivr primary with raw.githubusercontent fallback, 10 s timeout; the Beijing current year is fetched, and Nov/Dec also track next year (late-December notices land without a plugin release). Cache lives at $DSH_HOME/.dsh/session-guard/holidays/<year>.json, self-verified by a sha256 fingerprint over the decision fields only (upstream copy edits cause no false churn); mismatch discards the cache and falls back to builtin. Only fingerprint changes write (atomic tmp+rename); 24 h refetch budget; fail-open across the entire chain.
|
|
351
|
-
|
|
352
|
-
Settings: holidayMode (rest-day awareness, default on) and holidayAutoFetch (network refresh, default on); pin offline mode with DSH_SESSION_GUARD_HOLIDAY_FETCH=0. /session-guard/status exposes year / source / fingerprint / fetchedAt / entry count.
|
|
353
|
-
|
|
347
|
+
|
|
348
|
+
## Statutory holidays and make-up workdays (4.2.0+)
|
|
349
|
+
|
|
350
|
+
weekendMode now means rest-day aware: statutory holidays (including ones landing on workdays) are off-peak all day; make-up-workday weekends enter the peak windows normally. The data source is the holiday-cn finalized snapshot — builtin 2026 with all 39 rows (33 rest days + 6 make-up workdays, State Council notices) — plus startup check and hourly refresh: jsDelivr primary with raw.githubusercontent fallback, 10 s timeout; the Beijing current year is fetched, and Nov/Dec also track next year (late-December notices land without a plugin release). Cache lives at $DSH_HOME/.dsh/session-guard/holidays/<year>.json, self-verified by a sha256 fingerprint over the decision fields only (upstream copy edits cause no false churn); mismatch discards the cache and falls back to builtin. Only fingerprint changes write (atomic tmp+rename); 24 h refetch budget; fail-open across the entire chain.
|
|
351
|
+
|
|
352
|
+
Settings: holidayMode (rest-day awareness, default on) and holidayAutoFetch (network refresh, default on); pin offline mode with DSH_SESSION_GUARD_HOLIDAY_FETCH=0. /session-guard/status exposes year / source / fingerprint / fetchedAt / entry count.
|
|
353
|
+
|
|
354
354
|
## License
|
|
355
355
|
|
|
356
356
|
MIT — see [LICENSE](LICENSE).
|