@refactorlabs/recount 0.11.0 → 0.11.1

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/llms.md CHANGED
@@ -274,7 +274,7 @@ const usage = calculation('usage', { layout: 'steps', currency: 'AUD' })
274
274
  - Other helpers: `working(key, label, formula)` (muted, not summed), `subtotal`/`info(key, label, formula | null, opts)`, `line({...})` for any raw line.
275
275
  - Line options: `value`, `unit`, `places`, `primary`, `tags`, `taxFree`, `highlight`, `detail`, `explain`, `source`, `sourceSpan`, `expected` (`{ value, source, tolerance, level, reason }`), `tolerance`, `alerts`, `redact`.
276
276
  - Key `undefined` makes one from the label. The builder never throws: bad keys, units and formulas are repaired or reported in `c.problems` (and debug logs), so check `expect(c.problems).toEqual([])` in a unit test.
277
- - `NaN` is sent as `null` (not calculated); `Infinity` too, so send text like `'Unlimited'`. Decimal strings (`'0.0316'`) and decimal.js / big.js values keep their precision.
277
+ - `NaN` is sent as `null` (not calculated); `Infinity` too, so send text like `'Unlimited'`. A number is sent without float noise past 15 significant digits (`2.95 * 1.1` is sent as `3.245`, not `3.2450000000000006`); whole numbers are sent as they are. Decimal strings (`'0.0316'`) and decimal.js / big.js values keep their precision.
278
278
  - Checks always run; alerts only when the calculation opts in with `alerts: 'warn' | 'error'`.
279
279
 
280
280
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refactorlabs/recount",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Node.js SDK for Recount",
5
5
  "homepage": "https://recount.refactor.gg",
6
6
  "license": "MIT",