Releases: slegarraga/json-from-llm
Releases · slegarraga/json-from-llm
v0.2.1
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
json-from-llm 0.2.0
Adds the first CLI release for pipeline-friendly JSON extraction from LLM output.
Highlights
json-from-llmbinary reads stdin and prints normalized JSON to stdout.--expect object|array|anychooses the top-level JSON type users want.--no-repairsupports strict extraction without trailing-comma repair.- README now includes copy-paste CLI and
npxexamples plus exit codes.
Verification
npm run typechecknpm test— 26 tests passednpm run lintnpm run buildnpm pack --dry-runnpm 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
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
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
- CI, CodeQL, Scorecard and Release workflows passed.
- npm: https://www.npmjs.com/package/json-from-llm/v/0.1.2
json-from-llm v0.1.1
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
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.