Skip to content

v2.9.0: Continuous replacement, competitive themes and smaller WASM - #157

Merged
divijg19 merged 1 commit into
mainfrom
update
Nov 22, 2026
Merged

divijg19 merged 1 commit into
mainfrom
update

Conversation

@divijg19

Copy link
Copy Markdown
Owner

Session schedule:

  • Numbers now replace one another continuously: remove INTER_NUMBER_GAP_MS and the per-number ClearScreen step from both runtimes; the remaining clears are global (start/stop) and carry no delay. Plans are ~2N steps shorter and sessions ~N*100ms shorter.
  • Remove ClearScreen.index from the wire format and all consumers; the driver's clear event and collision-prone branches are gone.
  • Pin the new timing and wire shape in Rust, WASM, and browser tests, with non-vacuity probes for reintroduced gaps.

Themes and typography:

  • Six coherent schemes carried from the interface through flashing: Ocean (default, ultramarine with a green tint), Midnight (near-black) with Dawn, Aqua, Ivory/Sepia, Rose/Blush, Forest/Sage. All surfaces clear 7:1.
  • Large lining tabular numerals at regular weight in a plain monospace stack; the number uses the active theme's own foreground.
  • Native sliders get a mode-scoped accent so they do not disappear into blue themes; the attribution block is forced to black on light themes, with the mode mirrored onto for the sibling DOM node.
  • New themeStyles test pins the wire-relevant CSS contracts.

Build, dependencies, and size:

  • Drop ThreadRng from shipped builds; seed StdRng from SysRng, keeping thread_rng only as a test dependency on both targets.
  • wasm-only opt-level 3, --remap-path-prefix in CI/release, prebuilt wasm-pack in release, documented rejected flags; lockfile patch updates.
  • Revert solid-js 2.0 to 1.9.20: the official 2.0 migration is application-level and the testing library has no stable 2.0 release.
  • WASM: 82465 -> 76600 bytes raw (-7%), gzip 37524 -> 35145.

Verification: 173 Vitest, 211 Rust, 106 WASM, 17 parity tests, clippy pedantic host + wasm32, fmt, lint, typecheck, build and headless Chromium smoke of continuous replacement and theme behaviour. The vacuous clear screen WASM test was replaced with one against the real SessionStep type.

Session schedule:
- Numbers now replace one another continuously: remove INTER_NUMBER_GAP_MS
  and the per-number ClearScreen step from both runtimes; the remaining
  clears are global (start/stop) and carry no delay. Plans are ~2N steps
  shorter and sessions ~N*100ms shorter.
- Remove ClearScreen.index from the wire format and all consumers; the
  driver's clear event and collision-prone branches are gone.
- Pin the new timing and wire shape in Rust, WASM, and browser tests, with
  non-vacuity probes for reintroduced gaps.

Themes and typography:
- Six coherent schemes carried from the interface through flashing: Ocean
  (default, ultramarine with a green tint), Midnight (near-black) with Dawn,
  Aqua, Ivory/Sepia, Rose/Blush, Forest/Sage. All surfaces clear 7:1.
- Large lining tabular numerals at regular weight in a plain monospace
  stack; the number uses the active theme's own foreground.
- Native sliders get a mode-scoped accent so they do not disappear into
  blue themes; the attribution block is forced to black on light themes,
  with the mode mirrored onto <body> for the sibling DOM node.
- New themeStyles test pins the wire-relevant CSS contracts.

Build, dependencies, and size:
- Drop ThreadRng from shipped builds; seed StdRng from SysRng, keeping
  thread_rng only as a test dependency on both targets.
- wasm-only opt-level 3, --remap-path-prefix in CI/release, prebuilt
  wasm-pack in release, documented rejected flags; lockfile patch updates.
- Revert solid-js 2.0 to 1.9.20: the official 2.0 migration is
  application-level and the testing library has no stable 2.0 release.
- WASM: 82465 -> ~76600 bytes raw (~-7%), gzip 37524 -> 35145.

Verification: 173 Vitest, 211 Rust, 106 WASM, 17 parity tests, clippy
pedantic host + wasm32, fmt, lint, typecheck, build and headless Chromium
smoke of continuous replacement and theme behaviour. The vacuous clear
screen WASM test was replaced with one against the real SessionStep type.

@divijg19 divijg19 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2.9.0: Continuous replacement, competitive themes and smaller WASM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment