All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.11.2 (2024-12-20)
- handle repairing a missing comma at a newline (ecf9588)
3.11.1 (2024-12-03)
3.11.0 (2024-11-27)
3.10.0 (2024-11-05)
- repair unquoted urls (dfca0f6)
3.9.0 (2024-10-21)
- #126 #130 repair strings containing a colon or parenthesis (948c571)
- #126 #130 repair strings containing a colon or parenthesis (99830b7)
3.8.1 (2024-09-18)
- code style adjustments, use template literals consistently (594f535)
3.8.0 (2024-05-15)
- #125 strip leading commas in objects and arrays (0ee8597)
- #127 skip ellipsis in arrays and objects (019e509)
- strip ellipsis from empty objects and arrays (5731996)
3.7.1 (2024-05-09)
3.7.0 (2024-04-24)
- turn invalid numbers into strings (b2c68f3)
3.6.1 (2024-04-11)
3.6.0 (2024-02-13)
- repair unescaped double quotes (WIP) (9e7b04b)
- #102 repair truncated string containing a single quote (bc46250)
- #114 #102 repair unescaped quotes in a string (647326c)
3.5.1 (2024-01-10)
3.5.0 (2023-12-07)
- repair a string concat that is not followed by a string
3.4.1 (2023-11-12)
3.4.0 (2023-11-01)
3.3.0 (2023-11-01)
3.2.4 (2023-10-04)
- #101 implement a smarter way to fix both missing end quotes and unescaped newline characters (51a4de9)
3.2.3 (2023-09-27)
- #99 fix repairing single quoted strings containing quotes such as backtick (b4b9180)
- repair numeric values with trailing zeros like
00789
by changing them into a string (399f593)
3.2.2 (2023-09-22)
- #100 jsonrepair sometimes crashing when repairing missing quotes (regression since v3.2.1) (f573da2)
3.2.1 (2023-09-20)
- #97 improved handling of missing start and end quotes (82df750)
- #98 wrong position reported in the error message of invalid numbers (5093616)
- throw an error on numbers with a leading zero instead of splitting them in two (829d3ee)
3.2.0 (2023-06-13)
- repair a missing object value (2cd756f)
3.1.0 (2023-05-04)
- fix broken numbers at the end of the string (c42d9dd)
- fix broken numbers at the end of the string (#91) (9ad00fd)
3.0.3 (2023-04-17)
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
.