@systemfsoftware/stryker-plugins 0.12.0 → 0.13.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,55 @@
1
1
  # @systemfsoftware/stryker-plugins
2
2
 
3
+ ## 0.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - The peer requirements for `effect` and for the Effect test-runner integration now accept any compatible `4.0.0-rc` release, instead of demanding one exact release candidate.
8
+
9
+ Installing alongside a newer release candidate no longer reports an unmet peer dependency or resolves a second copy of `effect` into the dependency tree.
10
+
11
+ ## 0.13.0
12
+
13
+ ### Minor Changes
14
+
15
+ - cut over to effect v4 (4.0.0-rc.108): public surface derives from effect types; peers flip effect ^3→^4
16
+
17
+ - The schema-declaration ignorer now treats a `Schema.Class` identifier and a `Schema.brand` name as declaration data, exporting `CLASS_ID_IGNORED` and `BRAND_NAME_IGNORED` and suppressing those string arguments. It also exports `CLASS_FIELDS_IGNORED` for a Class fields object, but no rule emits it: ignoring the fields object would suppress the literals inside it, and a field's accepted value set is behaviour, not data.
18
+
19
+ - The `workflow-make-boundary` ignorer selects the mutation population mechanically.
20
+
21
+ Every mutant whose ancestor chain contains no `Workflow.make(...)` call argument is excised with
22
+ the named reason `NOT_INSIDE_WORKFLOW_MAKE`; mutants inside any make boundary pass through to the
23
+ other ignorers. The boundary is identity-contained through the call's arguments (nested makes
24
+ count), resolves named, aliased, and namespace imports of `Workflow`, and follows module-scope
25
+ function references. Ships as the `./workflow-make-ignorer` subpath wired like
26
+ `./effect-schema-ignorer`, with the AST schemas redeclared locally.
27
+
28
+ ### Patch Changes
29
+
30
+ - Array types are spelled one way. `Array<T>` and `ReadonlyArray<T>` in emitted
31
+ declarations become `T[]` and `readonly T[]`, which the type checker cannot tell
32
+ apart: no exported type changes, only how it is written.
33
+
34
+ - New version is published through npm trusted publishing, so it carries a provenance attestation you can verify.
35
+
36
+ - The `atom` packages publish their own author rather than crediting an upstream they are not downstream of, and `stryker-plugins` no longer pulls Node's ambient types into a package that has no runtime dependency on them.
37
+
38
+ - Fix two `test:types` scripts that could not pass.
39
+
40
+ `tstyche` exits 1 with "No test files were selected using current configuration" when nothing matches
41
+ `testFileMatch`, so a watcher pointed at files that do not exist is a script guaranteed to fail the
42
+ moment anyone runs it. Measured directly: `effect-gherkin-spec`'s `tstyche.json` matched
43
+ `src/**/*.tst.ts` and the package holds no such file, so its `test:types` script is removed rather than
44
+ left as a gate attached to nothing. `stryker-plugins` now pins `TSTYCHE_TYPESCRIPT_MODULE` so its own
45
+ `test:types` resolves the TypeScript module it needs.
46
+
47
+ Both packages publish, and both scripts ship in the published `package.json`, so a consumer inspecting
48
+ or running them sees the change — a real patch rather than an empty intent.
49
+
50
+ - Updated dependencies:
51
+ - @systemfsoftware/stryker-js-plugin-api@2.0.0
52
+
3
53
  ## 0.12.0
4
54
 
5
55
  ### Minor Changes
package/README.md CHANGED
@@ -19,7 +19,7 @@ In `stryker.config.json`:
19
19
  {
20
20
  "plugins": [
21
21
  "@systemfsoftware/stryker-js-vitest-runner",
22
- "@stryker-mutator/typescript-checker",
22
+ "@systemfsoftware/stryker-js-typescript-checker",
23
23
  "@systemfsoftware/stryker-plugins"
24
24
  ],
25
25
  "ignorers": ["effect-schema-declarations"]
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as strykerPlugins$1 } from "./effect-schema-ignorer-38xDaLr8.mjs";
2
2
  import { t as strykerPlugins$2 } from "./in-source-test-ignorer-DTJIr1ut.mjs";
3
- import { t as strykerPlugins$3 } from "./workflow-make-ignorer-dLlC4-S_.mjs";
3
+ import { t as strykerPlugins$3 } from "./workflow-make-ignorer-D8-1EVEm.mjs";
4
4
  //#region src/mod.ts
5
5
  const strykerPlugins = [
6
6
  ...strykerPlugins$1,
@@ -211,10 +211,14 @@ const makeArgumentBodiesOf = (program) => {
211
211
  walkAllNodes(program, (node) => {
212
212
  if (!isCallExpression(node)) return;
213
213
  if (!isWorkflowMakeCallee(node.callee, localNames)) return;
214
- const firstArgument = node.arguments[0];
215
- if (firstArgument === void 0 || !isIdentifier(firstArgument)) return;
216
- const resolved = followFunctionReference(firstArgument.name, bindings, 0);
217
- if (resolved !== null && typeof resolved === "object") bodies.add(resolved);
214
+ for (const argument of node.arguments) {
215
+ if (!isIdentifier(argument)) continue;
216
+ const resolved = followFunctionReference(argument.name, bindings, 0);
217
+ if (resolved !== null && typeof resolved === "object") {
218
+ bodies.add(resolved);
219
+ break;
220
+ }
221
+ }
218
222
  });
219
223
  }
220
224
  MAKE_ARGUMENT_BODIES_BY_PROGRAM.set(program, bodies);
@@ -1,2 +1,2 @@
1
- import { n as NOT_INSIDE_WORKFLOW_MAKE, r as decideWorkflowMakeBoundaryIgnore, t as strykerPlugins } from "./workflow-make-ignorer-dLlC4-S_.mjs";
1
+ import { n as NOT_INSIDE_WORKFLOW_MAKE, r as decideWorkflowMakeBoundaryIgnore, t as strykerPlugins } from "./workflow-make-ignorer-D8-1EVEm.mjs";
2
2
  export { NOT_INSIDE_WORKFLOW_MAKE, decideWorkflowMakeBoundaryIgnore, strykerPlugins };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-plugins",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.0",
4
+ "version": "0.13.1",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
9
- "directory": "packages/stryker-plugins"
9
+ "directory": "packages/testing/mutation/plugins/stryker-plugins"
10
10
  },
11
- "homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/stryker-plugins#readme",
11
+ "homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/testing/mutation/plugins/stryker-plugins#readme",
12
12
  "bugs": "https://github.com/systemfsoftware/systemfsoftware/issues",
13
13
  "description": "Stryker mutation-testing plugins for Effect-TS — ignore equivalent mutants on Effect Schema declarations (brands, TaggedClass/TaggedError tags) so the score reflects behaviour, not data.",
14
14
  "keywords": [
@@ -48,31 +48,29 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/types": "^7.29.0",
51
- "@effect/vitest": "4.0.0-rc.108",
51
+ "@effect/vitest": "4.0.0-rc.111",
52
52
  "@microsoft/api-extractor": "^7.58.7",
53
- "@stryker-mutator/api": "^9.6.1",
54
53
  "@systemfsoftware/arethetypeswrong-cli": "^1.1.1",
55
54
  "@types/node": "^24",
56
55
  "@vitest/coverage-v8": "^4",
57
- "effect": "4.0.0-rc.108",
56
+ "effect": "4.0.0-rc.111",
58
57
  "oxlint": "^1.77.0",
59
58
  "rimraf": "^6.1.3",
60
59
  "tsdown": "^0.22.14",
61
60
  "tstyche": "^7.1.0",
62
61
  "vitest": "^4.1.10",
63
- "@systemfsoftware/effect-gherkin-spec": "^1.0.0",
64
- "@systemfsoftware/effect-schema-law": "^0.7.0",
65
- "@systemfsoftware/tsconfig": "^1.3.2",
62
+ "@systemfsoftware/effect-gherkin-spec": "^2.0.1",
66
63
  "@systemfsoftware/oxlint-config": "^0.1.0",
67
- "@systemfsoftware/effect-schema-vite": "^1.5.2",
68
- "@systemfsoftware/stryker-js-plugin-api": "^1.0.0",
69
- "@systemfsoftware/vitest-config": "^0.1.0"
64
+ "@systemfsoftware/stryker-js-plugin-api": "^2.1.0",
65
+ "@systemfsoftware/tsconfig": "^1.3.3",
66
+ "@systemfsoftware/vitest-config": "^0.1.0",
67
+ "@systemfsoftware/effect-schema-law": "^0.9.0",
68
+ "@systemfsoftware/effect-schema-vite": "^1.5.4"
70
69
  },
71
70
  "peerDependencies": {
72
- "@stryker-mutator/api": "^9.6.1",
73
- "effect": "4.0.0-rc.108",
71
+ "effect": "^4.0.0-rc.111",
74
72
  "typescript": ">=5.0.0",
75
- "@systemfsoftware/stryker-js-plugin-api": "^1.0.0"
73
+ "@systemfsoftware/stryker-js-plugin-api": "^2.1.0"
76
74
  },
77
75
  "publishConfig": {
78
76
  "provenance": true