@molecule/api-formula-engine 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-16T23:29:41.143Z
6
+ Generated: 2026-10-26T04:22:47.581Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-formula-engine
@@ -661,7 +661,7 @@ mark cycle members with a `#CIRC!` error.
661
661
  ```typescript
662
662
  function topologicalSort(
663
663
  dependents: ReadonlyMap<string, ReadonlySet<string>>,
664
- keys: readonly string[],
664
+ keys: ReadonlyArray<string>,
665
665
  ): { order: string[]; cycle: Set<string> }
666
666
  ```
667
667
 
@@ -762,7 +762,7 @@ function formatCellReference(coord: CellCoord): string
762
762
  Iterate every coordinate in a range. Yields top-to-bottom, left-to-right.
763
763
 
764
764
  ```typescript
765
- function iterateRange(range: CellRange): Generator<CellCoord, any, any>
765
+ function iterateRange(range: CellRange): Generator<CellCoord>
766
766
  ```
767
767
 
768
768
  - `range` — Cell range.
@@ -823,7 +823,7 @@ function makeError(code: FormulaErrorCode, message?: string): FormulaError
823
823
  Type-guard for `FormulaError`.
824
824
 
825
825
  ```typescript
826
- function isError(value: unknown): boolean
826
+ function isError(value: unknown): value is FormulaError
827
827
  ```
828
828
 
829
829
  - `value` — Cell value to inspect.
@@ -835,7 +835,7 @@ function isError(value: unknown): boolean
835
835
  Returns the first error encountered in a flat list, or `null` if none.
836
836
 
837
837
  ```typescript
838
- function firstError(values: readonly CellValue[]): FormulaError | null
838
+ function firstError(values: ReadonlyArray<CellValue>): FormulaError | null
839
839
  ```
840
840
 
841
841
  - `values` — Cell values to scan.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-formula-engine",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Spreadsheet-style formula evaluator: parser, evaluator, dependency tracker for cell graphs with arithmetic, comparison, string ops, references, aggregations, conditionals, date/text functions, and circular-ref detection.",
5
5
  "homepage": "https://www.molecule.dev/packages/api-formula-engine",
6
6
  "type": "module",