-
Notifications
You must be signed in to change notification settings - Fork 0
Releases: pch007/json-render
Releases · pch007/json-render
v0.19.0
New Features
- Custom directives API —
@json-render/corenow supports custom directives viadefineDirective, letting you declare new JSON shapes (like$format,$math) that resolve to computed values at render time. Directives compose naturally — nest$formatover$mathover$stateand 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 viaIntl),$math(add, subtract, multiply, divide, mod, min, max, round, floor, ceil, abs),$concat,$count,$truncate,$pluralize, and$join. Also exportscreateI18nDirectivefor$ttranslation keys with{{param}}interpolation, andstandardDirectivesfor one-line registration (#279)
Improvements
- Example READMEs — Added documentation to the chat, dashboard, game-engine, and no-ai examples (#277)