sumlyzer 1.4.0 → 1.4.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 +112 -0
- package/README.md +8 -5
- package/package.json +11 -5
- package/src/changed.mjs +3 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format is based
|
|
4
|
+
on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
|
|
5
|
+
follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [1.4.1] - 2026-11-25
|
|
10
|
+
|
|
11
|
+
### Security
|
|
12
|
+
|
|
13
|
+
- `--ref` can no longer be parsed by `git diff` as an option or a pathspec.
|
|
14
|
+
A value such as `--ref=--output=<file>` used to make git create or
|
|
15
|
+
overwrite `<file>`, and a ref matching a file name was silently treated as
|
|
16
|
+
a path ([#46](https://github.com/ErwanRaulo/sumlyzer/pull/46)).
|
|
17
|
+
- Bump `glob` to `^14.0.6` (runtime) and dev dependencies to clear the
|
|
18
|
+
`glob`, `minimatch`, `brace-expansion` and `fast-xml-parser` advisories
|
|
19
|
+
reported by `npm audit` ([#43](https://github.com/ErwanRaulo/sumlyzer/pull/43)).
|
|
20
|
+
|
|
21
|
+
### Documentation
|
|
22
|
+
|
|
23
|
+
- Add this changelog, a CI badge and a security section to the README.
|
|
24
|
+
- Fix outdated statements in `SECURITY.md` and `CONTRIBUTING.md`.
|
|
25
|
+
|
|
26
|
+
## [1.4.0] - 2026-09-08
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- `--watch` mode: re-runs changed workspaces and the workspaces that depend
|
|
31
|
+
on them ([#26](https://github.com/ErwanRaulo/sumlyzer/pull/26)).
|
|
32
|
+
|
|
33
|
+
## [1.3.1]
|
|
34
|
+
|
|
35
|
+
No release notes, see the [diff](https://github.com/ErwanRaulo/sumlyzer/compare/v1.3.0...v1.3.1).
|
|
36
|
+
|
|
37
|
+
## [1.3.0] - 2026-09-03
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- `--changed` / `--ref`: only run workspaces with changes, via git diff
|
|
42
|
+
([#18](https://github.com/ErwanRaulo/sumlyzer/pull/18)).
|
|
43
|
+
- Support npm `pre`/`post` lifecycle hooks of the test script
|
|
44
|
+
([#20](https://github.com/ErwanRaulo/sumlyzer/pull/20)).
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
|
|
48
|
+
- Spawn fewer processes per workspace ([#19](https://github.com/ErwanRaulo/sumlyzer/pull/19)).
|
|
49
|
+
|
|
50
|
+
## [1.2.0] - 2026-08-20
|
|
51
|
+
|
|
52
|
+
### Changed
|
|
53
|
+
|
|
54
|
+
- Skip/todo/cancelled counts moved to a footnote; duplicate duration and
|
|
55
|
+
test-count output removed.
|
|
56
|
+
- Internal refactor of workspace listing, output capture and run loop.
|
|
57
|
+
|
|
58
|
+
### Fixed
|
|
59
|
+
|
|
60
|
+
- README example of sumlyzer's output.
|
|
61
|
+
|
|
62
|
+
## [1.1.0] - 2026-08-19
|
|
63
|
+
|
|
64
|
+
### Added
|
|
65
|
+
|
|
66
|
+
- Resolve `workspaces` glob patterns.
|
|
67
|
+
- Clear message when no workspace is eligible.
|
|
68
|
+
|
|
69
|
+
### Changed
|
|
70
|
+
|
|
71
|
+
- Runner logic decoupled from `node:test`.
|
|
72
|
+
- More reliable skipped-workspace count.
|
|
73
|
+
|
|
74
|
+
## [1.0.1] - 2026-08-11
|
|
75
|
+
|
|
76
|
+
### Added
|
|
77
|
+
|
|
78
|
+
- Own `node:test` reporter; workspaces using a custom reporter are detected.
|
|
79
|
+
- All workspaces with an invalid `package.json` are listed at once.
|
|
80
|
+
|
|
81
|
+
### Changed
|
|
82
|
+
|
|
83
|
+
- Output read as stream chunks instead of being buffered in memory.
|
|
84
|
+
|
|
85
|
+
### Fixed
|
|
86
|
+
|
|
87
|
+
- Child processes are cleaned up properly instead of being killed mid-flight.
|
|
88
|
+
|
|
89
|
+
## [1.0.0]
|
|
90
|
+
|
|
91
|
+
No release notes, see the [diff](https://github.com/ErwanRaulo/sumlyzer/compare/v0.6.0...v1.0.0).
|
|
92
|
+
|
|
93
|
+
## [0.6.0] - 2026-08-05
|
|
94
|
+
|
|
95
|
+
### Changed
|
|
96
|
+
|
|
97
|
+
- `--concurrency` is clamped to the OS available parallelism.
|
|
98
|
+
- Fewer regex instances and less string splitting when parsing large outputs.
|
|
99
|
+
|
|
100
|
+
Earlier versions (`0.1.1` to `0.5.3`) have no release notes, see the
|
|
101
|
+
[tags](https://github.com/ErwanRaulo/sumlyzer/tags).
|
|
102
|
+
|
|
103
|
+
[Unreleased]: https://github.com/ErwanRaulo/sumlyzer/compare/v1.4.1...HEAD
|
|
104
|
+
[1.4.1]: https://github.com/ErwanRaulo/sumlyzer/compare/v1.4.0...v1.4.1
|
|
105
|
+
[1.4.0]: https://github.com/ErwanRaulo/sumlyzer/compare/v1.3.1...v1.4.0
|
|
106
|
+
[1.3.1]: https://github.com/ErwanRaulo/sumlyzer/compare/v1.3.0...v1.3.1
|
|
107
|
+
[1.3.0]: https://github.com/ErwanRaulo/sumlyzer/compare/v1.2.0...v1.3.0
|
|
108
|
+
[1.2.0]: https://github.com/ErwanRaulo/sumlyzer/compare/v1.1.0...v1.2.0
|
|
109
|
+
[1.1.0]: https://github.com/ErwanRaulo/sumlyzer/compare/v1.0.1...v1.1.0
|
|
110
|
+
[1.0.1]: https://github.com/ErwanRaulo/sumlyzer/compare/v1.0.0...v1.0.1
|
|
111
|
+
[1.0.0]: https://github.com/ErwanRaulo/sumlyzer/compare/v0.6.0...v1.0.0
|
|
112
|
+
[0.6.0]: https://github.com/ErwanRaulo/sumlyzer/compare/v0.5.3...v0.6.0
|
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<h1 align="center">Sumlyzer</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
+
<a href="https://github.com/ErwanRaulo/sumlyzer/actions/workflows/ci.yml"><img src="https://github.com/ErwanRaulo/sumlyzer/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI" /></a>
|
|
8
9
|
<a href="https://www.npmjs.com/package/sumlyzer"><img src="https://img.shields.io/npm/v/sumlyzer.svg" alt="npm version" /></a>
|
|
9
10
|
<a href="https://www.npmjs.com/package/sumlyzer"><img src="https://img.shields.io/npm/dm/sumlyzer.svg" alt="npm downloads" /></a>
|
|
10
11
|
<a href="https://www.npmjs.com/package/sumlyzer"><img src="https://img.shields.io/node/v/sumlyzer.svg" alt="node engine" /></a>
|
|
@@ -66,7 +67,7 @@ Exit code is `1` if any workspace fails, `0` otherwise — safe to drop straight
|
|
|
66
67
|
- **GitHub Actions**: on `GITHUB_ACTIONS=true`, each workspace's output is auto-wrapped in a collapsible `::group::` block. No other CI provider has folding support yet.
|
|
67
68
|
- **Concurrency** (`--concurrency <n>`): workspaces finish in whatever order they complete, so output interleaves. With `--ff`, only workspaces that haven't started yet are skipped — in-flight ones run to completion.
|
|
68
69
|
- **Changed workspaces** (`--changed`): maps changed files to the workspace directory containing them. Ref auto-detection: uncommitted changes → diff against `HEAD`; clean tree with upstream → merge-base with upstream; clean tree with no upstream → `HEAD`.
|
|
69
|
-
- **Watch mode** (`--watch`): runs once, then keeps watching the workspaces directories. Re-runs the workspace that changed
|
|
70
|
+
- **Watch mode** (`--watch`): runs once, then keeps watching the workspaces directories. Re-runs the workspace that changed, plus every workspace of the same project that depends on it, directly or transitively, through `dependencies`/`devDependencies`. `node_modules`, `.git`, `coverage`, and dotfiles are ignored. Stop with `Ctrl+C`. Not compatible with `--junit`.
|
|
70
71
|
- Own `--test-reporter` in a workspace's script is detected ahead of time and that workspace is skipped, to avoid colliding with sumlyzer's own reporter.
|
|
71
72
|
|
|
72
73
|
npm doesn't have native fail-fast on `--workspaces` yet — discussed in
|
|
@@ -77,13 +78,15 @@ Sumlyzer's `--ff` gets you there in the meantime.
|
|
|
77
78
|
|
|
78
79
|
## Roadmap
|
|
79
80
|
|
|
80
|
-
**
|
|
81
|
-
|
|
82
|
-
**MCP server**: allow LLM agent to run the fail fast mode on any project organized with npm workspaces.
|
|
81
|
+
**MCP server**: allow LLM agents to run the fail fast mode on any project organized with npm workspaces.
|
|
83
82
|
|
|
84
83
|
## Contributing
|
|
85
84
|
|
|
86
|
-
See [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
85
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md). Release history is in [CHANGELOG.md](./CHANGELOG.md).
|
|
86
|
+
|
|
87
|
+
## Security
|
|
88
|
+
|
|
89
|
+
Please report vulnerabilities privately, see [SECURITY.md](./SECURITY.md).
|
|
87
90
|
|
|
88
91
|
## License
|
|
89
92
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sumlyzer",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Run every npm workspace's test script, only show output for the ones that fail, and finish with an aggregated pass/fail summary.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"bin",
|
|
11
11
|
"src",
|
|
12
12
|
"README.md",
|
|
13
|
+
"CHANGELOG.md",
|
|
13
14
|
"LICENSE"
|
|
14
15
|
],
|
|
15
16
|
"engines": {
|
|
@@ -53,11 +54,16 @@
|
|
|
53
54
|
},
|
|
54
55
|
"homepage": "https://github.com/ErwanRaulo/sumlyzer#readme",
|
|
55
56
|
"devDependencies": {
|
|
56
|
-
"@nodesecure/js-x-ray": "^16.
|
|
57
|
-
"@types/node": "^26.
|
|
58
|
-
"fast-xml-parser": "^5.
|
|
57
|
+
"@nodesecure/js-x-ray": "^16.2.0",
|
|
58
|
+
"@types/node": "^26.6.10",
|
|
59
|
+
"fast-xml-parser": "^5.12.1"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"glob": "^
|
|
62
|
+
"glob": "^14.0.6"
|
|
63
|
+
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"@typescript-eslint/typescript-estree": {
|
|
66
|
+
"minimatch": "^11.0.1"
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
}
|
package/src/changed.mjs
CHANGED
|
@@ -21,7 +21,9 @@ function tryGit(root, args) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export function getChangedFiles(root, ref) {
|
|
24
|
-
|
|
24
|
+
// --end-of-options keeps a ref like "--output=<file>" from being parsed as an
|
|
25
|
+
// option, the trailing "--" keeps it from being parsed as a pathspec.
|
|
26
|
+
const tracked = runGit(root, ["diff", "--name-only", "--end-of-options", ref, "--"], ref);
|
|
25
27
|
const untracked = runGit(root, ["ls-files", "--others", "--exclude-standard"], ref);
|
|
26
28
|
|
|
27
29
|
return [...new Set([...tracked, ...untracked])];
|