Releases: prantlf/jsonlint
Releases · prantlf/jsonlint
v8.0.3
v8.0.2
v8.0.1
v8.0.0
8.0.0 (2019-06-16)
Bug Fixes
- Give the schema-drafts.js proper name and path in source maps (c2f0148)
Features
- Add the tokenize method returning tokens instead of the parsed object (cc7b554)
- Improve schema error reporting to the level of data parsing (ea5a8a2)
- Remove deprecated exports
Parser
andparser
(8bda5b1)
BREAKING CHANGES
- The
Parser
class andparser
instance did not bring any benefit. They were generated by Jison. After abandoning the Jison parser they were kept for compatibility only. The only method on theParser
prototype was theparse
. It remains unchanged as a direct export. Drop the class interface and just call theparse
method directly.
v7.0.3
v7.0.2
v7.0.1
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
reviver
from the nativeJSON.parse
method (83cd33c)
BREAKING CHANGES
- There is no
yy.parseError
to intercept error handling. Use the thrown error - it contains all available information. The error does not include thehash
object 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 thelimitedErrorInfo
option, 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.