@fibery/expression-utils 7.0.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/expression-utils.js +6 -0
- package/lib/utils.js +6 -0
- package/package.json +4 -4
package/lib/expression-utils.js
CHANGED
|
@@ -275,6 +275,12 @@ const collectFieldExpressions = (memo, expression) => {
|
|
|
275
275
|
throw new NotImplementedError(expression, "expression");
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
|
+
|
|
279
|
+
/** @deprecated
|
|
280
|
+
* This method checks few expression forms, that we do not generate on frontend anymore(field-access shortcut, direct value as parameter).
|
|
281
|
+
* I'm afraid to replace it with implementation based on visitor everywhere, as visitors don't allow such expression forms and I don't want to extend visitor with those forms.
|
|
282
|
+
* If you need this method in new places, consider implementing same logic on visitors and use it.
|
|
283
|
+
**/
|
|
278
284
|
const extractFieldExpressions = expression => {
|
|
279
285
|
const memo = [];
|
|
280
286
|
collectFieldExpressions(memo, expression);
|
package/lib/utils.js
CHANGED
|
@@ -87,6 +87,12 @@ const collectFieldExpressions = (memo, expression) => {
|
|
|
87
87
|
throw new NotImplementedError(expression, "expression");
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
+
|
|
91
|
+
/** @deprecated
|
|
92
|
+
* This method checks few expression forms, that we do not generate on frontend anymore(field-access shortcut, direct value as parameter).
|
|
93
|
+
* I'm afraid to replace it with implementation based on visitor everywhere, as visitors don't allow such expression forms and I don't want to extend visitor with those forms.
|
|
94
|
+
* If you need this method in new places, consider implementing same logic on visitors and use it.
|
|
95
|
+
**/
|
|
90
96
|
const extractFieldExpressions = expression => {
|
|
91
97
|
const memo = [];
|
|
92
98
|
collectFieldExpressions(memo, expression);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/expression-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "utils for working with fibery api expressions",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./lib/expression-utils.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"lodash": "4.17.21",
|
|
28
28
|
"moment": "2.29.4",
|
|
29
|
-
"@fibery/helpers": "1.
|
|
29
|
+
"@fibery/helpers": "1.3.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "7.23.9",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"jest-junit": "13.0.0",
|
|
36
36
|
"microbundle": "0.15.1",
|
|
37
37
|
"@fibery/babel-preset": "7.4.0",
|
|
38
|
-
"@fibery/eslint-config": "8.
|
|
38
|
+
"@fibery/eslint-config": "8.6.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@fibery/schema": "10.0
|
|
41
|
+
"@fibery/schema": "10.2.0"
|
|
42
42
|
},
|
|
43
43
|
"jest": {
|
|
44
44
|
"testEnvironment": "node",
|