unstale

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

@unstale/cli 0.3.1 on npm

@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.

    0.16.0release notes

  • Adds a server entry point for the Next.js renderer.

    0.16.0release notes

  • Adds 36 pre-built shadcn-svelte components for json-render Svelte apps, with state binding, validation, and action support.

    0.16.0release notes

  • Adds a server-safe catalog entry point for the shadcn-svelte component library.

    0.16.0release notes

@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.

    0.15.0release notes

  • Adds a server-safe catalog entry point for the Ink renderer.

    0.15.0release notes

  • Adds a server-safe schema entry point for the Ink renderer.

    0.15.0release notes

  • Adds a server-safe entry point for the Ink renderer.

    0.15.0release notes

  • Adds streaming support for the Ink terminal renderer.

    0.15.0release notes

@json-render/core 0.149 changes

New APIs and options 8

  • Accepts a format option, enabling YAML as a wire format alongside JSON.

    0.14.1release notes

  • Accepts a serializer option.

    0.14.1release notes

  • Adds a helper for building instructions for spec refinement.

    0.14.0release notes

  • Adds a helper for building user prompts for spec refinement.

    0.14.0release notes

  • Adds a helper for merge-based multi-turn spec refinement.

    0.14.0release notes

  • Adds a helper for converting diffs to patches during spec refinement.

    0.14.0release notes

  • Adds an option to buildUserPrompt() and PromptOptions for choosing patch, merge, or diff strategies for multi-turn spec refinement.

    0.14.0release notes

  • Adds a helper for checking whether a spec is non-empty.

    0.14.0release notes

Behavior and default changes 1

  • Uses Anthropic ephemeral cache control for system prompts, affecting prompt caching during generation.

    0.14.0release notes

@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.

    0.13.0release notes

@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.

    0.12.1release notes

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.

    0.12.0release notes

  • 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.

    0.12.0release notes

  • 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.

    0.12.0release notes

Fixes and other changes 1

  • Added the missing zod peer dependency for the Svelte renderer.

    0.12.0release notes

@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.

    0.11.0release notes

  • Adds the /catalog sub-path export.

    0.11.0release notes

  • Adds the /render sub-path export.

    0.11.0release notes

  • Provides a server-safe import path.

    0.11.0release notes

  • Renders a spec to a PNG buffer; requires @resvg/resvg-js.

    0.11.0release notes

  • Renders a spec to an SVG string.

    0.11.0release notes

  • The renderer provides Frame, Box, Row, Column, Heading, Text, Image, Divider, and Spacer components.

    0.11.0release notes

  • Provides a catalog for AI prompt generation.

    0.11.0release notes

@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.

    0.10.0release notes

  • A type for computed functions is exported from @json-render/core.

    0.10.0release notes

  • Adds a cross-field validation function that aliases matches with clearer semantics.

    0.10.0release notes

  • Adds cross-field validation requiring a value to be greater than another field.

    0.10.0release notes

  • Adds cross-field validation requiring a value to be less than another field, with numbers, strings, and coercion supported.

    0.10.0release notes

  • Adds cross-field validation that requires a value only when a condition field is truthy.

    0.10.0release notes

  • Expressions can interpolate state values into strings; missing paths resolve to empty strings.

    0.10.0release notes

  • Elements can map state paths to action bindings that fire when watched values change, supporting cascading dependencies.

    0.10.0release notes

Behavior and default changes 1

  • Validation arguments now resolve through resolvePropValue for consistent $state expression handling.

    0.10.0release notes

@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.

    0.9.0release notes

New APIs and options 7

  • A new factory is available for creating a state store.

    0.9.0release notes

  • This subpath exposes store utilities for building custom adapters.

    0.9.0release notes

  • A Jotai adapter for StateStore is available as a new package.

    0.9.0release notes

  • A Redux and Redux Toolkit adapter for StateStore is available as a new package.

    0.9.0release notes

  • A Zustand adapter for StateStore is available as a new package.

    0.9.0release notes

  • A new interface lets developers plug in external state management instead of using the built-in internal store.

    0.9.0release notes

  • StateProvider, JSONUIProvider, and createRenderer accept an optional store for controlled mode; when provided, it is the single source of truth.

    0.9.0release notes

Fixes and other changes 3

  • Chaining actions is fixed in the React, React Native, and React PDF packages.

    0.9.0release notes

  • The schema import now uses a server-safe subpath, avoiding createContext crashes in Next.js App Router API routes.

    0.9.0release notes

  • The inner type of Zod arrays is now resolved safely in the core schema.

    0.9.0release notes

@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.

    0.8.0release notes

  • Provides the renderer API for custom components in the PDF renderer, matching @json-render/react.

    0.8.0release notes

  • Provides the registry API for defining custom components in the PDF renderer, matching @json-render/react.

    0.8.0release notes

  • New PDF renderer package generates PDF documents from JSON specs using @react-pdf/renderer.

    0.8.0release notes

  • Adds a server-safe import path for the PDF renderer.

    0.8.0release notes

  • Renders a spec to an in-memory PDF buffer.

    0.8.0release notes

  • Renders a spec directly to a file on disk.

    0.8.0release notes

  • Renders a spec to a readable stream that can be piped to an HTTP response.

    0.8.0release notes

  • Adds Zod-based catalog definitions, with a server-safe catalog import.

    0.8.0release notes

  • Adds React PDF implementations for all standard components.

    0.8.0release notes

@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.

    0.7.0release notes

  • Adds a catalog-agnostic base type for component render functions, useful when building reusable component libraries not tied to a specific catalog.

    0.7.0release notes

  • 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.

    0.7.0release notes

  • Adds a pre-built shadcn/ui component library with Zod-based catalog definitions and React implementations, ready to use with defineCatalog and defineRegistry.

    0.7.0release notes

  • Components now receive an on(event) function that returns an EventHandle with emit, shouldPreventDefault, and bound metadata.

    0.7.0release notes

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.

    0.7.0release notes

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.

    0.7.0release notes

@json-render/core 0.633 changes

Breaking changes 12

  • Visibility logic uses $and and $or expressions, with implicit AND also supported via arrays.

    0.6.0release notes

  • The AuthState type was removed; the notes say to model auth as regular state.

    0.6.0release notes

  • The legacy catalog type was removed.

    0.6.0release notes

  • The legacy catalog API was removed.

    0.6.0release notes

  • The React export was removed.

    0.6.0release notes

  • JSONUIProvider and ActionProvider use handlers in place of actionHandlers.

    0.6.0release notes

  • Repeat scope now passes the actual item object instead of requiring token rewriting.

    0.6.0release notes

  • The repeat field repeat.path is replaced by repeat.statePath.

    0.6.0release notes

  • Structured expressions use $state in place of the former $path or path forms for props, visibility, and DynamicValue.

    0.6.0release notes

  • SetState action params use statePath in place of path.

    0.6.0release notes

  • The codegen traversal API was renamed from traverseTree.

    0.6.0release notes

  • The codegen visitor type was renamed from SpecVisitor.

    0.6.0release notes

New APIs and options 19

  • A typed convenience wrapper applies a single patch to a Spec.

    0.6.0release notes

  • Props can use $bindItem expressions for two-way data binding, with bindings passed to components for write-back to state.

    0.6.0release notes

  • Props can use $bindState expressions for two-way data binding, with bindings passed to components for write-back to state.

    0.6.0release notes

  • A utility for working with AI SDK message parts.

    0.6.0release notes

  • The new chat mode generates a chat-aware system prompt for conversational responses with embedded UI specs.

    0.6.0release notes

  • A low-level TransformStream is available for custom pipelines.

    0.6.0release notes

  • Parses mixed text and JSONL streams.

    0.6.0release notes

  • Visibility expressions support the comparison operators eq, neq, gt, gte, lt, lte, and not.

    0.6.0release notes

  • Structured expressions can reference the repeat index using $index.

    0.6.0release notes

  • Structured expressions can reference an item field using $item.

    0.6.0release notes

  • Converts nested tree specs to flat { root, elements } format.

    0.6.0release notes

  • A server-side transform separates text from JSONL patches in a mixed stream.

    0.6.0release notes

  • Resolves action parameters, including $item, $index, and $state.

    0.6.0release notes

  • Resolves binding paths.

    0.6.0release notes

  • A constant is available for type-safe filtering of AI SDK data parts.

    0.6.0release notes

  • A type is available for data-spec stream parts with patch, flat, and nested payloads.

    0.6.0release notes

  • A two-way binding hook is available for $bindState and $bindItem expressions.

    0.6.0release notes

  • A chat hook provides message history, streaming, and spec extraction.

    0.6.0release notes

  • Extracts spec and text from a message's parts array.

    0.6.0release notes

Performance 1

  • ElementRenderer is now memoized with React.memo for better performance in repeat lists.

    0.6.0release notes

Behavior and default changes 1

  • emit is always defined and no longer requires optional chaining.

    0.6.0release notes

@json-render/core 0.521 changes

Breaking changes 6

Deprecations 2

  • The Action type remains available but is deprecated in favor of ActionBinding.

    0.5.0release notes

  • Renames the Action type to ActionBinding; the old name remains available but is deprecated.

    0.5.0release notes

New APIs and options 12

  • Adds an optional example field, with Zod schema introspection as a fallback.

    0.5.2release notes

  • Automatically fixes common spec issues.

    0.5.0release notes

  • Builds structured user prompts with optional spec refinement and state context.

    0.5.0release notes

  • Schemas can define defaultRules for AI prompts.

    0.5.0release notes

  • Child elements can use $index in $path expressions to reference the current repeated item's index.

    0.5.0release notes

  • Child elements can use $item in $path expressions to reference the current repeated item.

    0.5.0release notes

  • Adds a React Native renderer with standard components, data binding, visibility, actions, and dynamic props for building native mobile UIs.

    0.5.0release notes

  • The element's on field maps events to action bindings, decoupling component logic from action handling.

    0.5.0release notes

  • State is a first-class part of specs with $path expressions.

    0.5.0release notes

  • Elements can iterate over state arrays using the repeat field.

    0.5.0release notes

  • Adds the setState action as part of state management in specs.

    0.5.0release notes

  • Validates spec structure and returns validity and issues.

    0.5.0release notes

Fixes and other changes 1

  • Prompt examples are dynamically generated from the user's catalog instead of hardcoding component names.

    0.5.2release notes

@json-render/core 0.45 changes

Breaking changes 2

New APIs and options 1

Behavior and default changes 1

  • The system prompt now includes the remove operation.

    0.4.3release notes

Fixes and other changes 1