Added 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 two
Fixed stringifyInfo() to correctly accept the space parameter from options, i.e. stringifyInfo(data, { space: 2 })
0.6.1
Enhanced the performance of stringifyChunked() by 1.5-3x
Enhanced the performance of stringifyInfo() by 1.5-5x
Fixed parseFromWebStream() to ensure that the lock on the reader is properly released
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(), use Readable.from(stringifyChunked()) instead
Fixed conformance stringifyChunked() with JSON.stringify() when replacer a list of keys and a key refer to an entry in a prototype chain
stringifyInfo():
Aligned API with stringifyChunked by accepting options as the second parameter. Now supports:
stringifyInfo(value, replacer?, space?)
stringifyInfo(value, options?)
Renamed minLength field into bytes in functions result
Removed the async option
The function result no longer contains the async and duplicate fields
Fixed conformance with JSON.stringify() when replacer a list of keys and a key refer to an entry in a prototype chain
Discontinued exposing the version attribute
Converted to Dual Package, i.e. ESM and CommonJS support
Added 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 two
Fixed stringifyInfo() to correctly accept the space parameter from options, i.e. stringifyInfo(data, { space: 2 })
0.6.1 (2024-08-06)
Enhanced the performance of stringifyChunked() by 1.5-3x
Enhanced the performance of stringifyInfo() by 1.5-5x
Fixed parseFromWebStream() to ensure that the lock on the reader is properly released
0.6.0 (2024-07-02)
Added stringifyChunked() as a generator function (as a replacer for stringifyStream())
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(), use Readable.from(stringifyChunked()) instead
Fixed conformance stringifyChunked() with JSON.stringify() when replacer a list of keys and a key refer to an entry in a prototype chain
stringifyInfo():
Aligned API with stringifyChunked by accepting options as the second parameter. Now supports:
stringifyInfo(value, replacer?, space?)
stringifyInfo(value, options?)
Renamed minLength field into bytes in functions result
Removed the async option
The function result no longer contains the async and duplicate fields
Fixed conformance with JSON.stringify() when replacer a list of keys and a key refer to an entry in a prototype chain
Discontinued exposing the version attribute
Converted to Dual Package, i.e. ESM and CommonJS support
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @discoveryjs/json-ext from 0.5.7 to 0.6.2.
Release notes
Sourced from
@discoveryjs/json-ext
's releases.Changelog
Sourced from
@discoveryjs/json-ext
's changelog.Commits
6614e75
0.6.251e3b2c
Fix example5b99d0e
Refine into8ff6ab9
Refine intro976e097
Refactor stringify functions and related05c261f
Bump esbuild & rollup00233e2
Fix tests rejects -> throws835a9ba
AddspaceBytes
field tostringifyInfo()
result5dcb5c4
FixstringifyInfo()
to correctly accept thespace
parameter from options32b95eb
Refactor stringifyChunked testsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show