# json-render v0.19.0 - Product: json-render (https://whatsnew.fyi/product/json-render) - Vendor: Vercel - Date: 2026-05-12 - Version: v0.19.0 - Original notes: https://github.com/vercel-labs/json-render/releases/tag/v0.19.0 - Permalink: https://whatsnew.fyi/product/json-render/releases/v0.19.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Custom directives API via `defineDirective` in `@json-render/core` to declare new JSON shapes that resolve to computed values at render time - **added** — Directive composition support allowing nested directives to resolve inside-out across all four renderers (React, Vue, Svelte, Solid) - **added** — New `@json-render/directives` package with seven ready-made directives: `$format`, `$math`, `$concat`, `$count`, `$truncate`, `$pluralize`, and `$join` - **added** — Export of `createI18nDirective` for `$t` translation keys with `{{param}}` interpolation - **added** — Export of `standardDirectives` for one-line registration of common directives - **changed** — Added documentation to the chat, dashboard, game-engine, and no-ai examples ###### New Features - **Custom directives API** — `@json-render/core` now supports custom directives via `defineDirective`, letting you declare new JSON shapes (like `$format`, `$math`) that resolve to computed values at render time. Directives compose naturally — nest `$format` over `$math` over `$state` and they resolve inside-out. All four renderers (React, Vue, Svelte, Solid) have built-in directive resolution (#279) - **`@json-render/directives`** — New package shipping seven ready-made directives: `$format` (date, currency, number, percent via `Intl`), `$math` (add, subtract, multiply, divide, mod, min, max, round, floor, ceil, abs), `$concat`, `$count`, `$truncate`, `$pluralize`, and `$join`. Also exports `createI18nDirective` for `$t` translation keys with `{{param}}` interpolation, and `standardDirectives` for one-line registration (#279) ###### Improvements - **Example READMEs** — Added documentation to the chat, dashboard, game-engine, and no-ai examples (#277) ###### Contributors - @ctate