Releases: kagal-dev/json-template
Releases · kagal-dev/json-template
v0.1.3
v0.1.2
Added
- Node.js compatibility matrix (18, 20, 22) with standalone compat
test validating theengines.nodeclaim homepage,bugs, andkeywordsfields for npm discovery
Changed
- Remove redundant top-level
main,module, andtypes—
exportsmap is the single source of truth
npm install @kagal/json-template@0.1.2v0.1.1
First release published via GitHub Actions with
npm provenance.
Added
- Publish workflow for npm with provenance via GitHub Actions
OIDC trusted publishing onv*tag pushes
Changed
- Expose pre-split dotted path segments on
ScannedExprso
compile()reuses them instead of splitting again - Skip
pkg-pr-newpreview on tag pushes — the real npm
publish handles those
npm install @kagal/json-template@0.1.1v0.1.0
Initial release — published locally to bootstrap the npm package
and enable GitHub Actions OIDC trusted publishing.
Added
compile()— compile-once, render-many JSON template engine- Type-preserving bare variables (
${port:-3000}→ number3000) - String interpolation in embedded positions (
"${host}:${port}") - Shell-style
:-defaults with JSON-parsed bare fallbacks - Nested JSON defaults with brace-depth-aware parsing
- Dotted key paths for nested context traversal (
${server.host}) - Strict mode — throws on unresolved variables with no default
listVariables()for static analysis without requiring valid JSON- Immutable results — frozen
variables,names, andlistVariables()output - Fallback isolation — object/array defaults deep-copied per render
TemplateParseErrorandUnresolvedVariableErrorjsonNullconstant andisNull()type guard
npm install @kagal/json-template@0.1.0