@truecalc/core 7.0.3 → 7.0.5

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
@@ -164,18 +164,26 @@ validate('SUM(A1,') // => { valid: false, error: '...' }
164
164
 
165
165
  ### `list_functions()`
166
166
 
167
- Returns metadata for all built-in functions as an array of `{ name, category, syntax, description }`.
167
+ Returns metadata for every built-in function as an array of
168
+ `{ name, category, syntax, description }`, sorted by name.
168
169
 
169
170
  ```js
170
171
  const fns = list_functions();
172
+ fns.length;
173
+ // 518
174
+
171
175
  // [
172
- // { name: 'SUM', category: 'math', syntax: 'SUM(value1, ...)', description: 'Sum of all arguments' },
173
- // { name: 'AVERAGE', category: 'math', syntax: 'AVERAGE(value1, ...)', description: 'Arithmetic mean of all arguments' },
174
- // { name: 'IF', category: 'logical', syntax: 'IF(condition, value_if_true, value_if_false)', description: 'Conditional evaluation' },
176
+ // { name: 'ABS', category: 'math', syntax: 'ABS(number)', description: 'Absolute value of a number' },
177
+ // { name: 'LEFT', category: 'text', syntax: 'LEFT(text, [num_chars])', description: 'Left portion of a string' },
178
+ // { name: 'PMT', category: 'financial', syntax: 'PMT(rate, nper, pv, [fv], [type])', description: 'Periodic payment for a loan' },
175
179
  // ...
176
180
  // ]
177
181
  ```
178
182
 
183
+ Optional arguments appear in `[brackets]`. Categories are drawn from the engine
184
+ registry — there are 17, including `array`, `database`, `filter`, `lookup`,
185
+ `parser`, `query` and `timezone` alongside the familiar `math`/`text`/`logical`.
186
+
179
187
  See the full, live function list at [truecalc.github.io/core](https://truecalc.github.io/core/).
180
188
 
181
189
  ## Documentation
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@truecalc/core",
3
3
  "type": "module",
4
4
  "description": "Spreadsheet formula engine for the browser — Google Sheets–compatible formula evaluator compiled to WebAssembly",
5
- "version": "7.0.3",
5
+ "version": "7.0.5",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
Binary file