Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@discoveryjs/json-ext

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discoveryjs/json-ext - npm Package Versions

2

0.6.3

Diff

Changelog

Source

0.6.3 (2024-10-24)

  • Fixed an issue with types in the exports of package.json that introduced in version 0.6.2
lahmatiy
published 0.6.2 •

Changelog

Source

0.6.2 (2024-10-18)

  • 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 })
lahmatiy
published 0.6.1 •

Changelog

Source

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
lahmatiy
published 0.6.0 •

Changelog

Source

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
lahmatiy
published 0.5.7 •

Changelog

Source

0.5.7 (2022-03-09)

  • Fixed adding entire package.json content to a bundle when target is a browser
lahmatiy
published 0.5.6 •

Changelog

Source

0.5.6 (2021-11-30)

  • Fixed stringifyStream() hang when last element in a stream takes a long time to process (#9, @kbrownlees)
lahmatiy
published 0.5.5 •

Changelog

Source

0.5.5 (2021-09-14)

  • Added missed TypeScript typings file into the npm package
lahmatiy
published 0.5.4 •

Changelog

Source

0.5.4 (2021-09-14)

  • Added TypeScript typings (#7, @lexich)
lahmatiy
published 0.5.3 •

Changelog

Source

0.5.3 (2021-05-13)

  • Fixed stringifyStream() and stringifyInfo() 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
lahmatiy
published 0.5.2 •

Changelog

Source

0.5.2 (2020-12-26)

  • Fixed RangeError: Maximum call stack size exceeded in parseChunked() on very long arrays (corner case)
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc