Releases: blakeembrey/javascript-stringify
Releases · blakeembrey/javascript-stringify
Use `Buffer.from`
Custom Function Properties
Fixed
- Object function properties should call
next()
Added
- Add
BigInt
support
ESNext Function Syntaxes + TypeScript
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 ofmodule.exports
Handle `Error`, `Map` and `Set`
Changed
- Add support for stringifying
Error
,Map
andSet
instances
Skip Undefined Properties
Added
- Add a new option to skip undefined property values
Max Values
Added
- Implement a maximum number of elements to stringify before breaking (8349489)
Enable Restore References
Added
- Enable an option to restore references using an IIFE
- Only restore references to function and object types
Fixed
- Accidentally fixed a recurring issue with maximum stack sizes (8401708#commitcomment-18634764)
Add `maxDepth` Option
Added
- New options object with
maxDepth
stringify support
Fix Circular Array References
Fixed
- Fix circular array references
Support circular array elements
Fixed
- Write circular array elements as
undefined
- Support for buffer stringify on node 6