Skip to content

Releases: blakeembrey/javascript-stringify

Use `Buffer.from`

14 Apr 00:29
Compare
Choose a tag to compare

Changed

  • Remove deprecated new Buffer() (#41) 83a1f3d
  • Maintain key order when restoring references (#33) 1d32d25

v2.0.1...v2.1.0

Custom Function Properties

05 Nov 10:09
Compare
Choose a tag to compare

Fixed

  • Object function properties should call next()

Added

  • Add BigInt support

ESNext Function Syntaxes + TypeScript

06 Mar 18:43
Compare
Choose a tag to compare

Huge thanks to @rhendric for the contribution and work put in to make a simple JavaScript function parser to support ES methods toString() on all node.js versions.

Changed

  • Added support for ES method, async functions, generators and computed function names via #22
  • Rewrote project in TypeScript with a property export of stringify instead of module.exports

Handle `Error`, `Map` and `Set`

23 Feb 18:52
Compare
Choose a tag to compare

Changed

  • Add support for stringifying Error, Map and Set instances

Skip Undefined Properties

02 Nov 22:44
Compare
Choose a tag to compare

Added

  • Add a new option to skip undefined property values

Max Values

19 Aug 00:52
Compare
Choose a tag to compare

Added

  • Implement a maximum number of elements to stringify before breaking (8349489)

Enable Restore References

15 Aug 09:39
Compare
Choose a tag to compare

Added

  • Enable an option to restore references using an IIFE
  • Only restore references to function and object types

Fixed

Add `maxDepth` Option

08 Aug 02:53
Compare
Choose a tag to compare

Added

  • New options object with maxDepth stringify support

Fix Circular Array References

06 Aug 03:20
Compare
Choose a tag to compare

Fixed

  • Fix circular array references

Support circular array elements

27 Jul 11:46
Compare
Choose a tag to compare

Fixed

  • Write circular array elements as undefined
  • Support for buffer stringify on node 6