@truecalc/core 1.0.1 → 2.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/README.md CHANGED
@@ -7,6 +7,14 @@
7
7
 
8
8
  WebAssembly-powered spreadsheet formula engine for JavaScript/TypeScript.
9
9
 
10
+ 484 spreadsheet functions. Runs in Node.js, Bun, Deno, and the browser — no server needed. Ground-truth conformance against real Google Sheets. The same engine is also available as a [Rust crate](https://crates.io/crates/truecalc-core) and as an [MCP server](https://crates.io/crates/truecalc-mcp) for AI assistants.
11
+
12
+ ```js
13
+ const { evaluate } = require('@truecalc/core');
14
+ evaluate('SUM(A1, B1)', { A1: 100, B1: 200 })
15
+ // => { type: 'number', value: 300 }
16
+ ```
17
+
10
18
  ## Install
11
19
 
12
20
  ```sh
@@ -163,3 +171,7 @@ const fns = list_functions();
163
171
  | text | LEFT, MID, RIGHT, LEN, LOWER, UPPER, TRIM, CONCATENATE, FIND, SUBSTITUTE, REPLACE, TEXT, VALUE, REPT |
164
172
  | financial | PMT, NPV, IRR, PV, FV, RATE, NPER |
165
173
  | statistical | COUNT, COUNTA, MAX, MIN, MEDIAN |
174
+
175
+ ## Documentation
176
+
177
+ [docs.truecalc.app](https://docs.truecalc.app)
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@truecalc/core",
3
3
  "type": "module",
4
- "description": "Spreadsheet formula engine for the browser — Excel-compatible formula evaluator compiled to WebAssembly",
5
- "version": "1.0.1",
4
+ "description": "Spreadsheet formula engine for the browser — Google Sheets–compatible formula evaluator compiled to WebAssembly",
5
+ "version": "2.0.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -23,8 +23,8 @@
23
23
  "keywords": [
24
24
  "spreadsheet",
25
25
  "formula",
26
+ "google-sheets",
26
27
  "excel",
27
- "wasm",
28
- "evaluator"
28
+ "wasm"
29
29
  ]
30
30
  }
@@ -22,7 +22,7 @@
22
22
  * - `{ type: \"array\", value: [ EvalResult, ... ] }` -- recursive; a 2-D result is
23
23
  * `{ type: \"array\", value: [ { type: \"array\", value: [ <cells> ] }, ... ] }`
24
24
  */
25
- export type EvalResult = { type: "number"; value: number } | { type: "text"; value: string } | { type: "bool"; value: boolean } | { type: "date"; value: number } | { type: "error"; error: string } | { type: "empty" } | { type: "array"; value: EvalResult[] };
25
+ export type EvalResult = { type: "number"; value: number } | { type: "text"; value: string } | { type: "bool"; value: boolean } | { type: "date"; value: number } | { type: "zoned"; value: string } | { type: "error"; error: string } | { type: "empty" } | { type: "array"; value: EvalResult[] };
26
26
 
27
27
  export interface FunctionInfo {
28
28
  name: string;
Binary file