@wcstack/timer 2.1.1 → 2.3.0

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/README.ja.md CHANGED
@@ -96,7 +96,7 @@ npm install @wcstack/timer
96
96
  | ----------- | ------- | ------- | --------------------------------------------------------------- |
97
97
  | `interval` | number | `1000` | tick の周期(ミリ秒)。有限かつ `> 0` であること。不正値(`0`・負数・非数値)は `1000` にフォールバック。 |
98
98
  | `once` | boolean | `false` | 1回だけ発火して停止。`repeat="1"` の糖衣構文。 |
99
- | `repeat` | number | `0` | N 回で停止(`0` = 無制限)。`once` より優先されます。 |
99
+ | `repeat` | number | `0` | N 回で停止。正の値は `once` より優先。`0`(既定・無制限)は `once` を打ち消さないため、`once repeat="0"` は 1 回で停止します。 |
100
100
  | `immediate` | boolean | `false` | 最初の tick を開始時点で発火(1インターバル待たない)。 |
101
101
  | `manual` | boolean | `false` | 接続時に自動開始しない。コマンド / trigger で開始します。 |
102
102
 
package/README.md CHANGED
@@ -103,7 +103,7 @@ When `<wcs-timer>` is connected to the DOM, it automatically starts an interval
103
103
  | ----------- | ------- | ------- | ------------------------------------------------------------------ |
104
104
  | `interval` | number | `1000` | Tick period in milliseconds. Must be a finite value `> 0`; invalid values (`0`, negative, non-numeric) fall back to `1000`. |
105
105
  | `once` | boolean | `false` | Fire a single tick, then stop. Sugar for `repeat="1"`. |
106
- | `repeat` | number | `0` | Stop after N ticks (`0` = unlimited). Takes precedence over `once`. |
106
+ | `repeat` | number | `0` | Stop after N ticks. A positive value takes precedence over `once`; `0` (the default, unlimited) does not override it, so `once repeat="0"` still stops after one tick. |
107
107
  | `immediate` | boolean | `false` | Fire one tick at start instead of waiting the first interval. |
108
108
  | `manual` | boolean | `false` | Do not auto-start on connect; start via command / trigger. |
109
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wcstack/timer",
3
- "version": "2.1.1",
3
+ "version": "2.3.0",
4
4
  "description": "Declarative timer component for Web Components. Framework-agnostic interval/timeout primitive via wc-bindable-protocol.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.esm.js",