npm / @json-render/core
@json-render/core
What changed in @json-render/core 0.4 to 0.16, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
21 breaking3 deprecations91 new APIs and options1 performance5 behavior and defaults7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@json-render/core 0.164 changes
New APIs and options 4
Adds a Next.js renderer for JSON specs, including routes, layouts, SSR, metadata, data loaders, static generation, and built-in components.
Adds a server entry point for the Next.js renderer.
Adds 36 pre-built shadcn-svelte components for json-render Svelte apps, with state binding, validation, and action support.
Adds a server-safe catalog entry point for the shadcn-svelte component library.
@json-render/core 0.155 changes
New APIs and options 5
Adds an Ink-based terminal UI renderer with standard components, action, validation, and focus contexts, and two-way state binding.
Adds a server-safe catalog entry point for the Ink renderer.
Adds a server-safe schema entry point for the Ink renderer.
Adds a server-safe entry point for the Ink renderer.
Adds streaming support for the Ink terminal renderer.
@json-render/core 0.149 changes
New APIs and options 8
Accepts a format option, enabling YAML as a wire format alongside JSON.
Accepts a serializer option.
Adds a helper for building instructions for spec refinement.
Adds a helper for building user prompts for spec refinement.
Adds a helper for merge-based multi-turn spec refinement.
Adds a helper for converting diffs to patches during spec refinement.
Adds an option to buildUserPrompt() and PromptOptions for choosing patch, merge, or diff strategies for multi-turn spec refinement.
Adds a helper for checking whether a spec is non-empty.
Behavior and default changes 1
Uses Anthropic ephemeral cache control for system prompts, affecting prompt caching during generation.
@json-render/core 0.131 changes
New APIs and options 1
jsonSchema({ strict: true }) produces a JSON Schema subset compatible with LLM structured output APIs, ensuring every object has additionalProperties: false and all properties are listed in required.
@json-render/core 0.125 changes
Deprecations 1
Generation modes were renamed from generate and chat to standalone and inline; the old names still work but emit a deprecation warning.
New APIs and options 3
New MCP Apps integration for serving json-render UIs as interactive apps in MCP-capable clients, with a server factory, React hook for iframes, and HTML utility.
New renderer for generating HTML and plain-text emails from JSON specs, with standard components, server-side rendering APIs, and custom catalog and registry support.
New Svelte 5 renderer with runes-based reactivity, supporting data binding, visibility, actions, validation, watchers, streaming, repeat scopes, and registry, schema, composable, and context-provider APIs.
Fixes and other changes 1
Added the missing zod peer dependency for the Svelte renderer.
@json-render/core 0.118 changes
New APIs and options 8
A server-side image renderer package turns JSON specs into SVG or PNG for OG images, social cards, and banners.
Adds the
/catalogsub-path export.Adds the
/rendersub-path export.Provides a server-safe import path.
Renders a spec to a PNG buffer; requires
@resvg/resvg-js.Renders a spec to an SVG string.
The renderer provides Frame, Box, Row, Column, Heading, Text, Image, Divider, and Spacer components.
Provides a catalog for AI prompt generation.
@json-render/core 0.109 changes
New APIs and options 8
Prop expressions can call named functions with resolved arguments; functions are registered via the catalog and provided at runtime.
A type for computed functions is exported from @json-render/core.
Adds a cross-field validation function that aliases matches with clearer semantics.
Adds cross-field validation requiring a value to be greater than another field.
Adds cross-field validation requiring a value to be less than another field, with numbers, strings, and coercion supported.
Adds cross-field validation that requires a value only when a condition field is truthy.
Expressions can interpolate state values into strings; missing paths resolve to empty strings.
Elements can map state paths to action bindings that fire when watched values change, supporting cascading dependencies.
Behavior and default changes 1
Validation arguments now resolve through resolvePropValue for consistent $state expression handling.
@json-render/core 0.911 changes
Breaking changes 1
The callback now receives one array of changed entries instead of being called once per path.
New APIs and options 7
A new factory is available for creating a state store.
This subpath exposes store utilities for building custom adapters.
A Jotai adapter for
StateStoreis available as a new package.A Redux and Redux Toolkit adapter for
StateStoreis available as a new package.A Zustand adapter for
StateStoreis available as a new package.A new interface lets developers plug in external state management instead of using the built-in internal store.
StateProvider,JSONUIProvider, andcreateRendereraccept an optional store for controlled mode; when provided, it is the single source of truth.
Fixes and other changes 3
Chaining actions is fixed in the React, React Native, and React PDF packages.
The schema import now uses a server-safe subpath, avoiding
createContextcrashes in Next.js App Router API routes.The inner type of Zod arrays is now resolved safely in the core schema.
@json-render/core 0.810 changes
New APIs and options 10
The PDF renderer supports state management, visibility conditions, actions, validation, and repeat scopes, matching @json-render/react.
Provides the renderer API for custom components in the PDF renderer, matching @json-render/react.
Provides the registry API for defining custom components in the PDF renderer, matching @json-render/react.
New PDF renderer package generates PDF documents from JSON specs using @react-pdf/renderer.
Adds a server-safe import path for the PDF renderer.
Renders a spec to an in-memory PDF buffer.
Renders a spec directly to a file on disk.
Renders a spec to a readable stream that can be piped to an HTTP response.
Adds Zod-based catalog definitions, with a server-safe catalog import.
Adds React PDF implementations for all standard components.
@json-render/core 0.77 changes
New APIs and options 5
Action bindings support a preventDefault boolean field so the LLM can request that default browser behavior, such as link navigation, be prevented.
Adds a catalog-agnostic base type for component render functions, useful when building reusable component libraries not tied to a specific catalog.
Schemas can declare actions that are always available at runtime and automatically injected into prompts; the React schema declares setState, pushState, and removeState this way.
Adds a pre-built shadcn/ui component library with Zod-based catalog definitions and React implementations, ready to use with defineCatalog and defineRegistry.
Components now receive an on(event) function that returns an EventHandle with emit, shouldPreventDefault, and bound metadata.
Behavior and default changes 1
The actions field is required only when the catalog declares actions, so catalogs with no actions no longer need to pass an empty actions object.
Fixes and other changes 1
The transform splits text blocks around spec data by emitting text-end/text-start pairs, preserving correct interleaving of prose and UI in message.parts.
@json-render/core 0.633 changes
Breaking changes 12
Visibility logic uses $and and $or expressions, with implicit AND also supported via arrays.
The AuthState type was removed; the notes say to model auth as regular state.
The legacy catalog type was removed.
The legacy catalog API was removed.
The React export was removed.
JSONUIProvider and ActionProvider use handlers in place of actionHandlers.
Repeat scope now passes the actual item object instead of requiring token rewriting.
The repeat field repeat.path is replaced by repeat.statePath.
Structured expressions use $state in place of the former $path or path forms for props, visibility, and DynamicValue.
SetState action params use statePath in place of path.
The codegen traversal API was renamed from traverseTree.
The codegen visitor type was renamed from SpecVisitor.
New APIs and options 19
A typed convenience wrapper applies a single patch to a Spec.
Props can use $bindItem expressions for two-way data binding, with bindings passed to components for write-back to state.
Props can use $bindState expressions for two-way data binding, with bindings passed to components for write-back to state.
A utility for working with AI SDK message parts.
The new chat mode generates a chat-aware system prompt for conversational responses with embedded UI specs.
A low-level TransformStream is available for custom pipelines.
Parses mixed text and JSONL streams.
Visibility expressions support the comparison operators eq, neq, gt, gte, lt, lte, and not.
Structured expressions can reference the repeat index using $index.
Structured expressions can reference an item field using $item.
Converts nested tree specs to flat { root, elements } format.
A server-side transform separates text from JSONL patches in a mixed stream.
Resolves action parameters, including $item, $index, and $state.
Resolves binding paths.
A constant is available for type-safe filtering of AI SDK data parts.
A type is available for data-spec stream parts with patch, flat, and nested payloads.
A two-way binding hook is available for $bindState and $bindItem expressions.
A chat hook provides message history, streaming, and spec extraction.
Extracts spec and text from a message's parts array.
Performance 1
ElementRenderer is now memoized with React.memo for better performance in repeat lists.
Behavior and default changes 1
emit is always defined and no longer requires optional chaining.
@json-render/core 0.521 changes
Breaking changes 6
Components use emit to fire named events instead of directly dispatching actions.
Renames the DataModel type to StateModel.
Renames DataProvider to StateProvider.
Renames useDataBinding to useStateBinding.
Renames useData to useStateStore.
Renames useDataValue to useStateValue.
Deprecations 2
The Action type remains available but is deprecated in favor of ActionBinding.
Renames the Action type to ActionBinding; the old name remains available but is deprecated.
New APIs and options 12
Adds an optional example field, with Zod schema introspection as a fallback.
Automatically fixes common spec issues.
Builds structured user prompts with optional spec refinement and state context.
Schemas can define defaultRules for AI prompts.
Child elements can use $index in $path expressions to reference the current repeated item's index.
Child elements can use $item in $path expressions to reference the current repeated item.
Adds a React Native renderer with standard components, data binding, visibility, actions, and dynamic props for building native mobile UIs.
The element's on field maps events to action bindings, decoupling component logic from action handling.
State is a first-class part of specs with $path expressions.
Elements can iterate over state arrays using the repeat field.
Adds the setState action as part of state management in specs.
Validates spec structure and returns validity and issues.
Fixes and other changes 1
Prompt examples are dynamically generated from the user's catalog instead of hardcoding component names.
@json-render/core 0.45 changes
Breaking changes 2
The key field was removed from flat specs.
The parentKey field was removed from flat specs.
New APIs and options 1
Adds the defineRegistry function.
Behavior and default changes 1
The system prompt now includes the remove operation.
Fixes and other changes 1
SpecStream now complies with RFC 6902.