@truecalc/workbook 8.2.1 → 8.2.2

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@truecalc/workbook",
3
3
  "type": "module",
4
4
  "description": "Spreadsheet workbook for the browser — full Workbook API compiled to WebAssembly",
5
- "version": "8.2.1",
5
+ "version": "8.2.2",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -224,11 +224,13 @@ export class JsWorkbook {
224
224
  * the answer, not the answer. `truncated` is always present; branch on
225
225
  * it, not on `truncatedBy`.
226
226
  *
227
- * The graph is rebuilt from the workbook's current formulas on every
228
- * call, so the result is never stale: it reflects every `set` / `clear` /
229
- * `defineName` since the last `recalc`, and is meaningful before any
230
- * `recalc` at all. Building the graph costs `O(formula cells)` per call —
231
- * an upper bound expected to improve, not a fixed contract.
227
+ * Reuses the workbook's cached dependency graph when it is warm (see
228
+ * `truecalc_workbook`'s `graph_cache` module docs) and builds fresh
229
+ * otherwise, so the result is never stale either way: it reflects every
230
+ * `set` / `clear` / `defineName` since the last `recalc`, and is
231
+ * meaningful before any `recalc` at all. A cold build costs
232
+ * `O(formula cells)` per call — an upper bound expected to improve, not
233
+ * a fixed contract.
232
234
  *
233
235
  * Throws on an unknown sheet or a malformed A1 address.
234
236
  */
@@ -206,11 +206,13 @@ export class JsWorkbook {
206
206
  * the answer, not the answer. `truncated` is always present; branch on
207
207
  * it, not on `truncatedBy`.
208
208
  *
209
- * The graph is rebuilt from the workbook's current formulas on every
210
- * call, so the result is never stale: it reflects every `set` / `clear` /
211
- * `defineName` since the last `recalc`, and is meaningful before any
212
- * `recalc` at all. Building the graph costs `O(formula cells)` per call —
213
- * an upper bound expected to improve, not a fixed contract.
209
+ * Reuses the workbook's cached dependency graph when it is warm (see
210
+ * `truecalc_workbook`'s `graph_cache` module docs) and builds fresh
211
+ * otherwise, so the result is never stale either way: it reflects every
212
+ * `set` / `clear` / `defineName` since the last `recalc`, and is
213
+ * meaningful before any `recalc` at all. A cold build costs
214
+ * `O(formula cells)` per call — an upper bound expected to improve, not
215
+ * a fixed contract.
214
216
  *
215
217
  * Throws on an unknown sheet or a malformed A1 address.
216
218
  * @param {string} sheet
Binary file