[6a3a178] | 1 | 3.0.0 2020-11-13
|
---|
| 2 | ==================
|
---|
| 3 | * fixed API spec for `parseTree`. Can return `undefine` for empty input.
|
---|
| 4 | * added new API `FormattingOptions.insertFinalNewline`.
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | 2.3.0 2020-07-03
|
---|
| 8 | ==================
|
---|
| 9 | * 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.
|
---|
| 10 | * `ModificationOptions.formattingOptions` is now optional. If not set, newly inserted content will not be formatted.
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | 2.2.0 2019-10-25
|
---|
| 14 | ==================
|
---|
| 15 | * added `ParseOptions.allowEmptyContent`. Default is `false`.
|
---|
| 16 | * new API `getNodeType`: Returns the type of a value returned by parse.
|
---|
| 17 | * `parse`: Fix issue with empty property name
|
---|
| 18 |
|
---|
| 19 | 2.1.0 2019-03-29
|
---|
| 20 | ==================
|
---|
| 21 | * `JSONScanner` and `JSONVisitor` return lineNumber / character.
|
---|
| 22 |
|
---|
| 23 | 2.0.0 2018-04-12
|
---|
| 24 | ==================
|
---|
| 25 | * renamed `Node.columnOffset` to `Node.colonOffset`
|
---|
| 26 | * new API `getNodePath`: Gets the JSON path of the given JSON DOM node
|
---|
| 27 | * 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.
|
---|
| 28 |
|
---|
| 29 | 1.0.3 2018-03-07
|
---|
| 30 | ==================
|
---|
| 31 | * provide ems modules
|
---|
| 32 |
|
---|
| 33 | 1.0.2 2018-03-05
|
---|
| 34 | ==================
|
---|
| 35 | * added the `visit.onComment` API, reported when comments are allowed.
|
---|
| 36 | * added the `ParseErrorCode.InvalidCommentToken` enum value, reported when comments are disallowed.
|
---|
| 37 |
|
---|
| 38 | 1.0.1
|
---|
| 39 | ==================
|
---|
| 40 | * added the `format` API: computes edits to format a JSON document.
|
---|
| 41 | * added the `modify` API: computes edits to insert, remove or replace a property or value in a JSON document.
|
---|
| 42 | * added the `allyEdits` API: applies edits to a document
|
---|
| 43 |
|
---|
| 44 | 1.0.0
|
---|
| 45 | ==================
|
---|
| 46 | * remove nls dependency (remove `getParseErrorMessage`)
|
---|
| 47 |
|
---|
| 48 | 0.4.2 / 2017-05-05
|
---|
| 49 | ==================
|
---|
| 50 | * added `ParseError.offset` & `ParseError.length`
|
---|
| 51 |
|
---|
| 52 | 0.4.1 / 2017-04-02
|
---|
| 53 | ==================
|
---|
| 54 | * added `ParseOptions.allowTrailingComma`
|
---|
| 55 |
|
---|
| 56 | 0.4.0 / 2017-02-23
|
---|
| 57 | ==================
|
---|
| 58 | * 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', ' ']`
|
---|
| 59 |
|
---|
| 60 | 0.3.0 / 2017-01-17
|
---|
| 61 | ==================
|
---|
| 62 | * Updating to typescript 2.0 |
---|