Skip to content

Commit 64ac1b8

Browse files
authored
Merge branch 'jsonata-js:master' into master
2 parents 6e24c30 + 8de9efa commit 64ac1b8

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
#### 2.0.3 Maintenance Release
2+
3+
- Fix regex termination lexer (PR https://github.com/jsonata-js/jsonata/pull/623)
4+
- Fix TypeScript definition (PR https://github.com/jsonata-js/jsonata/pull/633)
5+
16
#### 2.0.2 Maintenance Release
27

3-
- Typescript definition: fix return type of evaluate method (PR #615)
8+
- Typescript definition: fix return type of evaluate method (PR https://github.com/jsonata-js/jsonata/pull/615)
49

510
#### 2.0.1 Maintenance Release
611

docs/predicate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ At any step in a location path, the selected items can be filtered using a predi
3131

3232
## Singleton array and value equivalence
3333

34-
Within a JSONata expression or subexpression, any value (which is not itself an array) and an array containing just that value are deemed to be equivalent. This allows the language to be composable such that location paths that extract a single value from and object and location paths that extract multiple values from arrays can both be used as inputs to other expressions without needing to use different syntax for the two forms.
34+
Within a JSONata expression or subexpression, any value (which is not itself an array) and an array containing just that value are deemed to be equivalent. This allows the language to be composable such that location paths that extract a single value from an object and location paths that extract multiple values from arrays can both be used as inputs to other expressions without needing to use different syntax for the two forms.
3535

3636
Consider the following examples:
3737

jsonata.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
// Project: https://github.com/jsonata-js/jsonata
33
// Definitions by: Nick <https://github.com/nick121212> and Michael M. Tiller <https://github.com/xogeny>
44

5-
declare function jsonata(str: string): jsonata.Expression;
5+
declare function jsonata(str: string, options?: jsonata.JsonataOptions): jsonata.Expression;
66
declare namespace jsonata {
77

8+
interface JsonataOptions {
9+
recover?: boolean,
10+
RegexEngine?: RegExp
11+
}
12+
813
interface ExprNode {
914
type: string;
1015
value?: any;
@@ -15,7 +20,7 @@ declare namespace jsonata {
1520
steps?: ExprNode[];
1621
expressions?: ExprNode[];
1722
stages?: ExprNode[];
18-
lhs?: ExprNode;
23+
lhs?: ExprNode[];
1924
rhs?: ExprNode;
2025
}
2126

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsonata",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "JSON query and transformation language",
55
"module": "jsonata.js",
66
"main": "jsonata.js",

0 commit comments

Comments
 (0)