unstale

npm / @discoveryjs/json-ext

@discoveryjs/json-ext

What changed in @discoveryjs/json-ext 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

1 breaking8 new APIs and options1 performance2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@discoveryjs/json-ext 112 changes

Breaking changes 1

  • When onRootValue is specified, returns the number of processed root values instead of collecting and returning parsed values.

    1.0.0release notes

New APIs and options 8

  • The state passed to onChunk and onRootValue callbacks now includes returnValue and currentRootValue properties.

    1.1.0release notes

  • Internal TypeScript types, including options and public function return types, are now exposed as part of the public API.

    1.1.0release notes

  • Adds JSONL mode for parsing multiple newline-separated JSON values from a stream; supported modes are json, jsonl, and auto.

    1.0.0release notes

  • Adds an onChunk option for progress tracking.

    1.0.0release notes

  • Adds a callback for incremental stream processing that is called with each parsed root value.

    1.0.0release notes

  • Adds JSON.parse()-like reviver support as a second argument or in the options object.

    1.0.0release notes

  • Adds jsonl mode to serialize iterable input into newline-delimited JSON values; json remains the default.

    1.0.0release notes

  • Adds jsonl mode to compute byte size for newline-delimited JSON values; json remains the default.

    1.0.0release notes

Performance 1

  • The function-based implementation is smaller and faster than the previous class-based implementation.

    1.0.0release notes

Fixes and other changes 2

  • Fixes an out-of-memory issue on very long arrays, including corner cases with millions of elements.

    1.0.0release notes

  • Fixes various issues when parsing malformed JSON.

    1.0.0release notes