@rowsncolumns/fast-formula-parser 6.2.42 → 6.2.45

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/index.d.ts CHANGED
@@ -115,6 +115,18 @@ declare module "@rowsncolumns/fast-formula-parser" {
115
115
  row?: number;
116
116
  sheet?: string;
117
117
  }) => CellRange | FormulaError | undefined;
118
+ /**
119
+ * Observe every cell / range an evaluation actually reads, with the
120
+ * cell being evaluated (`position`, when known). `INDIRECT` / `OFFSET`
121
+ * targets exist only at run time — the dependency parser cannot see
122
+ * them — so a host uses this to learn a formula's dynamic precedents.
123
+ * Called before `onCell` / `onRange`; exceptions are swallowed.
124
+ */
125
+ onReferenceResolved?: (
126
+ event:
127
+ | { kind: "cell"; ref: CellCoords; position?: CellCoords }
128
+ | { kind: "range"; ref: CellRange; position?: CellCoords },
129
+ ) => void;
118
130
  /**
119
131
  * Resolve a 3-D reference span (`Sheet1:Sheet3!A1`): return every sheet
120
132
  * name between `first` and `last` in tab order (inclusive, regardless of
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowsncolumns/fast-formula-parser",
3
- "version": "6.2.42",
3
+ "version": "6.2.45",
4
4
  "description": "fast excel formula parser",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -11,6 +11,7 @@
11
11
  "require": "./dist/cjs/index.js"
12
12
  }
13
13
  },
14
+ "sideEffects": false,
14
15
  "typings": "index.d.ts",
15
16
  "scripts": {
16
17
  "test": "vitest --run",
@@ -45,7 +46,7 @@
45
46
  "license": "MIT",
46
47
  "dependencies": {
47
48
  "@rowsncolumns/dag": ">=7.2.31",
48
- "@rowsncolumns/utils": ">=9.5.3",
49
+ "@rowsncolumns/utils": ">=9.5.6",
49
50
  "bahttext": "^2.3.0",
50
51
  "bessel": "^1.0.2",
51
52
  "chevrotain": "^10.5.0",
@@ -64,4 +65,4 @@
64
65
  "peerDependencies": {
65
66
  "@rowsncolumns/calculator": ">=7.3.0"
66
67
  }
67
- }
68
+ }