@discoveryjs/json-ext
Advanced tools
Changelog
0.6.3 (2024-10-24)
types
in the exports
of package.json
that introduced in version 0.6.2
Changelog
0.6.2 (2024-10-18)
spaceBytes
field to stringifyInfo()
result, which indicates the number of bytes used for white spaces. This allows for estimating size of JSON.stringify()
result with and without formatting (when space
option is used) in a single pass instead of twostringifyInfo()
to correctly accept the space
parameter from options, i.e. stringifyInfo(data, { space: 2 })
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()