energy-state-analyzer 0.8.0 β 0.8.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
last_commit_released:
|
|
2
|
+
last_commit_released: db726199ca6214ebdf2da5fa0a73d4f29bf6be97
|
|
3
3
|
name: energy-state-analyzer
|
|
4
4
|
updaters:
|
|
5
5
|
- command: npm version {version} --no-git-tag-version --allow-same-version
|
|
@@ -11,6 +11,14 @@ All notable changes to the "energy-state-analyzer" extension are generated by
|
|
|
11
11
|
[EasyBuild.ShipIt](https://github.com/easybuild-org/EasyBuild.ShipIt) from
|
|
12
12
|
[Conventional Commits](https://www.conventionalcommits.org/).
|
|
13
13
|
|
|
14
|
+
## 0.8.1 - 2026-08-31
|
|
15
|
+
|
|
16
|
+
### π Bug Fixes
|
|
17
|
+
|
|
18
|
+
* *(extension)* Preserve VS Code allowlist values (#59) ([db72619](https://github.com/cardamomcode/energy-state-analyzer/commit/db726199ca6214ebdf2da5fa0a73d4f29bf6be97))
|
|
19
|
+
|
|
20
|
+
<strong><small>[View changes on Github](https://github.com/cardamomcode/energy-state-analyzer/compare/01777cc27c9c08136661a2f1e21409cdf94f05ce..db726199ca6214ebdf2da5fa0a73d4f29bf6be97)</small></strong>
|
|
21
|
+
|
|
14
22
|
## 0.8.0 - 2026-08-31
|
|
15
23
|
|
|
16
24
|
### π Features
|
package/docs/architecture.md
CHANGED
|
@@ -53,8 +53,8 @@ one Problems entry, preserving severity ordering, tags, codes, and combined mess
|
|
|
53
53
|
`npm run fable` invokes Fable with `--lang javascript --noCache`, emitting ignored ESM into
|
|
54
54
|
`fable-out/`. `webpack.config.js` consumes:
|
|
55
55
|
|
|
56
|
-
- `fable-out/Extension/Extension.js` β `dist/extension.js`
|
|
57
|
-
- `fable-out/Main.js` β `dist/cli.js`
|
|
56
|
+
- `fable-out/extension/Extension/Extension.js` β `dist/extension.js`
|
|
57
|
+
- `fable-out/cli/Main.js` β `dist/cli.js`
|
|
58
58
|
|
|
59
59
|
Webpack keeps `vscode` external, bundles `web-tree-sitter`, copies `web-tree-sitter.wasm`, and
|
|
60
60
|
adds the CLI shebang. Per-language grammar WASMs remain runtime files in `grammars/`. There is no
|
|
@@ -36,4 +36,4 @@ TAX_RATE_STANDARD = 1.05 # not flagged: module-level named constant
|
|
|
36
36
|
## Configuration
|
|
37
37
|
|
|
38
38
|
- `energyStateAnalyzer.magicNumber.enabled` (default `true`)
|
|
39
|
-
- `energyStateAnalyzer.magicNumber.allowlist` (default `[0, 1, -1, 2]`), values exempt from findings regardless of context.
|
|
39
|
+
- `energyStateAnalyzer.magicNumber.allowlist` (default `[0, 1, -1, 2]`), additional values exempt from findings regardless of context. The built-in structural values remain exempt; add domain-specific literals here when their meaning is already clear to the team.
|
|
@@ -29,7 +29,7 @@ src/EnergyState.fsproj cli/EnergyState.Cli.fsproj
|
|
|
29
29
|
fable-out/ (ESM)
|
|
30
30
|
βββββββββββββββββββββββββ΄βββββββββββββββββββββββ
|
|
31
31
|
βΌ βΌ
|
|
32
|
-
|
|
32
|
+
fable-out/extension/Extension/Extension.js fable-out/cli/Main.js
|
|
33
33
|
β β
|
|
34
34
|
βββββββββββ webpack (target: node) βββββββββββββ
|
|
35
35
|
β
|
|
@@ -42,8 +42,11 @@ Webpack consumes Fable's ESM directlyβthere is no `tsc` or `ts-loader`. It kee
|
|
|
42
42
|
CommonJS external, bundles `web-tree-sitter`, copies `web-tree-sitter.wasm`, and applies the
|
|
43
43
|
shebang banner to `dist/cli.js`. The public `package.json` main/bin contracts remain unchanged.
|
|
44
44
|
|
|
45
|
-
`npm run fable` builds both entries
|
|
46
|
-
|
|
45
|
+
`npm run fable` builds both entries into isolated ignored `fable-out/extension/` and
|
|
46
|
+
`fable-out/cli/` directories, so their Fable runtime modules cannot race during watch mode.
|
|
47
|
+
`npm run watch` first builds both bundles, then runs webpack after each completed extension
|
|
48
|
+
recompilation rather than while Fable is copying its runtime files.
|
|
49
|
+
`npm run fable-tests` emits Scriptorium tests to ignored
|
|
47
50
|
`fable-tests/` and writes its `{"type":"module"}` ESM shim before Node runs `Main.js`.
|
|
48
51
|
|
|
49
52
|
## Extension implementation
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "energy-state-analyzer",
|
|
3
3
|
"displayName": "Energy State Analyzer",
|
|
4
4
|
"description": "Visualize code energy states in real-time (Python, F#, TypeScript, Kotlin)",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.1",
|
|
6
6
|
"publisher": "cardamom-code",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"icon": "images/icon.png",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
-1,
|
|
142
142
|
2
|
|
143
143
|
],
|
|
144
|
-
"description": "
|
|
144
|
+
"description": "Additional numeric literals to exempt alongside the built-in structural values 0, 1, -1, and 2."
|
|
145
145
|
},
|
|
146
146
|
"energyStateAnalyzer.magicString.enabled": {
|
|
147
147
|
"type": "boolean",
|
|
@@ -205,10 +205,10 @@
|
|
|
205
205
|
"scripts": {
|
|
206
206
|
"vscode:prepublish": "npm run package",
|
|
207
207
|
"prepublishOnly": "npm run package",
|
|
208
|
-
"fable": "rm -rf fable-out && dotnet fable src/EnergyState.fsproj --lang javascript --outDir fable-out --noCache && dotnet fable cli/EnergyState.Cli.fsproj --lang javascript --outDir fable-out --noCache",
|
|
208
|
+
"fable": "rm -rf fable-out && dotnet fable src/EnergyState.fsproj --lang javascript --outDir fable-out/extension --noCache && dotnet fable cli/EnergyState.Cli.fsproj --lang javascript --outDir fable-out/cli --noCache",
|
|
209
209
|
"fable-tests": "rm -rf fable-tests && dotnet fable tests/EnergyState.Tests.fsproj --lang javascript --outDir fable-tests --noCache && echo '{\"type\":\"module\"}' > fable-tests/package.json",
|
|
210
210
|
"compile": "npm run fable && webpack",
|
|
211
|
-
"watch": "npm run
|
|
211
|
+
"watch": "npm run compile && (dotnet fable watch src/EnergyState.fsproj --lang javascript --outDir fable-out/extension --noCache --runWatch npx webpack & dotnet fable watch cli/EnergyState.Cli.fsproj --lang javascript --outDir fable-out/cli --noCache)",
|
|
212
212
|
"package": "npm run fable && webpack --mode production --devtool hidden-source-map",
|
|
213
213
|
"lint": "dotnet fantomas src tests cli --check",
|
|
214
214
|
"format": "dotnet fantomas src tests cli",
|