Skip to content

LeanReact v0.6.0 (Lean 4.36.0)

Latest

Choose a tag to compare

@hargup hargup released this 01 Dec 16:30

LeanReact v0.6.0 (Lean 4.36.0)

Completes the LeanReact vNext declarative UI & SSR foundation (THE-279: LR-1..LR-4), pinned to LeanDB v0.11.1 and LeanAPI v0.8.2 with zero local path manifest dependencies.

Highlights

  • Form drafts & frozen leaf-widget FFI (THE-290 / LR-1, first shipped in v0.5.1):
    • useDraft with dirty tracking, seed reconciliation, and explicit reset.
    • Frozen leaf-widget FFI contract (CodeEditor, SplitPane, VirtualTable, CanvasChart, TimelineCanvas, KeyTrap) and canonical UI guide (docs/CANONICAL_UI.md).
  • Declarative page / useView / unified useCommand DSL (THE-291 / LR-2):
    • Page, page, Prefetch (.active / .allTabs), CollectSink, and LeanReact.Domain.Collect.preload.
    • ViewHandle, useView, viewSection, viewOne, tabs (with EditableField and .allTabs prefetch), sortControl, filterBar/facet, and signInLink.
    • Unified useCommand consuming endpoint.Progress directly for streaming progress frames, cancellation, and closed domain errors.
  • Zero-boilerplate SSR collect mode + first-class PostgreSQL & Gateway hosts (THE-292 / LR-3):
    • LeanReactServer auto-collects initial useView reads (up to 3 passes via Collect.preload), supports prefetch := .allTabs (0 client fetches on tab switch), and pairs SSR preloads with identical browser wire keys.
    • First-class SQLite, PostgreSQL 16 (multi-schema partitions), and GatewayPagesApp (ExternalPrincipal session resolution + .ownerOnly preloads) server hosts.
  • Negative compile-fail suite, LeanJS determinism gate & Chromium Playwright E2E (THE-293 / LR-4):
    • 21 domain compile-fail fixtures enforcing view, command, URL-binding, and hook-order laws.
    • scripts/check-determinism.mjs verifying 34 emitted files (7 .mjs, 7 manifests) are byte-identical across repeated runs of 4 generators.
    • 19 Chromium Playwright E2E specs covering declarative tabs/URL binding, cursor resets, sort/facet filters, useDraft, streaming useCommand progress & cancel, sign-in/terms gate, and interactive widgets.

Dependency Pins (Zero path Entries)

  • leandb: v0.11.1 (9438d4a)
  • leanapi: v0.8.2 (a0a9572)
  • leanontology: v0.1.1 (469e318)

Gate 3 Verification

  • lake build LeanReact LeanReactDomain LeanJS LeanReactServer Examples: PASS
  • node scripts/test.mjs: PASS (2556 imports, 50 intrinsics, 25/25 lib interfaces, 40/40 compiler/native parity, 63/63 LeanReact reference/P06 checks, 24/24 + 41/41 runtime/jsdom checks, 21/21 compile-fail rejections, 34/34 byte-identical determinism check)
  • node scripts/check-versions.mjs --tag v0.6.0: PASS
  • node scripts/check-docs.mjs: PASS (7 doc examples, 1 documented rejection)
  • node tests/server/check.mjs: PASS (6/6 core + 22/22 live SQLite & PostgreSQL 16 SSR/hydration checks)
  • npm run test:browser: PASS (19/19 Chromium Playwright E2E tests)