| 1 |
3.3.0 2022-06-24 |
| 2 |
================= |
| 3 |
- `JSONVisitor.onObjectBegin` and `JSONVisitor.onArrayBegin` can now return `false` to instruct the visitor that no children should be visited. |
| 4 |
|
| 5 |
|
| 6 |
3.2.0 2022-08-30 |
| 7 |
================= |
| 8 |
- update the version of the bundled Javascript files to `es2020`. |
| 9 |
- include all `const enum` values in the bundled JavaScript files (`ScanError`, `SyntaxKind`, `ParseErrorCode`). |
| 10 |
|
| 11 |
3.1.0 2022-07-07 |
| 12 |
================== |
| 13 |
* added new API `FormattingOptions.keepLines` : It leaves the initial line positions in the formatting. |
| 14 |
|
| 15 |
3.0.0 2020-11-13 |
| 16 |
================== |
| 17 |
* fixed API spec for `parseTree`. Can return `undefine` for empty input. |
| 18 |
* added new API `FormattingOptions.insertFinalNewline`. |
| 19 |
|
| 20 |
|
| 21 |
2.3.0 2020-07-03 |
| 22 |
================== |
| 23 |
* new API `ModificationOptions.isArrayInsertion`: If `JSONPath` refers to an index of an array and `isArrayInsertion` is `true`, then `modify` will insert a new item at that location instead of overwriting its contents. |
| 24 |
* `ModificationOptions.formattingOptions` is now optional. If not set, newly inserted content will not be formatted. |
| 25 |
|
| 26 |
|
| 27 |
2.2.0 2019-10-25 |
| 28 |
================== |
| 29 |
* added `ParseOptions.allowEmptyContent`. Default is `false`. |
| 30 |
* new API `getNodeType`: Returns the type of a value returned by parse. |
| 31 |
* `parse`: Fix issue with empty property name |
| 32 |
|
| 33 |
2.1.0 2019-03-29 |
| 34 |
================== |
| 35 |
* `JSONScanner` and `JSONVisitor` return lineNumber / character. |
| 36 |
|
| 37 |
2.0.0 2018-04-12 |
| 38 |
================== |
| 39 |
* renamed `Node.columnOffset` to `Node.colonOffset` |
| 40 |
* new API `getNodePath`: Gets the JSON path of the given JSON DOM node |
| 41 |
* new API `findNodeAtOffset`: Finds the most inner node at the given offset. If `includeRightBound` is set, also finds nodes that end at the given offset. |
| 42 |
|
| 43 |
1.0.3 2018-03-07 |
| 44 |
================== |
| 45 |
* provide ems modules |
| 46 |
|
| 47 |
1.0.2 2018-03-05 |
| 48 |
================== |
| 49 |
* added the `visit.onComment` API, reported when comments are allowed. |
| 50 |
* added the `ParseErrorCode.InvalidCommentToken` enum value, reported when comments are disallowed. |
| 51 |
|
| 52 |
1.0.1 |
| 53 |
================== |
| 54 |
* added the `format` API: computes edits to format a JSON document. |
| 55 |
* added the `modify` API: computes edits to insert, remove or replace a property or value in a JSON document. |
| 56 |
* added the `allyEdits` API: applies edits to a document |
| 57 |
|
| 58 |
1.0.0 |
| 59 |
================== |
| 60 |
* remove nls dependency (remove `getParseErrorMessage`) |
| 61 |
|
| 62 |
0.4.2 / 2017-05-05 |
| 63 |
================== |
| 64 |
* added `ParseError.offset` & `ParseError.length` |
| 65 |
|
| 66 |
0.4.1 / 2017-04-02 |
| 67 |
================== |
| 68 |
* added `ParseOptions.allowTrailingComma` |
| 69 |
|
| 70 |
0.4.0 / 2017-02-23 |
| 71 |
================== |
| 72 |
* fix for `getLocation`. Now `getLocation` inside an object will always return a property from inside that property. Can be empty string if the object has no properties or if the offset is before a actual property `{ "a": { | }} will return location ['a', ' ']` |
| 73 |
|
| 74 |
0.3.0 / 2017-01-17 |
| 75 |
================== |
| 76 |
* Updating to typescript 2.0 |