You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+20-14Lines changed: 20 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,45 +1,51 @@
1
+
2.3.0 2020-07-03
2
+
==================
3
+
* 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.
4
+
*`ModificationOptions.formattingOptions` is now optional. If not set, newly inserted content will be not be formatted.
5
+
6
+
1
7
2.2.0 2019-10-25
2
8
==================
3
-
* added *ParseOptions.allowEmptyContent*. Default is `false`.
4
-
* New API *getNodeType*: Returns the type of a value returned by parse.
5
-
*parse: Fix issue with empty property name
9
+
* added `ParseOptions.allowEmptyContent`. Default is `false`.
10
+
* new API `getNodeType`: Returns the type of a value returned by parse.
11
+
*`parse`: Fix issue with empty property name
6
12
7
13
2.1.0 2019-03-29
8
14
==================
9
15
*`JSONScanner` and `JSONVisitor` return lineNumber / character.
10
16
11
17
2.0.0 2018-04-12
12
18
==================
13
-
* renamed Node.columnOffset to Node.colonOffset
14
-
* new API getNodePath: Gets the JSON path of the given JSON DOM node
15
-
* 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.
19
+
* renamed `Node.columnOffset` to `Node.colonOffset`
20
+
* new API `getNodePath`: Gets the JSON path of the given JSON DOM node
21
+
* 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.
16
22
17
23
1.0.3 2018-03-07
18
24
==================
19
25
* provide ems modules
20
26
21
27
1.0.2 2018-03-05
22
28
==================
23
-
* added the *visit.onComment* API, reported when comments are allowed.
24
-
* added the *ParseErrorCode.InvalidCommentToken* enum value, reported when comments are disallowed.
29
+
* added the `visit.onComment` API, reported when comments are allowed.
30
+
* added the `ParseErrorCode.InvalidCommentToken` enum value, reported when comments are disallowed.
25
31
26
32
1.0.1
27
33
==================
28
-
* added the *format* API: computes edits to format a JSON document.
29
-
* added the *modify* API: computes edits to insert, remove or replace a property or value in a JSON document.
30
-
* added the *allyEdits* API: applies edits to a document
34
+
* added the `format` API: computes edits to format a JSON document.
35
+
* added the `modify` API: computes edits to insert, remove or replace a property or value in a JSON document.
36
+
* added the `allyEdits` API: applies edits to a document
thrownewError(`Can not ${value===void0 ? 'remove' : (isArrayInsertion ? 'insert' : 'modify')} Array index ${insertIndex} as length is not sufficient`);
135
+
thrownewError(`Can not ${value===void0 ? 'remove' : (options.isArrayInsertion ? 'insert' : 'modify')} Array index ${insertIndex} as length is not sufficient`);
136
136
}
137
137
}else{
138
138
thrownewError(`Can not add ${typeoflastSegment!=='number' ? 'index' : 'property'} to parent of type ${parent.type}`);
0 commit comments