@truecalc/core 7.0.0 → 7.0.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/README.md CHANGED
@@ -141,6 +141,18 @@ evaluate('TODAY()')
141
141
  > treating the result as a number, also accept `type === 'date'` (the `value`
142
142
  > encoding is identical — a serial number).
143
143
 
144
+ > #### Result-type change: `MAX` / `MIN` / `MAXA` / `MINA` over dates
145
+ >
146
+ > Dates now take part in these four aggregates, and the result is **date-typed**
147
+ > whenever a date took part — including when a plain number won the comparison.
148
+ > `evaluate('MAX(A1:A10)')` over a column of dates returns
149
+ > `{ type: 'date', value }` where it previously returned `{ type: 'number', value }`
150
+ > (`MAX` over a date-only array literal previously returned an `#REF!` error and
151
+ > `MIN` a silent `0`). The `value` encoding is unchanged — still a serial number;
152
+ > only `type` moved. This matches Google Sheets, which formats the result cell as
153
+ > a date. If you branch on `type`, accept `'date'` anywhere you accepted
154
+ > `'number'` from these functions. See issue #776.
155
+
144
156
  ### `validate(formula)`
145
157
 
146
158
  Checks whether a formula is syntactically valid without evaluating it.
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.0",
5
+ "version": "7.0.2",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
Binary file