@systemfsoftware/stryker-js-html-reporter 1.0.0 → 2.0.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 +79 -0
- package/README.md +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
# @systemfsoftware/stryker-js-html-reporter
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- The packages are renamed. `plugin-api` is now `@systemfsoftware/stryker-js`, the
|
|
8
|
+
language every plugin is written against. `mutation-run` is split: the run
|
|
9
|
+
itself is `@systemfsoftware/stryker-js-engine`
|
|
10
|
+
(host-neutral, no Node on its manifest) and the Node process entries are
|
|
11
|
+
`@systemfsoftware/stryker-js-cli`, which owns the worker files and the runtime
|
|
12
|
+
gate. `mutation-report` is now `@systemfsoftware/stryker-js-html-reporter`.
|
|
13
|
+
`@systemfsoftware/stryker-js-platform-node` is never published — do not install
|
|
14
|
+
it. Install the new names and change your imports.
|
|
15
|
+
|
|
16
|
+
Options types moved. `StrykerOptions`, `PartialStrykerOptions` and `LogLevel` are
|
|
17
|
+
imported from the `Schema` export; `Mutant`, `MutantStatus`, `Position` and
|
|
18
|
+
`Location` from the `Mutant` export. Point a config's `extends` at the language
|
|
19
|
+
package's `Schema` export.
|
|
20
|
+
|
|
21
|
+
`MutantStatus` accepts one spelling per outcome: `Killed`, `Survived`,
|
|
22
|
+
`NoCoverage`, `Timeout`, `CompileError`, `RuntimeError`, `Ignored` and `Pending`.
|
|
23
|
+
The lowercase and abbreviated forms — `killed`, `timedOut`, `noCoverage` and the
|
|
24
|
+
rest — are gone. A comparison against a removed spelling never matched the value
|
|
25
|
+
the reporter actually produced, so check any status comparison you wrote.
|
|
26
|
+
|
|
27
|
+
Statuses, plugin kinds, exit classes and AST formats are string literal unions
|
|
28
|
+
rather than enums, so read them as their string values. Member access such as
|
|
29
|
+
`ExitClass.VerdictFail` no longer resolves.
|
|
30
|
+
|
|
31
|
+
A plugin no longer receives a logger, and the logger port is gone. Plugins log
|
|
32
|
+
through Effect, and the host decides where that output goes.
|
|
33
|
+
|
|
34
|
+
The bundled base preset is gone. A config inherits from the language package's
|
|
35
|
+
`Schema` export and states the thresholds, reporters and plugins it wants; you no
|
|
36
|
+
longer silently inherit a package manager, a plugin list or a break threshold.
|
|
37
|
+
|
|
38
|
+
- effect is now a required peer dependency. Install it alongside these packages. They previously bundled their own copy, which meant two Effect instances in one process and services that could not find each other across the boundary.
|
|
39
|
+
|
|
40
|
+
- Five entry points that were never API are gone. Each existed because another
|
|
41
|
+
package in this project found the code convenient, not because it was a surface
|
|
42
|
+
anyone should depend on.
|
|
43
|
+
|
|
44
|
+
What is left is documented: an entry point is a name you may import and we may
|
|
45
|
+
not move without a major, and everything else is internal whatever file it sits
|
|
46
|
+
in.
|
|
47
|
+
|
|
48
|
+
- Reporters are constructed by a factory and provided as a layer.
|
|
49
|
+
|
|
50
|
+
The exported reporter classes are gone. Replace each `new` with the matching
|
|
51
|
+
factory — `makeClearTextReporter`, `makeHtmlReporter`, `makeJsonReporter`,
|
|
52
|
+
`makeProgressBarReporter`, `makeProgressStreamReporter`.
|
|
53
|
+
|
|
54
|
+
Each factory takes the reporter's own options rather than an injected container,
|
|
55
|
+
and each operation returns an `Effect`. If you registered a reporter as a plugin,
|
|
56
|
+
declare it with `declarePlugin` and hand over a layer that provides `Reporter`.
|
|
57
|
+
|
|
58
|
+
`drawClearTextScoreTable` is now exported for anyone rendering the score table
|
|
59
|
+
outside a reporter.
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- New version is published through npm trusted publishing, so it carries a provenance attestation you can verify.
|
|
64
|
+
|
|
65
|
+
- Peer Effect requirement advances to 4.0.0-rc.112. No API changes.
|
|
66
|
+
|
|
67
|
+
- A mutation run writes the JSON report the `json` reporter is configured to produce.
|
|
68
|
+
|
|
69
|
+
Vitest no longer reprints its full summary for every mutant.
|
|
70
|
+
|
|
71
|
+
- Each of these packages now has a README, so its registry page says what the package is, how
|
|
72
|
+
to install it, and what to import or register — previously the page was blank. The lint
|
|
73
|
+
plugins show the configuration line that enables what they recommend.
|
|
74
|
+
|
|
75
|
+
`@systemfsoftware/stryker-js-html-reporter` also carries its licence text
|
|
76
|
+
|
|
77
|
+
- Published packages no longer carry build artifacts left over from earlier builds. One package was shipping about a megabyte of bundled test-runner internals this way.
|
|
78
|
+
|
|
79
|
+
- Updated dependencies:
|
|
80
|
+
- @systemfsoftware/stryker-js@2.0.0
|
|
81
|
+
|
|
3
82
|
## 1.0.0
|
|
4
83
|
|
|
5
84
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -28,5 +28,5 @@ Licensed under [Apache 2.0][license-url].
|
|
|
28
28
|
[license-badge]: https://img.shields.io/badge/license-Apache_2.0-blue?style=flat-square
|
|
29
29
|
[license-url]: https://github.com/systemfsoftware/systemfsoftware/blob/main/LICENSE
|
|
30
30
|
[repo]: https://github.com/systemfsoftware/systemfsoftware
|
|
31
|
-
[engine]: https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/
|
|
32
|
-
[cli]: https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/
|
|
31
|
+
[engine]: https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/stryker-js/stryker-js-engine
|
|
32
|
+
[cli]: https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/stryker-js/stryker-js-cli
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js-html-reporter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
|
|
7
|
-
"directory": "packages/
|
|
7
|
+
"directory": "packages/stryker-js/stryker-js-html-reporter"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/
|
|
9
|
+
"homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/stryker-js/stryker-js-html-reporter#readme",
|
|
10
10
|
"bugs": "https://github.com/systemfsoftware/systemfsoftware/issues",
|
|
11
11
|
"description": "HTML reporter plugin for the @systemfsoftware mutation engine.",
|
|
12
12
|
"type": "module",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"mutation-testing-elements": "3.7.3",
|
|
18
18
|
"mutation-testing-metrics": "3.7.3",
|
|
19
19
|
"mutation-testing-report-schema": "3.7.3",
|
|
20
|
-
"@systemfsoftware/effect-cell-types": "^6.0.
|
|
21
|
-
"@systemfsoftware/stryker-js": "^
|
|
20
|
+
"@systemfsoftware/effect-cell-types": "^6.0.1",
|
|
21
|
+
"@systemfsoftware/stryker-js": "^2.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@systemfsoftware/arethetypeswrong-cli": "^1.1.1",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"tsdown": "^0.22.14",
|
|
31
31
|
"typescript": "^7",
|
|
32
32
|
"vitest": "^4",
|
|
33
|
-
"@systemfsoftware/all": "^1.1.
|
|
33
|
+
"@systemfsoftware/all": "^1.1.3",
|
|
34
|
+
"@systemfsoftware/effect-gherkin-spec": "^4.0.1",
|
|
34
35
|
"@systemfsoftware/tsconfig": "^1.3.3",
|
|
35
|
-
"@systemfsoftware/effect-gherkin-spec": "^4.0.0",
|
|
36
36
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|