@systemfsoftware/stryker-js-vitest-runner 4.0.3 → 4.0.4

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,15 @@
1
1
  # @systemfsoftware/stryker-js-vitest-runner
2
2
 
3
+ ## 4.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Imports rewired to the collapsed `@systemfsoftware/stryker-js` root entry; each package now co-releases against the root-entry major.
8
+
9
+ - Updated dependencies:
10
+ - @systemfsoftware/effect-cell-types@8.0.0
11
+ - @systemfsoftware/stryker-js@4.0.0
12
+
3
13
  ## 4.0.3
4
14
 
5
15
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,18 +1,20 @@
1
- //#region src/index.d.ts
2
- /**
3
- * The `vitest` test runner, as the plugin the engine loads.
4
- *
5
- * The declared layer asks for the run's resolved options and the sandbox it runs
6
- * in, so the requirement is visible in the type and an engine that does not
7
- * provide it fails to compile.
8
- */
9
- declare const strykerPlugins: import("@systemfsoftware/stryker-js/Plugin").PluginLayerContribution<"TestRunner">[];
10
- /**
11
- * The `vitest` option section as a JSON Schema document, for Stryker's option
12
- * validation — derived from the declaration, never read from a file. It is built
13
- * here, at the entry that contributes it, because a document is a *use* of a
14
- * schema and the schema module exports only declarations.
15
- */
16
- declare const strykerValidationSchema: Record<string, unknown>;
17
- //#endregion
18
- export { strykerPlugins, strykerValidationSchema };
1
+ import { PluginLayerContribution } from '@systemfsoftware/stryker-js';
2
+
3
+ /**
4
+ * The `vitest` test runner, as the plugin the engine loads.
5
+ *
6
+ * The declared layer asks for the run's resolved options and the sandbox it runs
7
+ * in, so the requirement is visible in the type and an engine that does not
8
+ * provide it fails to compile.
9
+ */
10
+ export declare const strykerPlugins: PluginLayerContribution<"TestRunner">[];
11
+
12
+ /**
13
+ * The `vitest` option section as a JSON Schema document, for Stryker's option
14
+ * validation derived from the declaration, never read from a file. It is built
15
+ * here, at the entry that contributes it, because a document is a *use* of a
16
+ * schema and the schema module exports only declarations.
17
+ */
18
+ export declare const strykerValidationSchema: Record<string, unknown>;
19
+
20
+ export { }
package/dist/index.mjs CHANGED
@@ -1,12 +1,9 @@
1
- import { RunConfiguration, SandboxDirectory, declarePlugin } from "@systemfsoftware/stryker-js/Plugin";
1
+ import { INSTRUMENTER_CONSTANTS, Module, RunConfiguration, SandboxDirectory, TestRunner, TestRunnerFailed, declarePlugin, errorToString, normalizeFileName, testFilesProvided } from "@systemfsoftware/stryker-js";
2
2
  import * as Effect$1 from "effect/Effect";
3
3
  import * as Layer from "effect/Layer";
4
4
  import * as S from "effect/Schema";
5
5
  import { createVitest } from "vitest/node";
6
6
  import { Cell, Workflow } from "@systemfsoftware/effect-cell-types";
7
- import { Module } from "@systemfsoftware/stryker-js/Module";
8
- import { INSTRUMENTER_CONSTANTS, errorToString, normalizeFileName } from "@systemfsoftware/stryker-js/Mutant";
9
- import { TestRunner, TestRunnerFailed, testFilesProvided } from "@systemfsoftware/stryker-js/TestRunner";
10
7
  import * as Context from "effect/Context";
11
8
  import * as FileSystem from "effect/FileSystem";
12
9
  import * as Match from "effect/Match";
@@ -952,7 +949,7 @@ const makeVitestRunnerLayer = (input) => Layer.effect(TestRunner, Effect$1.gen(f
952
949
  cause: errorToString(cause)
953
950
  });
954
951
  })()));
955
- const mutantRun = (options) => Cell.run(mutantRunCell, options).pipe(Effect$1.provideService(VitestHarness, harnessImpl), Effect$1.mapError((cause) => (() => {
952
+ const mutantRun = (options) => mutantRunCell.run(options).pipe(Effect$1.provideService(VitestHarness, harnessImpl), Effect$1.mapError((cause) => (() => {
956
953
  if (cause instanceof TestRunnerFailed) return cause;
957
954
  return new TestRunnerFailed({
958
955
  runnerName: "vitest",
@@ -1 +1 @@
1
- export {}
1
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-vitest-runner",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
@@ -31,8 +31,8 @@
31
31
  "coverageAnalysis": "perTest"
32
32
  },
33
33
  "dependencies": {
34
- "@systemfsoftware/effect-cell-types": "^7.0.1",
35
- "@systemfsoftware/stryker-js": "^3.0.2"
34
+ "@systemfsoftware/stryker-js": "^4.0.0",
35
+ "@systemfsoftware/effect-cell-types": "^8.0.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "effect": "4.0.0-rc.112",
@@ -41,6 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@effect/platform-node": "4.0.0-rc.112",
43
43
  "@effect/vitest": "4.0.0-rc.112",
44
+ "@microsoft/api-extractor": "^7.58.7",
44
45
  "@systemfsoftware/arethetypeswrong-cli": "^4.1.0",
45
46
  "@types/node": "^24",
46
47
  "@vitest/browser-playwright": "^4",
@@ -50,9 +51,9 @@
50
51
  "tsdown": "^0.22.14",
51
52
  "typescript": "^7",
52
53
  "vitest": "^4",
53
- "@systemfsoftware/oxlint-config": "^0.1.0",
54
- "@systemfsoftware/all": "^2.0.1",
54
+ "@systemfsoftware/all": "^2.0.2",
55
55
  "@systemfsoftware/effect-gherkin-spec": "^4.0.2",
56
+ "@systemfsoftware/oxlint-config": "^0.1.0",
56
57
  "@systemfsoftware/tsconfig": "^1.3.4",
57
58
  "@systemfsoftware/vitest-config": "^0.1.0"
58
59
  },
@@ -61,10 +62,12 @@
61
62
  },
62
63
  "scripts": {
63
64
  "clean": "rimraf dist",
64
- "build": "tsdown",
65
+ "build": "tsdown && pnpm api:check",
65
66
  "typecheck": "tsc --noEmit --incremental",
66
67
  "attw": "attw --pack .",
67
68
  "test": "vitest run",
68
- "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}"
69
+ "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
70
+ "api:check": "tsdown && concurrently --kill-others-on-fail \"api-extractor run\" \"api-extractor run --config api-extractor.stryker-setup.json\"",
71
+ "api:update": "concurrently --kill-others-on-fail \"api-extractor run --local\" \"api-extractor run --local --config api-extractor.stryker-setup.json\""
69
72
  }
70
73
  }