v0.2.162
The largest batch since the last npm release — Phase C, all Tier-2 template features, and four
new dedicated capabilities. Two brand-new packages: @weave-framework/mcp and @weave-framework/nx.
✨ Features
- Router v2 (RFC 0003) — the router owns its signals +
useRouter(); a typedroute()builder with
RouteParamsOf<Path>param inference; route-levelloader+useLoaderData()(reuses@awaitv2); native
View Transitions. - DevTools — a live in-app panel (
mountDevtoolsPanel()): named signals/computeds/effects with values, a
dependency graph (who triggers whom), a temporal trigger-trace (inspectTrace/traceFor), and a
component/owner tree (inspectTree) — Nodes / Trace / Tree tabs. Zero-cost when off. - Tier-2 template features —
<Teleport>(alias of<Portal>),<Dynamic is>, state-preserving
<KeepAlive>, reactivestyle:prop/style:--custom, and reactiveuse:actions (ActionResult { update, destroy }). - Forms v2 —
dirty()/ pristine across field/group/fieldArray, plus schema-driven forms
(@weave-framework/forms/schema): afieldType()registry +schemaForm()builder over the existing
primitives, with 8 built-in field types and a render model. @weave-framework/mcp— a Model Context Protocol server exposing the toolchain to AI editors as tools
(weave_compile_template,weave_check,weave_routes,weave_scaffold_component). In-house JSON-RPC over
stdio, zero third-party deps. Launch withweave mcpor theweave-mcpbin.@weave-framework/nx— an Nx plugin: inferred (crystalcreateNodesV2)build/serve/checktargets with
correct cache inputs/outputs, matching executors, andapplication/library/componentgenerators.@awaitv2 — reactive source (re-enters pending + awaits a new Promise on a dependency change); transition
lifecycle callbackson:enterstart/enterend/leavestart/leaveend.- Benchmarks — a vanilla-baselined harness + a
/learn/performancemethodology page (~1.4× vanilla geomean).
♿ Accessibility / i18n
- Full RTL — bidi keyboard (key-manager
rtloption + per-component swaps) and logical-CSS / positioning
across the component library.
🐛 Fixes
- SVG
<path d={{ }}>and other SVG-only fragment roots now compile and paint (namespace-awaretemplateSvg()). - Docs sidebar highlights exactly one item — a section-root link (e.g. Examples "Overview") no longer stays
active on its child routes (Linknow supportsexact).
🔧 Internal / CI
- The docs site (
weaveframework.dev) now deploys only on a[publish]-marked release, in lockstep with npm — so
the documentation never gets ahead of the packages you can install. Ordinary pushes still validate the build. pnpm-lock.yamlsynced with the new@weave-framework/nxdependencies (fixes--frozen-lockfileCI failures).