@discoveryjs/json-ext
Advanced tools
Changelog
0.6.1 (2024-08-06)
stringifyChunked()
by 1.5-3xstringifyInfo()
by 1.5-5xparseFromWebStream()
to ensure that the lock on the reader is properly releasedChangelog
0.6.0 (2024-07-02)
stringifyChunked()
as a generator function (as a replacer for stringifyStream()
)createStringifyWebStream()
functionparseFromWebStream()
functionparseChunked()
to accept an iterable or async iterable that iterates over string, Buffer, or TypedArray elementsstringifyStream()
, use Readable.from(stringifyChunked())
insteadstringifyChunked()
with JSON.stringify()
when replacer a list of keys and a key refer to an entry in a prototype chainstringifyInfo()
:
stringifyChunked
by accepting options
as the second parameter. Now supports:
stringifyInfo(value, replacer?, space?)
stringifyInfo(value, options?)
minLength
field into bytes
in functions resultasync
optionasync
and duplicate
fieldsJSON.stringify()
when replacer a list of keys and a key refer to an entry in a prototype chainversion
attributeChangelog
0.5.7 (2022-03-09)
package.json
content to a bundle when target is a browserChangelog
0.5.6 (2021-11-30)
stringifyStream()
hang when last element in a stream takes a long time to process (#9, @kbrownlees)Changelog
0.5.3 (2021-05-13)
stringifyStream()
and stringifyInfo()
to work properly when replacer is an allowlistparseChunked()
Changelog
0.5.2 (2020-12-26)
RangeError: Maximum call stack size exceeded
in parseChunked()
on very long arrays (corner case)Changelog
0.5.1 (2020-12-18)
parseChunked()
crash when input has trailing whitespaces (#4, @smelukov)