@refactorlabs/recount 0.9.1 → 0.10.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 +3 -1
- package/dist/index.cjs +1319 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +358 -10
- package/dist/index.d.ts +358 -10
- package/dist/index.js +1313 -38
- package/dist/index.js.map +1 -1
- package/llms.md +108 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ import { startTrace, addSpan } from '@refactorlabs/recount';
|
|
|
89
89
|
| Type | For |
|
|
90
90
|
| --------- | -------------------------------------------------------------- |
|
|
91
91
|
| `json` | Any structured value, such as a quote or a score |
|
|
92
|
-
| `table` | Rows of data, built with `recount.table()
|
|
92
|
+
| `table` | Rows of data, built with `recount.table()`, or a calculation |
|
|
93
93
|
| `chart` | Line, bar, pie or scatter charts, built with `recount.chart()` |
|
|
94
94
|
| `http` | Outbound requests, usually recorded with `recount.fetch()` |
|
|
95
95
|
| `db` | SQL or NoSQL queries |
|
|
@@ -99,6 +99,8 @@ import { startTrace, addSpan } from '@refactorlabs/recount';
|
|
|
99
99
|
|
|
100
100
|
Use `recount.addGroup()` to collect related spans under one collapsible heading, and `recount.addAlert()` to flag a step as a warning or error.
|
|
101
101
|
|
|
102
|
+
To trace how a figure was worked out, build a calculation from numbers, units and formulas with `recount.calculation()` and send it with `recount.addCalculation()`. Recount draws it, checks every derived line and lets anyone recompute it. See [Calculations](https://recount.refactor.gg/docs/node/calculations).
|
|
103
|
+
|
|
102
104
|
## Integrations
|
|
103
105
|
|
|
104
106
|
Wrap a client once and its calls are recorded as spans automatically:
|