Releases: prantlf/jsonlint
17.0.1
17.0.0
17.0.0 (2026-01-05)
Features
- Control line break in empty {} and [] (a0ef54b)
Refactoring
BREAKING CHANGES
Pretty-printing will not insert a line break between
empty {} and [] by default. Although this will probably be the
desired output of all users, it might break some use cases, which
dependend on the extra line break. It can be achieved again by setting
the new option --no-compact-empty-objects (compactEmptyObjects: false).
The minimum supported version of Node.js is 22 from now on.
Also, any file path supplied on the command line is considered a glob
pattern. It shouldn't break anything though.
The minimum supported version of Node.js is 18 from now on.
16.1.0
16.1.0 (2026-01-05)
Features
- Upgrade dependencies (3dedeec)
- Add ajv-formats and ajv-keywords plugins to support the latest JSON Schema drafts (63a3b3b)
- Allow disabling strict mode of schema compilation (0d605b6)
- Print colourful JSON diff (f9e43de)
- Ability to force crlf (ca7fa7f)
Bug Fixes
- Fix schema validation instructions (ffa29c3)
16.0.0
15.0.0
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.
14.1.0
14.1.0 (2024-08-09)
Features
- Assume --trailing-commas if --trim-trailing-commas is requested (b3fb10d)
- Add options to sort object keys by locale, numerically and ignoring the letter case (4387c4b)
- Exit the process with 0 (success) if no files were found and
--succeed-with-no-fileswas requested (923f37f)
Bug Fixes
- Upgrade dependencies (355aad5)
v14.0.3
v14.0.2
v14.0.1
v14.0.0
14.0.0 (2023-03-05)
Bug Fixes
- Replace commander with hand-written command-line parser (af0ea29)
BREAKING CHANGES
- Although you shouldn't notice any change on the behaviour of the command line, something unexpected might've changed. Something did change: if you're annoyed by inserting "--" between the multi-value option and other arguments, you don't have to do it any more. Multi-value options can be entered either using the option prefix multiple times for each value, or using the option prefix just once and separating the values by commas.