v7.0.0
7.0.0 (2019-06-02)
Bug Fixes
- Do not use the native parser in Safari and Node.js 4 (a4a606c)
- Include the minified scripts used on the on-line page in the NPM module (03561ec)
Features
- Add "mode" parameter to set flags for a typical formt type easier (9aa09fb)
- Add an option for ignoring trailing commas in object and arrays (7d521fb)
- Add an option for reporting duplicate object keys as an error (09e3977)
- Replace the parser generated by Jison with a hand-built parser from JJU (2781670)
- Support
reviverfrom the nativeJSON.parsemethod (83cd33c)
BREAKING CHANGES
- There is no
yy.parseErrorto intercept error handling. Use the thrown error - it contains all available information. The error does not include thehashobject with structured information. Look for the documented properties. The location of the error occurrence is available aslocation.start, for example. This error reporting was enabled earlier by thelimitedErrorInfooption, which is implied enabled thus ignored now.
DEPRECATION: The only exposed object to use from now on is the parse method as a named export. Other exports (parser and Parser) are deprecated and will be removed in future.
The parser from "Utilities to work with JSON/JSON5 documents" is four times faster, than the prevous one, has approximatly the same size and can be easier enhanced, regarding both features and error handling.