Skip to content

Latest commit

 

History

History
225 lines (108 loc) · 9.79 KB

CHANGELOG.md

File metadata and controls

225 lines (108 loc) · 9.79 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.8.0 (2024-05-15)

Features

  • #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)

Bug Fixes

  • #126 more robust detection of MongoDB data types and JSONP callbacks (58fe64c)

3.7.0 (2024-04-24)

Features

  • turn invalid numbers into strings (b2c68f3)

Bug Fixes

3.6.1 (2024-04-11)

Bug Fixes

3.6.0 (2024-02-13)

Features

  • repair unescaped double quotes (WIP) (9e7b04b)

Bug Fixes

3.5.1 (2024-01-10)

Bug Fixes

  • #112 remove comments after a string containing a delimiter (6e12753)

3.5.0 (2023-12-07)

Features

  • #106 streaming support in Node.js (#111)

Bug Fixes

  • repair a string concat that is not followed by a string

3.4.1 (2023-11-12)

Bug Fixes

3.4.0 (2023-11-01)

Features

3.3.0 (2023-11-01)

Features

3.2.4 (2023-10-04)

Bug Fixes

  • #101 implement a smarter way to fix both missing end quotes and unescaped newline characters (51a4de9)

3.2.3 (2023-09-27)

Bug Fixes

  • #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)

Bug Fixes

  • #100 jsonrepair sometimes crashing when repairing missing quotes (regression since v3.2.1) (f573da2)

3.2.1 (2023-09-20)

Bug Fixes

  • #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)

Features

  • repair a missing object value (2cd756f)

Bug Fixes

  • #93 repair undefined values by replacing them with null (af348d7)

3.1.0 (2023-05-04)

Features

  • 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)

Bug Fixes

  • #89 wrongly parsing strings that contain a double quote left or right (4023ece)

3.0.2 (2023-01-06)

Bug Fixes

  • error handling unicode characters containing a 9 (d665ec2)

3.0.1 (2022-12-20)

Bug Fixes

  • improve resolving unquoted strings and missing colon (45cd4e4)

2021-12-19, version 3.0.0

  • 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 export import { jsonrepair} from 'jsonrepair'
  • Changed in UMD export from jsonrepair to JSONRepair.jsonrepair
  • Changed the error class to JSONRepairError with a property .position

2021-06-09, version 2.2.1

  • Improved handling of trailing commas.
  • Improved handling of newline delimited JSON containing commas.
  • Improved handling of repairing objects/arrays with missing closing bracket.

2021-04-01, version 2.2.0

  • Implement #16: turn an escaped string containing JSON into valid JSON.

2021-04-01, version 2.1.0

  • Implemented command line interface (CLI), see #34.

2021-03-01, version 2.0.1

  • Performance improvements.

2021-01-13, version 2.0.0

  • Renamed the library from simple-json-repair to jsonrepair. 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.

2020-11-06, version 1.1.0

  • Implement support for string concatenation.
  • Implement support for adding missing end brackets for objects and arrays.

2020-11-05, version 1.0.1

  • Fixed ESM and UMD builds missing in npm package.

2020-11-05, version 1.0.0

  • Initial release, code extracted from the library jsoneditor.