@bilig/xlsx-formula-recalc 0.123.0 → 0.124.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/README.md CHANGED
@@ -85,20 +85,23 @@ only after the recalculated value and warnings match the workflow you are
85
85
  evaluating.
86
86
 
87
87
  If you have a real workbook but do not yet know which formula cells matter,
88
- inspect it without writing an output file:
88
+ diagnose it without writing an output file:
89
89
 
90
90
  ```sh
91
- npx --package @bilig/xlsx-formula-recalc xlsx-recalc pricing.xlsx --inspect --json
91
+ npx --package @bilig/xlsx-formula-recalc xlsx-cache-doctor pricing.xlsx --json
92
92
  ```
93
93
 
94
- Inspection imports the workbook, lists formula cells, recomputes a bounded
95
- sample, reports stale cached values, and returns suggested `--read` targets for
96
- the recalculation command:
94
+ Inspection imports the workbook, lists formula cells, recomputes every formula
95
+ by default, reports stale cached values, and returns suggested `--read` targets
96
+ for the recalculation command. If you intentionally pass `--inspect-limit 50`,
97
+ the JSON includes the skipped count as `uninspectedFormulaCellCount`.
97
98
 
98
99
  ```json
99
100
  {
100
101
  "formulaCellCount": 12,
101
102
  "inspectedFormulaCellCount": 12,
103
+ "uninspectedFormulaCellCount": 0,
104
+ "inspectionLimit": "all",
102
105
  "staleCachedFormulaCount": 3,
103
106
  "suggestedReads": ["Summary!B7"],
104
107
  "formulas": [
@@ -113,13 +116,18 @@ the recalculation command:
113
116
  "commandSucceeded": true,
114
117
  "inspectionCompleted": true,
115
118
  "recalculationCompleted": true,
116
- "excelParity": "not_proven",
117
- "nextStep": {
118
- "command": "xlsx-recalc pricing.xlsx --read 'Summary!B7' --json"
119
- }
119
+ "excelParity": "not_proven"
120
120
  }
121
121
  ```
122
122
 
123
+ `xlsx-cache-doctor` is a readable alias for
124
+ `xlsx-recalc pricing.xlsx --inspect --json`. Use it for issue triage, CI, and
125
+ pull-request checks when the only question is whether committed XLSX files have
126
+ stale cached formula values. The GitHub Action wrapper lives at
127
+ [`actions/xlsx-cache-doctor`](../../actions/xlsx-cache-doctor), and the runnable
128
+ fixture/workflow example lives at
129
+ [`examples/xlsx-cache-doctor-ci`](../../examples/xlsx-cache-doctor-ci).
130
+
123
131
  For an existing workbook:
124
132
 
125
133
  ```sh
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import { runXlsxFormulaRecalcCli } from './cli-api.js';
3
+ process.exitCode = runXlsxFormulaRecalcCli(process.argv.slice(2), {
4
+ commandName: 'xlsx-cache-doctor',
5
+ });
6
+ //# sourceMappingURL=cache-doctor-cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-doctor-cli.js","sourceRoot":"","sources":["../src/cache-doctor-cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,CAAC,QAAQ,GAAG,uBAAuB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IAChE,WAAW,EAAE,mBAAmB;CACjC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilig/xlsx-formula-recalc",
3
- "version": "0.123.0",
3
+ "version": "0.124.1",
4
4
  "description": "Recalculate XLSX formula values in Node.js after SheetJS, ExcelJS, or xlsx-populate edits without Excel, LibreOffice, or browser automation.",
5
5
  "keywords": [
6
6
  "bilig",
@@ -19,6 +19,7 @@
19
19
  "stale-xlsx-cache",
20
20
  "workbook",
21
21
  "xlsx",
22
+ "xlsx-cache-doctor",
22
23
  "xlsx-calc",
23
24
  "xlsx-formula",
24
25
  "xlsx-formula-recalculation",
@@ -38,6 +39,7 @@
38
39
  },
39
40
  "bin": {
40
41
  "sheetjs-recalc": "./dist/sheetjs-cli.js",
42
+ "xlsx-cache-doctor": "./dist/cache-doctor-cli.js",
41
43
  "xlsx-recalc": "./dist/cli.js"
42
44
  },
43
45
  "files": [
@@ -69,7 +71,7 @@
69
71
  "smoke": "node ./dist/cli.js --help"
70
72
  },
71
73
  "dependencies": {
72
- "xlsx-formula-recalc": "0.123.0"
74
+ "xlsx-formula-recalc": "0.124.1"
73
75
  },
74
76
  "engines": {
75
77
  "node": ">=22.0.0"