Skip to content

Releases: slegarraga/json-from-llm

v0.2.1

07 Jun 07:42

Choose a tag to compare

Added

  • Added provider-style fixtures for fenced OpenAI-like output, multiple fenced
    candidates, Anthropic-like prose wrappers, malformed drafts before final JSON,
    truncated streams and unclosed reasoning blocks.
  • Added edge-case coverage for BOM/whitespace, escaped braces in strings,
    deeply nested JSON and partial malformed input.

Changed

  • Made balanced scanning delimiter-aware so mismatched { / ] drafts and
    truncated JSON-looking containers are skipped as malformed candidates.
  • Prefer complete fenced payloads across all JSON-ish fences before falling back
    to lower-confidence balanced fragments inside fenced prose.
  • Treat unclosed reasoning tags as reasoning through the end of the text to
    avoid extracting valid-looking draft JSON.

Published to npm as json-from-llm@0.2.1.

json-from-llm v0.2.0

05 Jun 17:04
7078f83

Choose a tag to compare

json-from-llm 0.2.0

Adds the first CLI release for pipeline-friendly JSON extraction from LLM output.

Highlights

  • json-from-llm binary reads stdin and prints normalized JSON to stdout.
  • --expect object|array|any chooses the top-level JSON type users want.
  • --no-repair supports strict extraction without trailing-comma repair.
  • README now includes copy-paste CLI and npx examples plus exit codes.

Verification

  • npm run typecheck
  • npm test — 26 tests passed
  • npm run lint
  • npm run build
  • npm pack --dry-run
  • npm publish --dry-run
  • Built CLI e2e via node dist/cli.js
  • Packed install e2e via local tarball and npx json-from-llm
  • Published install e2e via npm exec --package json-from-llm@0.2.0 -- json-from-llm

npm: https://www.npmjs.com/package/json-from-llm/v/0.2.0
PR: #11
Issue: #10

json-from-llm v0.1.3

05 Jun 04:21
f22a014

Choose a tag to compare

Added

  • Added a public reasoning-output fixture corpus for thinking tags, fenced JSON, prose wrappers, trailing commas, top-level type expectations and no-JSON failures.
  • Added expected tryExtractJson outputs under fixtures/expected/.
  • Added tests that read the fixture corpus directly.
  • Published fixtures/ in the npm package for downstream parser and agent-loop tests.

Validation

  • CI passed on Node 20 and 22.
  • CodeQL passed.
  • npm package published as json-from-llm@0.1.3.

json-from-llm v0.1.2

05 Jun 03:16

Choose a tag to compare

Changed

  • Updated vulnerable development tooling to clear Dependabot alerts.
  • Added CodeQL, OpenSSF Scorecard, pinned GitHub Actions, least-privilege workflow permissions, Dependabot config and a Scorecard README badge.

Verification

json-from-llm v0.1.1

04 Jun 18:45

Choose a tag to compare

Docs/package metadata release.

  • Publishes README package-status badges and npm download visibility to the npm package page.
  • Adds release notes for the current patch version.
  • No runtime behavior changes.

json-from-llm v0.1.0

04 Jun 18:22

Choose a tag to compare

Initial npm release for json-from-llm.

Highlights:

  • Extracts valid JSON from LLM responses wrapped in reasoning/thinking tags, markdown fences or prose.
  • Uses a string-aware balanced-value scanner and conservative trailing-comma repair.
  • Supports object, array and any-value expectations.
  • Keeps the package zero-dependency and MIT licensed.