Skip to content

Releases: kagal-dev/json-template

v0.1.3

25 Mar 18:04
783b010

Choose a tag to compare

Added

  • Renovate configuration with config validator workflow

Changed

  • Bump @poupe/eslint-config ~0.8.3 → ^0.8.4 — remove local
    arrow-parens override now enforced upstream
  • Use pnpm test:compat script in compat workflow
npm install @kagal/json-template@0.1.3

v0.1.2

24 Mar 18:37
0c575ad

Choose a tag to compare

Added

  • Node.js compatibility matrix (18, 20, 22) with standalone compat
    test validating the engines.node claim
  • homepage, bugs, and keywords fields for npm discovery

Changed

  • Remove redundant top-level main, module, and types
    exports map is the single source of truth
npm install @kagal/json-template@0.1.2

v0.1.1

24 Mar 16:57
03be9ae

Choose a tag to compare

First release published via GitHub Actions with
npm provenance.

Added

  • Publish workflow for npm with provenance via GitHub Actions
    OIDC trusted publishing on v* tag pushes

Changed

  • Expose pre-split dotted path segments on ScannedExpr so
    compile() reuses them instead of splitting again
  • Skip pkg-pr-new preview on tag pushes — the real npm
    publish handles those
npm install @kagal/json-template@0.1.1

v0.1.0

24 Mar 16:57

Choose a tag to compare

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} → number 3000)
  • 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, and listVariables() output
  • Fallback isolation — object/array defaults deep-copied per render
  • TemplateParseError and UnresolvedVariableError
  • jsonNull constant and isNull() type guard
npm install @kagal/json-template@0.1.0