Skip to content

v2.2.0

Compare
Choose a tag to compare
@BridgeAR BridgeAR released this 31 Oct 11:49
· 31 commits to main since this release
  • Reduce module size by removing the test and benchmark files from the published package
  • Accept undefined as circularValue option to remove circular properties from the serialized output:
import { configure } from 'safe-stable-stringify'

const object = { array: [] }
object.circular = object;
object.array.push(object)

configure({ circularValue: undefined })(object)
// '{"array":[null]}'