Releases: discoveryjs/json-ext
Releases · discoveryjs/json-ext
0.6.3
0.6.2
- Added
spaceBytes
field tostringifyInfo()
result, which indicates the number of bytes used for white spaces. This allows for estimating size ofJSON.stringify()
result with and without formatting (whenspace
option is used) in a single pass instead of two - Fixed
stringifyInfo()
to correctly accept thespace
parameter from options, i.e.stringifyInfo(data, { space: 2 })
0.6.1
0.6.0
- Added
stringifyChunked()
as a generator function - Added
createStringifyWebStream()
function - Added
parseFromWebStream()
function - Changed
parseChunked()
to accept an iterable or async iterable that iterates over string, Buffer, or TypedArray elements - Removed
stringifyStream()
, useReadable.from(stringifyChunked())
instead - Fixed conformance
stringifyChunked()
withJSON.stringify()
when replacer a list of keys and a key refer to an entry in a prototype chain stringifyInfo()
:- Aligned API with
stringifyChunked
by acceptingoptions
as the second parameter. Now supports:stringifyInfo(value, replacer?, space?)
stringifyInfo(value, options?)
- Renamed
minLength
field intobytes
in functions result - Removed the
async
option - The function result no longer contains the
async
andduplicate
fields - Fixed conformance with
JSON.stringify()
when replacer a list of keys and a key refer to an entry in a prototype chain
- Aligned API with
- Discontinued exposing the
version
attribute - Converted to Dual Package, i.e. ESM and CommonJS support
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
- Fixed
stringifyStream()
andstringifyInfo()
to work properly when replacer is an allowlist parseChunked()
- Fixed wrong parse error when chunks are splitted on a whitespace inside an object or array (#6, @alexei-vedder)
- Fixed corner cases when wrong placed or missed comma doesn't cause to parsing failure