v0.18.0
Added 4
- Add five new devtools packages (@json-render/devtools core plus React, Vue, Svelte, and Solid adapters) with a shadow-DOM-isolated panel featuring six tabs (Spec, State, Actions, Stream, Catalog, Pick), DOM picker mapping to spec keys via data-jr-key, capped event store, and server-side stream tap utilities, accessible via floating toggle or Cmd/Ctrl + Shift + J and tree-shaking to null in production
- Add new examples/devtools Next.js demo showing devtools panel wired up to an AI chat endpoint and component catalog
- Expose action observer and devtools enablement flag in @json-render/core for adapters to mirror actions and stream events
- Add unit tests for formatZodType covering record, default, and literal types to guard against regressions
Fixed 1
- Fix formatZodType to correctly handle z.record(), z.default(), and z.literal() types from Zod 4 which previously produced incorrect or empty output
From json-render
New Features
- Devtools — Five new packages for inspecting json-render apps in the browser:
@json-render/devtools(framework-agnostic core), plus@json-render/devtools-react,@json-render/devtools-vue,@json-render/devtools-svelte, and@json-render/devtools-solidadapters. Drop<JsonRenderDevtools />into your app to get a shadow-DOM-isolated panel with six tabs (Spec, State, Actions, Stream, Catalog, Pick), a DOM picker that maps clicked elements back to spec keys viadata-jr-key, a capped event store, and server-side stream tap utilities. Floating toggle orCmd/Ctrl+Shift+J, tree-shakes tonullin production (#273) - Devtools example — New
examples/devtoolsNext.js demo showing the full devtools panel wired up to an AI chat endpoint and a component catalog (#273) - Action observer and devtools flag in core —
@json-render/corenow exposes an action observer and a devtools enablement flag that adapters use to mirror actions and stream events into the panel (#273)
Bug Fixes
- Zod 4 schema formatting —
formatZodTypenow correctly handlesz.record(),z.default(), andz.literal()types from Zod 4, which previously produced incorrect or empty output in generated prompts and schemas (#239)
Improvements
- Zod 4 test coverage — Added unit tests for
formatZodTypecovering record, default, and literal types to guard against regressions (#272)
Contributors
- @ctate
- @mvanhorn