@mintjamsinc/ichigojs 0.1.55 → 0.1.56
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/dist/ichigo.cjs +59 -23
- package/dist/ichigo.cjs.map +1 -1
- package/dist/ichigo.esm.js +59 -23
- package/dist/ichigo.esm.js.map +1 -1
- package/dist/ichigo.esm.min.js +1 -1
- package/dist/ichigo.min.cjs +1 -1
- package/dist/ichigo.umd.js +59 -23
- package/dist/ichigo.umd.js.map +1 -1
- package/dist/ichigo.umd.min.js +1 -1
- package/dist/types/ichigo/util/ExpressionUtils.d.ts +10 -2
- package/package.json +1 -1
|
@@ -6,9 +6,15 @@ export declare class ExpressionUtils {
|
|
|
6
6
|
* Extracts variable and function names used in the expression.
|
|
7
7
|
* @param expression The expression string to analyze.
|
|
8
8
|
* @param functionDependencies A dictionary mapping function names to their dependencies.
|
|
9
|
+
* @param options Optional parsing options.
|
|
10
|
+
* - asScript: If true, parse the input as a Script (allows multi-statement source with semicolons,
|
|
11
|
+
* declarations, control-flow, etc.). If false/omitted, parse as a single expression (the default,
|
|
12
|
+
* for backward compatibility with interpolation and binding directives).
|
|
9
13
|
* @returns An array of identifier names.
|
|
10
14
|
*/
|
|
11
|
-
static extractIdentifiers(expression: string, functionDependencies: Record<string, string[]
|
|
15
|
+
static extractIdentifiers(expression: string, functionDependencies: Record<string, string[]>, options?: {
|
|
16
|
+
asScript?: boolean;
|
|
17
|
+
}): string[];
|
|
12
18
|
/**
|
|
13
19
|
* Analyzes the dependencies of functions in the provided dictionary.
|
|
14
20
|
* @param functions A dictionary mapping function names to their implementations.
|
|
@@ -23,5 +29,7 @@ export declare class ExpressionUtils {
|
|
|
23
29
|
* @param identifiers The list of identifiers that are available in bindings.
|
|
24
30
|
* @returns The rewritten expression.
|
|
25
31
|
*/
|
|
26
|
-
static rewriteExpression(expression: string, identifiers: string[]
|
|
32
|
+
static rewriteExpression(expression: string, identifiers: string[], options?: {
|
|
33
|
+
asScript?: boolean;
|
|
34
|
+
}): string;
|
|
27
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintjamsinc/ichigojs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.56",
|
|
4
4
|
"description": "ichigo.js - Simple and intuitive reactive framework. Lightweight, fast, and user-friendly virtual DOM library",
|
|
5
5
|
"main": "./dist/ichigo.cjs",
|
|
6
6
|
"module": "./dist/ichigo.esm.js",
|