Repository navigation
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 inv0.5.1):useDraftwith dirty tracking, seed reconciliation, and explicitreset.- Frozen leaf-widget FFI contract (
CodeEditor,SplitPane,VirtualTable,CanvasChart,TimelineCanvas,KeyTrap) and canonical UI guide (docs/CANONICAL_UI.md).
- Declarative
page/useView/ unifieduseCommandDSL (THE-291/LR-2):Page,page,Prefetch(.active/.allTabs),CollectSink, andLeanReact.Domain.Collect.preload.ViewHandle,useView,viewSection,viewOne,tabs(withEditableFieldand.allTabsprefetch),sortControl,filterBar/facet, andsignInLink.- Unified
useCommandconsumingendpoint.Progressdirectly for streaming progress frames, cancellation, and closed domain errors.
- Zero-boilerplate SSR collect mode + first-class PostgreSQL & Gateway hosts (
THE-292/LR-3):LeanReactServerauto-collects initialuseViewreads (up to 3 passes viaCollect.preload), supportsprefetch := .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(ExternalPrincipalsession resolution +.ownerOnlypreloads) server hosts.
- Negative compile-fail suite, LeanJS determinism gate & Chromium Playwright E2E (
THE-293/LR-4):21domain compile-fail fixtures enforcing view, command, URL-binding, and hook-order laws.scripts/check-determinism.mjsverifying34emitted files (7.mjs,7manifests) are byte-identical across repeated runs of 4 generators.19Chromium Playwright E2E specs covering declarative tabs/URL binding, cursor resets, sort/facet filters,useDraft, streaminguseCommandprogress & 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: PASSnode scripts/test.mjs: PASS (2556imports,50intrinsics,25/25lib interfaces,40/40compiler/native parity,63/63LeanReact reference/P06 checks,24/24+41/41runtime/jsdom checks,21/21compile-fail rejections,34/34byte-identical determinism check)node scripts/check-versions.mjs --tag v0.6.0: PASSnode scripts/check-docs.mjs: PASS (7doc examples,1documented rejection)node tests/server/check.mjs: PASS (6/6core +22/22live SQLite & PostgreSQL 16 SSR/hydration checks)npm run test:browser: PASS (19/19Chromium Playwright E2E tests)