Skip to content

15.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Aug 22:34
· 3 commits to master since this release

15.0.0 (2024-08-09)

Features

  • Optionally omit object key proto and others from parsed output (e2f8a7b)

BREAKING CHANGES

Object key __proto__ and other keys from Object.prototype are included in the parsed object by default. Earlier, no keys from Object.prototype were included. The new behaviour is consistent with JSON.parse. If you need the old behaviour, add the argument ignore-prototype-keys to the command line, or set the option ignorePrototypeKeys to true, when calling the parse method. If you don't have under control, what will happen with the parsed object, you should consider setting ignoreProtoKey to true, when calling the parse method, to prevent prototype pollution by omitting the __proto__ key.