energy-state-analyzer 0.23.4 β 0.25.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/CHANGELOG.md +19 -1
- package/README.md +5 -1
- package/dist/{a5f4afce3ed7382a77b6.wasm β 32e18d5b63d8bd81a7b3.wasm} +0 -0
- package/dist/cli.js +1 -1
- package/dist/web-tree-sitter.wasm +0 -0
- package/docs/architecture.md +3 -0
- package/docs/cli.md +2 -2
- package/docs/detectors/magic-strings.md +16 -3
- package/docs/detectors/match-opportunities.md +1 -1
- package/docs/detectors/primitive-obsession.md +1 -1
- package/docs/source-guide.md +239 -0
- package/grammars/tree-sitter-tsx.wasm +0 -0
- package/grammars/tree-sitter-typescript.NOTICE.md +6 -0
- package/lean-toolchain +1 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
last_commit_released:
|
|
2
|
+
last_commit_released: bbfd0d5955fb3ab71f0410e910bbffb7f169e01c
|
|
3
3
|
name: energy-state-analyzer
|
|
4
4
|
updaters:
|
|
5
5
|
- command: npm version {version} --no-git-tag-version --allow-same-version
|
|
@@ -14,6 +14,24 @@ All notable changes to the "energy-state-analyzer" extension are generated by
|
|
|
14
14
|
[EasyBuild.ShipIt](https://github.com/easybuild-org/EasyBuild.ShipIt) from
|
|
15
15
|
[Conventional Commits](https://www.conventionalcommits.org/).
|
|
16
16
|
|
|
17
|
+
## 0.25.0 - 2026-11-22
|
|
18
|
+
|
|
19
|
+
### π Features
|
|
20
|
+
|
|
21
|
+
* Treat match/switch case patterns as magic-string decision points (#212) ([29de0df](https://github.com/cardamomcode/energy-state-analyzer/commit/29de0df35e0a29a3bae54b75b33318239f2f24ca))
|
|
22
|
+
* Treat Rust matches! patterns as magic-string decision points (#214) ([170d6cc](https://github.com/cardamomcode/energy-state-analyzer/commit/170d6cc1ffd368972c5fc6686763f2f1c778a1a4))
|
|
23
|
+
* Treat inequality comparisons as magic-string decision points (#215) ([bbfd0d5](https://github.com/cardamomcode/energy-state-analyzer/commit/bbfd0d5955fb3ab71f0410e910bbffb7f169e01c))
|
|
24
|
+
|
|
25
|
+
<strong><small>[View changes on Github](https://github.com/cardamomcode/energy-state-analyzer/compare/a03487f7b6355ec3b141dd75dea50c86927c31e4..bbfd0d5955fb3ab71f0410e910bbffb7f169e01c)</small></strong>
|
|
26
|
+
|
|
27
|
+
## 0.24.0 - 2026-11-16
|
|
28
|
+
|
|
29
|
+
### π Features
|
|
30
|
+
|
|
31
|
+
* Support TSX in the CLI and VS Code extension (#209) ([a03487f](https://github.com/cardamomcode/energy-state-analyzer/commit/a03487f7b6355ec3b141dd75dea50c86927c31e4))
|
|
32
|
+
|
|
33
|
+
<strong><small>[View changes on Github](https://github.com/cardamomcode/energy-state-analyzer/compare/01e601dd0c1c0ded2a1890cbbb9366c69e8def9e..a03487f7b6355ec3b141dd75dea50c86927c31e4)</small></strong>
|
|
34
|
+
|
|
17
35
|
## 0.23.4 - 2026-11-05
|
|
18
36
|
|
|
19
37
|
### π Bug Fixes
|
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ interpreting code, and what the metrics reveal.
|
|
|
53
53
|
The same detectors also run headlessly, without VS Code, useful for CI or for an AI coding agent fixing findings in code it just generated and verifying the result:
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
npx energy-state-analyzer path/to/file.py # or .fs / .fsx / .ts / .kt / .cpp / .cs / .erl / .rs
|
|
56
|
+
npx energy-state-analyzer path/to/file.py # or .fs / .fsx / .ts / .tsx / .kt / .cpp / .cs / .erl / .rs
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
See [docs/cli.md](docs/cli.md) for scanning a whole repo, aggregated markdown/JSON/human reports, and diffing a PR against a base branch. See [docs/agent-integration.md](docs/agent-integration.md) for wiring the CLI into an AI coding agent's edit-and-verify loop.
|
|
@@ -76,6 +76,10 @@ for the current project, or run the command without agent flags to choose target
|
|
|
76
76
|
|
|
77
77
|
The extension activates automatically when you open a Python, F#, TypeScript, Kotlin, C++, C#, Erlang, or Rust file; it bundles its own grammars for parsing (via `web-tree-sitter`), so no compiler or external parser is required. F# files only get a `fsharp` language ID (and so trigger analysis) if you have an F# language extension installed (e.g. [Ionide](https://ionide.io/)), VS Code otherwise treats `.fs` files as plain text. Erlang `.erl` and `.hrl` files and Rust `.rs` files are registered by this extension. The CLI recognizes the full VS Code C++ suffix set, including compound template suffixes such as `.hpp.in`; see [Command-Line Usage](docs/cli.md#supported-file-suffixes).
|
|
78
78
|
|
|
79
|
+
TSX (`.tsx`) uses a dedicated JSX-aware grammar and the same detectors as TypeScript.
|
|
80
|
+
The extension analyzes VS Codeβs `typescriptreact` documents, including expressions and callbacks
|
|
81
|
+
inside JSX. JSX markup itself does not count as control-flow nesting.
|
|
82
|
+
|
|
79
83
|
## Development
|
|
80
84
|
|
|
81
85
|
Product and test sources are F#. Install the pinned .NET tools (Fable and Fantomas) and npm
|
|
Binary file
|