Skip to content

v0.8.1

Choose a tag to compare

@github-actions github-actions released this 09 Oct 12:29
· 124 commits to main since this release

json-render devtools now work in Angular: <json-render-devtools> from the new ngx-json-render/devtools entry point.

It is the Angular counterpart of @json-render/devtools-react and its Vue, Svelte and Solid siblings, and it mounts the same upstream panel: the spec tree, the live state, every action dispatched, every stream patch with its token usage, the catalog, and a picker that finds the element under the pointer.

<json-render #renderer [spec]="ui.spec()" [registry]="registry" />
<json-render-devtools [renderer]="renderer" [catalog]="catalog" />

What changes for your app

  • Streams need no wiring. Every injectUIStream and injectChatUI generation in the app shows up in the Stream tab: start, each patch, chat prose, the usage line, and how it ended. Pass [chat]="chat" and each assistant reply with a spec becomes a generation you can switch between in the Spec tab.
  • The renderer is passed by template reference. Angular has no provider above <json-render> for the panel to read, so [renderer] takes the #renderer reference; spec and catalog inputs override what it reads from the renderer.
  • Production is untouched. The component renders nothing outside dev mode, and a production build drops the panel's dynamic import(), so the tag can stay in your template. Cmd/Ctrl+Shift+J toggles the panel in development.
  • Nothing changes if you do not use it. @json-render/devtools is a new optional peer; apps that never import ngx-json-render/devtools install and render exactly as before.

Upgrading

npm i ngx-json-render@0.8.1, and for the panel npm i -D @json-render/devtools@0.21 (the same version as your @json-render/core: devtools pins core exactly). ngx-json-render-material@^0.3.10 works with it unchanged.

Full Changelog: v0.8.0...v0.8.1