Download Latest Version v0.19.0 source code.tar.gz (3.1 MB)
Email in envelope

Get an email when there's a new version of json-render

Home / v0.19.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-07 1.0 kB
v0.19.0 source code.tar.gz 2026-05-07 3.1 MB
v0.19.0 source code.zip 2026-05-07 3.9 MB
Totals: 3 Items   7.0 MB 2

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
Source: README.md, updated 2026-05-07