All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.0.2 (2023-01-06)
- error handling unicode characters containing a
9
(d665ec2)
3.0.1 (2022-12-20)
- improve resolving unquoted strings and missing colon (45cd4e4)
- Complete rewrite of the parser in TypeScript, with improved performance.
- Can repair some additional cases of broken JSON.
⚠ BREAKING CHANGES
- Changed the API from default export
import jsonrepair from 'jsonrepair'
to named exportimport { jsonrepair} from 'jsonrepair'
- Changed in UMD export from
jsonrepair
toJSONRepair.jsonrepair
- Changed the error class to
JSONRepairError
with a property.position
- Improved handling of trailing commas.
- Improved handling of newline delimited JSON containing commas.
- Improved handling of repairing objects/arrays with missing closing bracket.
- Implement #16: turn an escaped string containing JSON into valid JSON.
- Implemented command line interface (CLI), see #34.
- Performance improvements.
- Renamed the library from
simple-json-repair
tojsonrepair
. Thanks a lot @vmx for making this npm package name available! - Change source code from TypeScript to JavaScript. Reasons: TypeScript
conflicts with using native ESM, requiring ugly workarounds.
Due to some (old) TypeScript issues we also have to use
@ts-ignore
a lot. Using TypeScript makes running tests slower. And in this case, TypeScript hardly adds value since we have a very simple API and function signatures.
- Implement support for string concatenation.
- Implement support for adding missing end brackets for objects and arrays.
- Fixed ESM and UMD builds missing in npm package.
- Initial release, code extracted from the library
jsoneditor
.