@zakkster/lite-signal 1.9.0-preview.5 → 1.10.0-preview
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 +115 -293
- package/README.md +57 -21
- package/Signal.d.ts +90 -0
- package/Signal.js +234 -2
- package/llms.txt +23 -9
- package/package.json +14 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,206 +4,102 @@ All notable changes to `@zakkster/lite-signal` are documented here.
|
|
|
4
4
|
Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
5
5
|
This project follows [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
-
## [1.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
###
|
|
99
|
-
|
|
100
|
-
`
|
|
101
|
-
|
|
102
|
-
`
|
|
103
|
-
|
|
104
|
-
### Verified -- the whole superset runs natively on the 1.9.0 engine
|
|
105
|
-
|
|
106
|
-
`dispose`, `cleanup-return`, `owner`, `scope`, and `flush` all execute NATIVELY
|
|
107
|
-
here with zero feature-skips: 1.9.0 is the first engine to run the complete
|
|
108
|
-
torture superset.
|
|
109
|
-
|
|
110
|
-
- **Torture:** 22/22 -- `torture:semantic` 19/19 (all executed, zero skips),
|
|
111
|
-
`torture:soak` 3/3 (zero errors, value-oracle clean, every pool back to its
|
|
112
|
-
leaf-only floor).
|
|
113
|
-
- **Unit (`npm test`):** 512 tests, 511 pass, 0 fail, 1 skip.
|
|
114
|
-
- **Unit (`npm run test:gc`):** 520 tests, 519 pass, 0 fail, 1 skip.
|
|
115
|
-
|
|
116
|
-
## [1.9.0-preview.2] -- 2026-07-27
|
|
117
|
-
|
|
118
|
-
Rolls up the post-`1.9.0-preview` changes into the `preview.2` tag. The 1.9.0
|
|
119
|
-
feature (`using` / `Symbol.dispose` on lifecycle objects) ships in the preview and
|
|
120
|
-
is unchanged here; this cut adds two new torture scenarios from a consolidated
|
|
121
|
-
coverage audit, the crash fix inherited from the 1.8.0 base, 100% coverage, and
|
|
122
|
-
test-suite hygiene.
|
|
123
|
-
|
|
124
|
-
### Added -- torture suite reaches the zero-skip milestone (19 scenarios)
|
|
125
|
-
|
|
126
|
-
Two effects converge on the 1.9.0 engine. First, **`dispose-torture` now
|
|
127
|
-
executes**: 1.9.0 stamps `Symbol.dispose` at five sites (the registry -> destroy,
|
|
128
|
-
an effect's stop handle, a `createScope` disposer, a `createRoot` disposer, and
|
|
129
|
-
both box prototypes), so `using`-declared lifecycle objects dispose at block exit.
|
|
130
|
-
The scenario feature-detects via the box-prototype stamp and drives each site
|
|
131
|
-
through the TC39 `using` path, asserting idempotent disposal. Because it is a set
|
|
132
|
-
of stamped methods with **no new export**, it is exactly the profile the value /
|
|
133
|
-
introspection oracles cannot see. Second, the coverage audit added **two new
|
|
134
|
-
semantic scenarios** for exports no scenario exercised directly:
|
|
135
|
-
|
|
136
|
-
- **`owner-torture`** (1.6.0+) -- `getOwner` / `runWithOwner` capture-restore: the
|
|
137
|
-
gen-stamped owner handle, adoption of effects/computeds created inside
|
|
138
|
-
`runWithOwner`, and cascade-dispose when the captured owner is torn down.
|
|
139
|
-
- **`lifecycle-torture`** (createRoot 1.5.0+, destroy 1.4.0+) -- `createRoot`
|
|
140
|
-
detachment (an owned subtree that survives its enclosing scope) and the direct
|
|
141
|
-
`destroy` reset contract; `createRoot` had never been called by any scenario,
|
|
142
|
-
and `destroy` was only reached indirectly through a registry `Symbol.dispose`.
|
|
143
|
-
|
|
144
|
-
The suite is now **19 scenarios (16 semantic + 3 soak)**. On the 1.9.0 engine
|
|
145
|
-
**every semantic scenario executes -- zero feature-skips** -- the first engine
|
|
146
|
-
version to run the complete superset, since `dispose` was the last remaining
|
|
147
|
-
feature gate (box 1.5.0, scope/owner/introspect 1.6.0, flush 1.7.0,
|
|
148
|
-
cleanup-return 1.8.0, dispose 1.9.0 are all satisfied).
|
|
149
|
-
|
|
150
|
-
### Verified -- full suite green on the 1.9.0 engine (Node 22, `--expose-gc`)
|
|
151
|
-
|
|
152
|
-
- **Torture:** 19/19 -- `torture:semantic` 16/16 (all executed, zero skips),
|
|
153
|
-
`torture:soak` 3/3 (zero errors, every pool back to its leaf-only floor).
|
|
154
|
-
- **Unit (plain run):** 499 tests, 479 pass, 0 fail, 1 skip (the architectural
|
|
155
|
-
SSR N/A in `17-reactivity`). The only non-passes are the 19 in
|
|
156
|
-
`test/25-devtools-real-boot`, the real-rig that requires the sibling
|
|
157
|
-
`@zakkster/lite-devtools`; with that sibling resolvable the suite is 498 pass +
|
|
158
|
-
1 skip. Engine-only, excluding `test/25`: 480 tests, 479 pass, 1 skip. (The c8
|
|
159
|
-
coverage run below reports a different count -- perf-smoke budgets skip under
|
|
160
|
-
instrumentation.)
|
|
161
|
-
|
|
162
|
-
### Changed -- bench protocol v3 (carried forward)
|
|
163
|
-
|
|
164
|
-
The `bench/` harness is bench protocol v3: three instruments (microscope / mirror /
|
|
165
|
-
version-economics), each with a fixed config and a machine-generated `#STAMP`
|
|
166
|
-
(engine + harness sha256, live registry config, host, node). The pre-v3
|
|
167
|
-
five-framework reactivity suite was removed after 1.5.1. See `bench/README.md`.
|
|
168
|
-
|
|
169
|
-
### Added -- Coveralls coverage badge
|
|
170
|
-
|
|
171
|
-
README carries a Coveralls badge; lcov is produced by `npm run test:report`
|
|
172
|
-
(`coveralls-next` in devDependencies).
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
### Fixed -- dangling re-tracking cursor on source disposal (crash)
|
|
176
|
-
|
|
177
|
-
Disposing a signal/computed from inside an observer that had linked it on the
|
|
178
|
-
previous run, but had not yet re-read it on the current run, crashed with
|
|
179
|
-
`TypeError: Cannot set properties of null (setting 'headSub')`. `disposeNode`'s
|
|
180
|
-
sub-list teardown freed the link while the observer's re-tracking cursor
|
|
181
|
-
(`activeObserverCurrentDep`) was still parked on it; `severTail` then walked from
|
|
182
|
-
a freed link, wiped the observer's `headDep`, and double-freed the link. Reachable
|
|
183
|
-
from the plain public API, inherited from the 1.8.0 base. Fixed with a one-line
|
|
184
|
-
cursor repair in `disposeNode`; the two dead `freeLink` `-1` ternaries were removed
|
|
185
|
-
with it. Pinned by a regression test in `test/12-coverage.test.mjs`.
|
|
186
|
-
|
|
187
|
-
### Changed -- coverage closed to 100% and test-suite hygiene
|
|
188
|
-
|
|
189
|
-
`Signal.js` reaches **100% statements / branches / functions / lines** (491 tests,
|
|
190
|
-
490 pass, 1 skip). Beyond the crash fix and its ported box/owner/opcode closure
|
|
191
|
-
suite, this pass added: a test for the new **`using` / `Symbol.dispose`** methods on
|
|
192
|
-
both box prototypes (`box[Symbol.dispose]()` disposes and is idempotent); and the
|
|
193
|
-
cleanup-return array-append arm (carried in via `33-cleanup-return`). Three provably
|
|
194
|
-
-unreachable arms carry `/* c8 ignore */` with proofs: the link-ledger clamp, the
|
|
195
|
-
`batchEpoch` 2^32 wraparound, and the `Symbol.dispose` pre-Node-20 polyfill fallback.
|
|
196
|
-
|
|
197
|
-
Test-suite hygiene: `33-computed-selfdirty-prev-owner.test.mjs` renamed to `34-`
|
|
198
|
-
(the `33-` slot belongs to `33-cleanup-return`, which carries forward from 1.8.0
|
|
199
|
-
because this line inherits effect cleanup-return) -- the rename had left a
|
|
200
|
-
byte-identical `33-` copy behind, so the scope suite's `28-`/`29-` pattern
|
|
201
|
-
repeated here; the stray `33-computed-selfdirty-prev-owner.test.mjs` is deleted,
|
|
202
|
-
leaving one `34-`. The duplicate `28-scope.test.mjs` was likewise dropped in
|
|
203
|
-
favour of `29-scope.test.mjs` (both were byte-identical).
|
|
204
|
-
|
|
205
|
-
**Hot-path parity note:** the fix touches `disposeNode` and `freeLink`; re-baseline
|
|
206
|
-
the VersionMatrix engine sha256 on the next publish.
|
|
7
|
+
## [1.10.0-preview] -- 2026-09-06
|
|
8
|
+
|
|
9
|
+
The **verification-infrastructure parity cut** for the named-nodes + `whyDirty()`
|
|
10
|
+
feature (introduced in the 1.10.0-canary entry below, unchanged in behaviour).
|
|
11
|
+
The engine is byte-identical to the canary past the version banner EXCEPT for two
|
|
12
|
+
cold-path fixes ported from the 1.9.0 line (see Fixed); the four hot propagation
|
|
13
|
+
bodies stay byte-identical to 1.9.0 (sha-proven, WHY-1_10.md). This cut brings the
|
|
14
|
+
full 1.9.0-alpha audit infrastructure onto the folder and re-proves it here.
|
|
15
|
+
|
|
16
|
+
### Fixed -- two cold-path ports from LiteSignal1.9.0 (user-authorized, one-time)
|
|
17
|
+
|
|
18
|
+
- **disposeNode cursor repair.** The folder's v1.10.0-canary.1 engine had FORKED
|
|
19
|
+
the rebuilt-1.9 line before this fix landed: disposing a linked-but-unread source
|
|
20
|
+
from an observer's own body mid-retrack left the re-tracking cursor
|
|
21
|
+
(`activeObserverCurrentDep`) dangling at a freed link, then crashed `severTail` /
|
|
22
|
+
`freeLink` with `Cannot set properties of null (setting 'headSub')`. Reproduced by
|
|
23
|
+
scope-torture (dispose-linked-unread) and all five cleanup-return 6b geometries.
|
|
24
|
+
Ported verbatim from 1.9.0: advance the cursor to the next surviving dep when the
|
|
25
|
+
parked link is freed. Disposal path only; no steady-state cost.
|
|
26
|
+
- **createRegistry validation (1.4.5 backport).** The canary also predated the
|
|
27
|
+
config-validation cascade the other five folders carry: `ALLOWED_KEYS` /
|
|
28
|
+
did-you-mean / eager-construction ceiling, plus the `nodePoolPopulation` /
|
|
29
|
+
`linkPoolPopulation` stats keys (`stats()` 12 -> 14). Its absence failed 37 unit
|
|
30
|
+
tests. Ported verbatim; all cold, constructor-only.
|
|
31
|
+
|
|
32
|
+
### Added -- the 27-scenario torture suite (was 22) + audit lanes
|
|
33
|
+
|
|
34
|
+
- The 2026-08 audit scenarios (`contract`, `interop`, `retrack-dispose`,
|
|
35
|
+
`burst-profile`, opt-in `wraparound`), the 3-state runner with ENFORCED floors,
|
|
36
|
+
and the flush/cleanup-return folder supersets. On this engine **all 23 semantic
|
|
37
|
+
execute with zero floor-skips** (as on 1.9.0 -- `dispose` was the last gate);
|
|
38
|
+
suite verdict 26 pass / 1 opt-in skip / 0 fail.
|
|
39
|
+
- `test/25` rewritten against the REAL devtools 1.6.2 (14 tests): the exact 13-key
|
|
40
|
+
`capabilities()` fingerprint (identical to the 1.8.0/1.9.0 pairings -- devtools
|
|
41
|
+
1.6.2 has no 1.9/1.10 cap key, so the exact key set is the pin). New
|
|
42
|
+
`test/37-devtools-zerogc-probe` (renumbered above the native `36-named-and-whydirty`).
|
|
43
|
+
- `test/zgc/` (`test:zgc` 7/7 + report 3/3), `test/ProfilerTests` (`test:hardening`
|
|
44
|
+
22/0/6), `harness/ProfilerTools` (`test:harness` 5/5), and the phase-1/2/3 harness
|
|
45
|
+
instruments (`visit-anatomy`, `jit-health`, `mint-anatomy`, `costmodel`, `floors`,
|
|
46
|
+
`trend`, `creation-anatomy`, `burst-real`); `harness/run.mjs` gains `mint`.
|
|
47
|
+
- VersionMatrix read+counter lanes; **gate-self PASSED 5/5** vs floor-1.3.0 +
|
|
48
|
+
rolling-1.5.0, counter lane exact (288 allocs/frame, 0 poolGrowths).
|
|
49
|
+
|
|
50
|
+
### Measured on this engine
|
|
51
|
+
|
|
52
|
+
- **Mint anatomy IDENTICAL for the sixth engine running**: signal 264.3 / computed
|
|
53
|
+
208.1 / effect 160.0 / signalBox 56.0 / computedBox 56.0 B/op all-space -- the cold
|
|
54
|
+
`nodeNames.set` on named creation is off the unnamed fast path.
|
|
55
|
+
- visit-anatomy 21/21 with NO re-anchor (named/whyDirty add no eq-dispatch site;
|
|
56
|
+
both failure paths re-witnessed in scratch clones). jit-health strict: 4x
|
|
57
|
+
monomorphic. Cleanup-return compose order, the wraparound band, and every
|
|
58
|
+
audit-era pin: carried with ZERO pin flips.
|
|
59
|
+
|
|
60
|
+
### Changed
|
|
61
|
+
|
|
62
|
+
- devDeps: `@zakkster/lite-devtools` ^1.2.0 -> **^1.6.2**,
|
|
63
|
+
`@zakkster/lite-gc-profiler` ^1.15.0 -> **^1.16.0**.
|
|
64
|
+
- `test` / `test:gc` / `test:coverage` glob-scoped to `'test/*.test.mjs'`; unit suite
|
|
65
|
+
**553 tests, 552 pass, 0 fail, 1 skip** (`test:gc` 561/560/0/1). `verify` chains the
|
|
66
|
+
zgc gate. Banner v1.10.0-canary.1 -> v1.10.0-preview.
|
|
67
|
+
- Signal.js line-ref comments (capacity / deep-chain / error / owner tortures, test/30)
|
|
68
|
+
refreshed against the ported engine.
|
|
69
|
+
|
|
70
|
+
### Removed
|
|
71
|
+
|
|
72
|
+
- `test/33-computed-selfdirty-prev-owner.test.mjs` -- byte-identical duplicate of
|
|
73
|
+
`test/34-...` (sha `0f48d434`); its `33-` prefix collided with `33-cleanup-return`.
|
|
74
|
+
- The stale `bench-reactive` script and the llms `demo/index.html` +
|
|
75
|
+
"wired as prepublishOnly" claims (the gate is `npm run gate` -> `pre-publish.mjs`).
|
|
76
|
+
|
|
77
|
+
## [1.10.0-canary] -- 2026-07-XX (rebuilt line, candidate)
|
|
78
|
+
|
|
79
|
+
**Feature of the cut: named nodes + `whyDirty()` -- the tracing foundation.**
|
|
80
|
+
Two cold-path primitives the profiler tools (`lite-trace`, `lite-hud`,
|
|
81
|
+
`lite-devtools`) consume directly. No node-shape change; the pinned handle
|
|
82
|
+
shapes from `21-perf-pins` are untouched.
|
|
83
|
+
|
|
84
|
+
### Added
|
|
85
|
+
- `signal(v, {name})` / `computed(fn, {name})` / `effect(fn, {name})`. Names
|
|
86
|
+
live in a registry-side `Map<id, name>`, written only on named creation and
|
|
87
|
+
read only by `describeNode()` / `whyDirty()` (both cold). Unnamed nodes pay
|
|
88
|
+
a single guarded comparison on the creation path and carry no name key.
|
|
89
|
+
- `describe()` / `describeNode()` gain `name` when present (absent otherwise).
|
|
90
|
+
- `whyDirty(handle)` -- pull-side diagnostic. For a computed, walks its deps
|
|
91
|
+
and reports which one's version moved past the observer's `evalVersion`
|
|
92
|
+
(the SAME predicate `pullComputed` uses, `((dep.version - evalVer)|0) > 0`),
|
|
93
|
+
then traces transitively to the root signal write via `rootCause`. Read-only:
|
|
94
|
+
it never pulls, so it cannot perturb the graph. Returns `[]` for a clean
|
|
95
|
+
computed and for non-computed handles.
|
|
96
|
+
- `nodeNames` cleared by `destroy()`.
|
|
97
|
+
|
|
98
|
+
### Unchanged (proven, not asserted)
|
|
99
|
+
- Hot propagation bodies `markDownstream` / `flushEffects` / `executeEffect` /
|
|
100
|
+
`pullComputed` are **byte-identical** to 1.9.0 (sha256 over extracted bodies).
|
|
101
|
+
- Bars: `1to1batch` neutral (write path is the frozen set); `createSignals` /
|
|
102
|
+
`createEffects` within noise (the name comparison on the unnamed path is free).
|
|
207
103
|
|
|
208
104
|
## [1.9.0-preview] -- 2026-07-XX (rebuilt line, candidate)
|
|
209
105
|
|
|
@@ -397,7 +293,7 @@ run variance; the sha256 verification rules out any other mechanism.
|
|
|
397
293
|
- **`test/28-run-with-owner.test.mjs`** (16 tests, cascade-forwarded):
|
|
398
294
|
basic shape, degradation, and the three hazard pins with allocation
|
|
399
295
|
pressure applied so the ABA guard is actually exercised.
|
|
400
|
-
- **New: `test/
|
|
296
|
+
- **New: `test/33-computed-selfdirty-prev-owner.test.mjs`** -- a single
|
|
401
297
|
self-gating discriminator covering three feature bands:
|
|
402
298
|
- **`getOwner / runWithOwner`** -- **ACTIVE on 1.9.0** (owner APIs
|
|
403
299
|
are present via the cascade port). All 5 tests pass: `getOwner`
|
|
@@ -422,13 +318,11 @@ run variance; the sha256 verification rules out any other mechanism.
|
|
|
422
318
|
assertion from 1.6/1.7/1.8 (adds `flushPasses`).
|
|
423
319
|
|
|
424
320
|
**Note on the test file name convention:** the uploaded discriminator
|
|
425
|
-
file used `33-computed-selfdirty-prev-owner_test.mjs` (underscore
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
to avoid colliding with `33-cleanup-return.test.mjs`, which carries forward
|
|
431
|
-
from 1.8.0 since this line inherits the effect cleanup-return feature.
|
|
321
|
+
file used `33-computed-selfdirty-prev-owner_test.mjs` (underscore);
|
|
322
|
+
renamed to `.test.mjs` (period) in the delivered tree to match the
|
|
323
|
+
ecosystem-wide convention (`NN-name.test.mjs`) and pick up the standard
|
|
324
|
+
`test/*.test.mjs` glob. `_test.mjs` would be silently ignored by
|
|
325
|
+
`node --test`.
|
|
432
326
|
|
|
433
327
|
### The rebuilt-line rejection ledger (context for what does NOT ship)
|
|
434
328
|
|
|
@@ -520,80 +414,6 @@ twins (see the 1.12.0-preview trace-twin design).
|
|
|
520
414
|
between `createRoot` and `createScope`; sha256 confirms no
|
|
521
415
|
pre-existing function was disturbed by the insertion.
|
|
522
416
|
|
|
523
|
-
### Verified -- fresh 1.9.0-preview bench sweep (Apple M4 Pro / Node 26)
|
|
524
|
-
|
|
525
|
-
Both v3 instruments were re-run in full on the 1.9.0-preview engine on
|
|
526
|
-
**Apple M4 Pro darwin/arm64, Node 26.3.1**, with `#STAMP`-verified
|
|
527
|
-
outputs committed to `bench/r.txt` (microscope aggregate, 4 engines
|
|
528
|
-
across the six first-party shapes) and `bench/rb.txt` (mirror sweep,
|
|
529
|
-
Andrii's canonical adapter verbatim, lite vs alien across 47 rows,
|
|
530
|
-
isolated-per-row, 10 reps). Andrii 15-framework log at
|
|
531
|
-
`bench/AndriiVolynetsReactiveBench.log` (byte-identical to 1.8.0's --
|
|
532
|
-
the 1.9.0-preview engine is sha256-identical to 1.8.0 on all 14
|
|
533
|
-
propagation / flush-scaffold functions and differs only in `effect` and
|
|
534
|
-
`createScope` by one existence-guarded `[Symbol.dispose]` stamp line
|
|
535
|
-
each on the cold creation path, so the ranking numbers carry with zero
|
|
536
|
-
re-verification cost).
|
|
537
|
-
|
|
538
|
-
- **Andrii Volynets js-reactivity-benchmark position holds at 3rd of
|
|
539
|
-
15** (the position lite moved to on 1.8.0) with geomean **95.4 ms**;
|
|
540
|
-
lite is ahead of 4th-place @reactively (136.0, lite 1.43x faster) and
|
|
541
|
-
5th-place Preact Signals (148.8, ~56% ahead), behind only
|
|
542
|
-
alien-signals (77.5) and reflex (89.7). **20 outright wins** (the
|
|
543
|
-
eight canonical propagation shapes, all four wide fan-in / fan-out
|
|
544
|
-
shapes, `molBench`, and seven of the rectangular / layered DAG
|
|
545
|
-
shapes). Top-3 count: **29/47**. Since the engine is sha256-identical
|
|
546
|
-
to 1.8.0 across every propagation function, this is the same log
|
|
547
|
-
1.8.0 published; re-running Andrii's suite would produce host-noise
|
|
548
|
-
drift, not a code-driven delta.
|
|
549
|
-
- **Microscope aggregate on M4 Pro (r.txt):** on the six v3 microscope
|
|
550
|
-
shapes, lite wins vs alien on **MUX +34.9%** (fan-in), **SELECTIVE
|
|
551
|
-
DAG +20.9%**, **DYNAMIC DAG +16.1%**, and **BROADCAST +5.2%**
|
|
552
|
-
(narrowed from +9.4% on 1.8.0 but still on the win side of parity).
|
|
553
|
-
The wins hold within noise of the 1.8.0 M4 Pro sweep despite the two
|
|
554
|
-
`[Symbol.dispose]` stamp lines added at effect / createScope
|
|
555
|
-
creation, which is what "one existence guard per cold creation path,
|
|
556
|
-
nothing on the propagation hot path" looks like in the propagation
|
|
557
|
-
numbers. Alien ahead on **KAIROS -19.5%** (widened from -15.9% on
|
|
558
|
-
1.8.0 -- host-noise drift on the shape where lite is architecturally
|
|
559
|
-
weakest) and **DEEP CHAIN -72.8%** (the architectural weak spot:
|
|
560
|
-
recursive JS-stack computed resolution against alien's flatter
|
|
561
|
-
chain). Speed wins vs alien: **4/6**; heap wins: **5/6** with the
|
|
562
|
-
sixth being a shared-zero on BROADCAST.
|
|
563
|
-
- **Microscope heap (the actual story) on M4 Pro:** on every shape
|
|
564
|
-
where GC pressure exists at all, lite allocates **one to four orders
|
|
565
|
-
of magnitude less transient heap than alien** -- DEEP CHAIN 0.5 KB vs
|
|
566
|
-
1062 KB (>2000x, on the shape lite loses on time), MUX 0 KB vs 781
|
|
567
|
-
KB, KAIROS 23 KB vs 802 KB (34.3x), DYNAMIC DAG 3.4 MB vs 55.7 MB
|
|
568
|
-
(16.6x), SELECTIVE DAG 7.7 MB vs 76.5 MB (9.9x). Against
|
|
569
|
-
preact-signals and solid-signals the heap gap is even wider on the
|
|
570
|
-
fan-in / fan-out family; solid allocates ~17 MB on MUX and ~15 MB on
|
|
571
|
-
SELECTIVE DAG where lite allocates 0 KB and 7.7 MB on the same
|
|
572
|
-
shapes. The differentiated position is ALLOCATION, not raw
|
|
573
|
-
propagation speed -- competitive-to-winning throughput with
|
|
574
|
-
dramatically lower GC pressure, and that is the headline that
|
|
575
|
-
reproduces across hosts.
|
|
576
|
-
- **Mirror sweep on M4 Pro (rb.txt):** Andrii's canonical 47-shape
|
|
577
|
-
suite re-run isolated-per-row lite vs alien on M4 Pro reproduces the
|
|
578
|
-
same honest framing: lite runs **parity-to-behind alien on
|
|
579
|
-
throughput** across the head-to-head suite (wins outright on **3/47**
|
|
580
|
-
-- `1000x5 - 25 sources (wide dense)` +10.7%,
|
|
581
|
-
`manySourcesIntoOneComputedEffectWithDirect` +31.5%,
|
|
582
|
-
`manySourcesIntoOneComputedEffect` +30.2%; `molBench` dropped from a
|
|
583
|
-
razor-thin +0.3% win on 1.8.0 to -0.4% parity this sweep, taking the
|
|
584
|
-
outright-win count from 4/47 to 3/47), weak on the deep/layered-burst
|
|
585
|
-
family. That head-to-head result and the "3rd of 15 with 20 outright
|
|
586
|
-
wins" both live on the same Andrii log and are not contradictory: the
|
|
587
|
-
outright-of-15 rankings look at each shape across every framework in
|
|
588
|
-
the field, so shapes where alien beats lite by 20-30% but reflex
|
|
589
|
-
beats both and everyone else is slower can still count as a lite
|
|
590
|
-
outright win when measured that way.
|
|
591
|
-
- **Third-party engine versions carried forward** from the 1.8.0 sweep
|
|
592
|
-
(alien-signals 3.2.1, @preact/signals-core 1.14.2, @vue/reactivity
|
|
593
|
-
3.5.35, solid-js 1.9.13). No peer bumps this cycle; the deltas here
|
|
594
|
-
are the 1.9 engine's own footprint (the two `[Symbol.dispose]` stamp
|
|
595
|
-
lines) plus host noise.
|
|
596
|
-
|
|
597
417
|
### Migration
|
|
598
418
|
|
|
599
419
|
Zero work for every existing user. Symbol.dispose is additive; nothing
|
|
@@ -611,6 +431,8 @@ cascade forward from every prior 1.x line without semantic change.
|
|
|
611
431
|
|
|
612
432
|
## [1.8.0-preview] -- 2026-07-XX
|
|
613
433
|
|
|
434
|
+
## [1.8.0-preview] -- 2026-07-XX
|
|
435
|
+
|
|
614
436
|
The **effect cleanup return** minor -- Reflex-study pattern A. One additive
|
|
615
437
|
hot-path change: an effect body may now `return` a cleanup function, which
|
|
616
438
|
runs before the next re-run and on dispose, composing with imperative
|
|
@@ -909,9 +731,9 @@ monomorphic targets and inlines the body. In "eager" mode the inlined body is
|
|
|
909
731
|
byte-identical to the 1.6.0 inline check `if (batchDepth === 0) flushEffects()`
|
|
910
732
|
-- **zero behavioral or performance regression** for any existing user.
|
|
911
733
|
|
|
912
|
-
This is NOT ledger
|
|
734
|
+
This is NOT ledger §0b #6 (per-call closure-var load of a primitive). It is a
|
|
913
735
|
hoisted function reference resolved once at registry build time and is a NEW
|
|
914
|
-
mechanism by the v1 roadmap
|
|
736
|
+
mechanism by the v1 roadmap §0b line 100 definition.
|
|
915
737
|
|
|
916
738
|
The `getOwner` / `runWithOwner` port adds new user-API functions but touches no
|
|
917
739
|
hot path. sha256 over the extracted function bodies of `pullComputed`,
|
|
@@ -956,7 +778,7 @@ pristine 1.7.0-preview byte-for-byte; the two new functions are inserted between
|
|
|
956
778
|
|
|
957
779
|
Real wins, but smaller than the gap to Reflex on the same shapes. The residual
|
|
958
780
|
gap is structural (per-write `gen` check, batch-revert epoch tracking, global
|
|
959
|
-
version bumping) -- design decisions accepted by
|
|
781
|
+
version bumping) -- design decisions accepted by §0b and not in scope here.
|
|
960
782
|
Modern V8's `try/finally` elision varies; expect higher absolute speedups on
|
|
961
783
|
production V8 than on this sandbox.
|
|
962
784
|
|
|
@@ -1096,7 +918,7 @@ they produce are reproducible, comparable, and engine-version-aware.
|
|
|
1096
918
|
|
|
1097
919
|
- **Full suite green** against the 1.6.0 engine: 443 tests, 442 pass, 0 fail,
|
|
1098
920
|
1 skip (only the architecturally-N/A SSR case in `17-reactivity`). +4
|
|
1099
|
-
`createScope` tests in `test/
|
|
921
|
+
`createScope` tests in `test/28-scope_test.mjs`; the 1.5.0 box and createRoot
|
|
1100
922
|
suites carry forward unchanged. **Coverage** (c8@11, Node 22): `Signal.js`
|
|
1101
923
|
100% statements / 96.96% branches / 100% functions / 100% lines; `Watch.js`
|
|
1102
924
|
100% across all four. The branch drop vs 1.5.0 (97.35% -> 96.96%) is the
|
|
@@ -1181,7 +1003,7 @@ dependency and updates correctly; a `computedBox` that reads a callable
|
|
|
1181
1003
|
the introspection surface all apply uniformly -- a box node is indistinguishable
|
|
1182
1004
|
from a callable node to the graph, the owner tree, and devtools.
|
|
1183
1005
|
|
|
1184
|
-
### Added -- `test/24-
|
|
1006
|
+
### Added -- `test/24-signalbox_test.mjs` activated (9 tests)
|
|
1185
1007
|
|
|
1186
1008
|
The suite that was committed-but-skipped since 1.3.0 now runs against the real
|
|
1187
1009
|
implementation: box get/set/peek/update, computedBox derive + memoize,
|
|
@@ -1228,7 +1050,7 @@ survives consumer re-runs.
|
|
|
1228
1050
|
- **Full suite green** against the 1.5.0 engine: 439 tests, 438 pass, 0 fail,
|
|
1229
1051
|
1 skip (only the architecturally-N/A SSR case in `17-reactivity`; the 9
|
|
1230
1052
|
`24-signalbox` tests are now active, +6 `createRoot` tests in
|
|
1231
|
-
`test/27-create-
|
|
1053
|
+
`test/27-create-root_test.mjs`, +3 box-coverage tests). **Coverage** (c8@11,
|
|
1232
1054
|
Node 22): `Signal.js` 100% statements / 97.35% branches / 100% functions / 100%
|
|
1233
1055
|
lines; `Watch.js` 100% across all four.
|
|
1234
1056
|
- **Box hot path is zero-GC**: 200,000 writes through a 256-wide box graph,
|
|
@@ -1463,7 +1285,7 @@ What `createNode` still writes are the *lifetime* writes for the new resident:
|
|
|
1463
1285
|
the new lifetime), plus the conditional owner-adoption splice
|
|
1464
1286
|
(`owner`, `nextOwned`, parent chain link).
|
|
1465
1287
|
|
|
1466
|
-
### Added -- `test/10-free-list-
|
|
1288
|
+
### Added -- `test/10-free-list-invariant_test.mjs`
|
|
1467
1289
|
|
|
1468
1290
|
A three-test invariant suite that asserts the audit's claim by inspecting
|
|
1469
1291
|
freshly-allocated nodes' underlying field state (via the documented
|
|
@@ -1481,7 +1303,7 @@ If any future change reintroduces a write to a clean-state field on the
|
|
|
1481
1303
|
dispose path or removes a write that turns out NOT to be redundant, this
|
|
1482
1304
|
suite catches it.
|
|
1483
1305
|
|
|
1484
|
-
### Added -- `test/11-devtools-
|
|
1306
|
+
### Added -- `test/11-devtools-contract_test.mjs`
|
|
1485
1307
|
|
|
1486
1308
|
A 12-test smoke probe of the introspection surface that lite-devtools 1.1 /
|
|
1487
1309
|
lite-studio 1.1 consume. Verifies handle resolution + walkers, owner-tree
|
|
@@ -1828,7 +1650,7 @@ over 1.1.4, no breaking changes.
|
|
|
1828
1650
|
shape kept uniform (monomorphic). **Zero steady-state cost.**
|
|
1829
1651
|
|
|
1830
1652
|
### Test suite
|
|
1831
|
-
- Added `test/15-
|
|
1653
|
+
- Added `test/15-identity_test.mjs`: 5 tests -- ids unique + stable, `nodeId`/`describe`
|
|
1832
1654
|
undefined on non-handles, descriptor shape `{ id, kind, value }`, descriptors re-walkable,
|
|
1833
1655
|
identity walks non-perturbing.
|
|
1834
1656
|
|
|
@@ -1880,7 +1702,7 @@ All accept a public `Signal`/`Computed` handle.
|
|
|
1880
1702
|
on a non-handle argument; `observeObservers` throws `TypeError`.
|
|
1881
1703
|
|
|
1882
1704
|
### Test suite
|
|
1883
|
-
- Added `test/13-
|
|
1705
|
+
- Added `test/13-introspection_test.mjs`: 10 tests across 3 describe blocks --
|
|
1884
1706
|
`hasObservers` (live observation reflects, peek doesn't count), `observeObservers`
|
|
1885
1707
|
auto-pause lifecycle (start-on-first/stop-on-last, no extra connect for a 2nd
|
|
1886
1708
|
observer, re-observe fires again, no churn on re-track, conditional reads toggle
|
|
@@ -1924,7 +1746,7 @@ allocation on whether the read will actually subscribe anything.
|
|
|
1924
1746
|
Roughly 1-2 ns per call.
|
|
1925
1747
|
|
|
1926
1748
|
### Test suite
|
|
1927
|
-
- Added `test/10-is-
|
|
1749
|
+
- Added `test/10-is-tracking_test.mjs`: 11 tests across 5 describe blocks --
|
|
1928
1750
|
observer-bodies (effect + computed), untracked windows (`untrack`, `subscribe`
|
|
1929
1751
|
callback, `onCleanup`, `watch` callback), outside-observer (module scope,
|
|
1930
1752
|
call-site of unobserved computed read), robustness (state restored after
|