@zakkster/lite-signal 1.7.0-beta → 1.7.0-beta.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,38 @@ 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.7.0-beta.1] -- 2026-09-20
8
+
9
+ Verification + docs increment over `1.7.0-beta`; **no engine change past the
10
+ version banner comment** (`Signal.js` byte-identical, banner line only). Migration
11
+ 7 of the campaign: ports the standing perf-gate lane from the canonical 1.5.2
12
+ line onto this engine.
13
+
14
+ ### Added -- perf-gate lane (`@zakkster/lite-perf-gate`, devDependency only)
15
+
16
+ - `test/33-perf-gate.test.mjs` + `npm run test:gate`
17
+ (`node --expose-gc --max-semi-space-size=4 --test test/33-perf-gate.test.mjs`),
18
+ chained into `test:all` after `test:zgc`. Where the existing `test:zgc` lane
19
+ (lite-gc-profiler) is the suite's bespoke zero-GC harness, this lane wires
20
+ `@zakkster/lite-perf-gate`'s `zgcSuite` as a standing, self-validating verdict:
21
+ five signals (scavenges / engine counters / retainedKB / oldGen /
22
+ arrayBuffersKB), two scales (N and k*N), positive+negative+large detector
23
+ controls on every run, and permanent `mustFail` negative controls.
24
+ - Seven claimed-zero steady-state scenarios, each anchored to its `llms.txt`
25
+ claim: `set-propagate` (1 signal -> 8 computeds -> 1 effect, sync flush),
26
+ `computed-cache-hit`, `computed-recompute-stable`, `effect-rerun-stable`,
27
+ `peek`, `batch-flush` (3 sets/batch), `box-set-propagate`. `statsOf` reads each
28
+ scenario's isolated registry ledger; `counters` pins
29
+ `totalAllocations`/`totalDisposals`/`poolGrowths` at 0-delta.
30
+ - Two `mustFail` controls that MUST trip the gate: a per-op `{x,y,z,w}` object
31
+ allocator, and the documented `signal()`+dispose churn (264 B/op). lite-perf-gate
32
+ DEFAULT thresholds, untouched (maxScavenges 2, maxRetainedKB 64, maxOldGen 0,
33
+ maxArrayBuffersKB 64).
34
+ - **Result on this engine (node v26.x): green and REAL, 10/10** -- all seven
35
+ claimed-zero paths pass under defaults, both `mustFail` controls trip. Plain
36
+ `npm test` is undisturbed (the in-glob file emits one loud named skip unless
37
+ BOTH `--expose-gc` and `--max-semi-space-size=4` are present).
38
+
7
39
  ## [1.7.0-beta] -- 2026-09-06
8
40
 
9
41
  Verification + infra increment; promotes the line to the `beta` dist-tag. **No
package/README.md CHANGED
@@ -916,6 +916,15 @@ If these fail, something allocates in the hot path and we want to find it before
916
916
  npm run test:gc
917
917
  ```
918
918
 
919
+ Two standing zero-GC gates back this tier. `npm run test:zgc` runs the suite's own lite-gc-profiler harness (`test/zgc/*`). `npm run test:gate` (added 1.7.0-beta.1) runs **`test/33-perf-gate.test.mjs`**, a second, library-owned judge built on **`@zakkster/lite-perf-gate`** (devDependency only): its `zgcSuite` watches five signals (scavenges / engine `stats()` counters / retainedKB / oldGen / arrayBuffersKB) at two scales with positive+negative+large detector controls, over seven claimed-zero steady-state scenarios (`set-propagate`, `computed-cache-hit`, `computed-recompute-stable`, `effect-rerun-stable`, `peek`, `batch-flush`, `box-set-propagate`) plus two permanent `mustFail` controls (a per-op `{x,y,z,w}` allocator and the documented `signal()`+dispose 264 B/op churn). Thresholds are lite-perf-gate DEFAULTS (maxScavenges 2, maxRetainedKB 64, maxOldGen 0, maxArrayBuffersKB 64) -- a claimed-zero path that cannot meet defaults is a finding, not a config knob. Both lanes are chained by `test:all`.
920
+
921
+ ```bash
922
+ npm run test:zgc # lite-gc-profiler harness (requires --expose-gc --max-semi-space-size=4)
923
+ npm run test:gate # lite-perf-gate judge; same two flags, else one loud named skip
924
+ ```
925
+
926
+ `test:gate` runs REAL only under both `--expose-gc` and `--max-semi-space-size=4` (young-gen sensitivity); the script sets both. Under plain `npm test` / `test:gc` the in-glob file emits one loud named skip -- never a silent pass, never a false red.
927
+
919
928
  ### Tier 3 -- Performance (comparative benchmark)
920
929
 
921
930
  `npm run bench` runs the **microscope** -- lite's recommended eager config on six first-party shapes; the aggregate output is [`bench/r.txt`](./bench/r.txt) (four engines: lite, alien, preact, solid). Cross-framework standing comes from the **mirror** (`node --expose-gc bench/mirror.mjs --self-verify` then `bench/sweep.mjs`), which runs Andrii's canonical adapter verbatim so rows diff 1:1 against his log; the aggregate output is [`bench/rb.txt`](./bench/rb.txt) (lite vs alien, all 47 shapes). Every output carries a machine-generated `#STAMP` (engine + harness sha256, the live registry config, host, node), so a header can never disagree with the code that ran. The pre-v3 five-framework reactivity suite was **removed after 1.5.1** (bench protocol v3). Full methodology: [`bench/README.md`](./bench/README.md).
package/Signal.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @zakkster/lite-signal v1.7.0-beta
2
+ * @zakkster/lite-signal v1.7.0-beta.1
3
3
  * --------------------
4
4
  * 1.7.0 -- flushStrategy: registry-level effect-delivery policy.
5
5
  *
package/llms.txt CHANGED
@@ -59,7 +59,23 @@ triggering write -- no `queueMicrotask`, no promises, no scheduler ticks.
59
59
 
60
60
  ## Version notes
61
61
 
62
- - **1.7.0-beta** (current): verification + infra increment -- NO engine change
62
+ - **1.7.0-beta.1** (current): verification + docs increment -- no engine change
63
+ past the banner comment (`Signal.js` byte-identical, banner line only). Ports
64
+ the standing **perf-gate lane** from the canonical 1.5.2 line:
65
+ `test/33-perf-gate.test.mjs` + `npm run test:gate`
66
+ (`node --expose-gc --max-semi-space-size=4`), chained into `test:all` after
67
+ `test:zgc`. Wires **`@zakkster/lite-perf-gate`** (devDependency only) as a
68
+ second, library-owned zero-GC judge beside the bespoke `test:zgc` harness:
69
+ `zgcSuite` watches five signals (scavenges / engine `stats()` counters /
70
+ retainedKB / oldGen / arrayBuffersKB) at two scales with positive+negative+large
71
+ detector controls, over seven claimed-zero steady-state scenarios (set-propagate,
72
+ computed-cache-hit, computed-recompute-stable, effect-rerun-stable, peek,
73
+ batch-flush, box-set-propagate) plus two permanent `mustFail` controls (per-op
74
+ `{x,y,z,w}` allocator; the documented `signal()`+dispose 264 B/op churn).
75
+ Thresholds are lite-perf-gate DEFAULTS, untouched. Green and REAL on this engine
76
+ (10/10); the in-glob file emits one loud named skip unless both flags are set,
77
+ so plain `npm test` is undisturbed. See CHANGELOG `[1.7.0-beta.1]`.
78
+ - **1.7.0-beta**: verification + infra increment -- NO engine change
63
79
  past the version banner comment (shasum-verified). Migration 2 of the
64
80
  torture-parity campaign: the canonical 1.5.x audit instruments, as merged into
65
81
  1.6.0-rc.1, carried onto this folder with every pin re-probed on THIS engine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zakkster/lite-signal",
3
- "version": "1.7.0-beta",
3
+ "version": "1.7.0-beta.1",
4
4
  "description": "Zero-GC reactive graph. Monomorphic object pool, versioned push-pull propagation, 32-bit modular versioning. Built for hot paths and long-running processes.",
5
5
  "author": "Zahary Shinikchiev <shinikchiev@yahoo.com>",
6
6
  "license": "MIT",
@@ -35,7 +35,8 @@
35
35
  "test:harness": "npm --prefix harness/ProfilerTools test",
36
36
  "test:zgc": "node --expose-gc --max-semi-space-size=4 --test 'test/zgc/*.test.mjs'",
37
37
  "test:zgc:report": "node --expose-gc test/zgc/zero-gc-gate.mjs",
38
- "test:all": "npm test && npm run test:hardening && npm run test:harness && npm run test:zgc",
38
+ "test:gate": "node --expose-gc --max-semi-space-size=4 --test test/33-perf-gate.test.mjs",
39
+ "test:all": "npm test && npm run test:hardening && npm run test:harness && npm run test:zgc && npm run test:gate",
39
40
  "bench": "node --expose-gc bench/benchmark.mjs",
40
41
  "harness": "node harness/run.mjs",
41
42
  "harness:smoke": "node harness/run.mjs smoke",
@@ -92,6 +93,7 @@
92
93
  "devDependencies": {
93
94
  "@zakkster/lite-devtools": "^1.6.2",
94
95
  "@zakkster/lite-gc-profiler": "^1.16.0",
96
+ "@zakkster/lite-perf-gate": "^1.4.2",
95
97
  "@zakkster/lite-profiler": "^1.1.0",
96
98
  "@zakkster/lite-profiler-signal": "^1.2.0",
97
99
  "@zakkster/lite-signal": "^1.3.0 || >=1.4.0-beta.0 || >=1.6.0-preview.0",