@systemfsoftware/stryker-js 5.0.0 → 6.1.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 +68 -0
- package/README.md +144 -39
- package/dist/Plugins-DF95m9KO.d.mts +1400 -0
- package/dist/{builtin-reporters-wAuKFSsd.mjs → builtin-reporters-BqePgAN0.mjs} +3 -4
- package/dist/builtin-reporters.d.mts +299 -1
- package/dist/builtin-reporters.mjs +3 -2
- package/dist/compiler-C8aLIb5U.mjs +48406 -0
- package/dist/config.d.mts +2 -1
- package/dist/dist-CWbipfGB.mjs +711 -0
- package/dist/index-BInJWa0x.d.mts +1148 -0
- package/dist/index.d.mts +2538 -312
- package/dist/index.mjs +4 -3
- package/dist/main.mjs +499 -1893
- package/dist/{mutation-test.cell-RmF-sBUm.d.mts → mutation-test.cell-Cw1ZzDnb.d.mts} +70 -18
- package/dist/plugin-loader.d.mts +1577 -10
- package/dist/plugin-loader.mjs +3 -2
- package/dist/{plugin-worker-entry-DNu0SHO8.mjs → plugin-worker-entry-D00fedxV.mjs} +356 -184
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/rolldown-runtime-XITHOX9H.mjs +15 -0
- package/dist/src-BoVgxGWD.mjs +12466 -0
- package/dist/src-js-DRK8boNV.mjs +1009 -0
- package/dist/{stryker-config-BlfHxS7n.d.mts → stryker-config-DIGmQrm1.d.mts} +2 -2
- package/package.json +35 -13
- package/dist/Plugins-sA_9VKus.d.mts +0 -96
- package/dist/src-Bzh7ykDp.mjs +0 -4724
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { O as PartialStrykerOptions } from "./index-BInJWa0x.mjs";
|
|
1
2
|
import { n as OutputMode } from "./output-mode-CfGHDpi5.mjs";
|
|
2
|
-
import { PartialStrykerOptions, PartialStrykerOptions as PartialStrykerOptions$1, StrykerOptions as StrykerOptions$1 } from "@systemfsoftware/stryker-js-plugin-interface";
|
|
3
3
|
//#region src/config/stryker-config.d.ts
|
|
4
4
|
interface ConfigEnv {
|
|
5
5
|
readonly command: 'run' | 'merge-reports';
|
|
@@ -11,4 +11,4 @@ type StrykerConfig = PartialStrykerOptions;
|
|
|
11
11
|
type StrykerConfigFn = (env: ConfigEnv) => StrykerConfig | Promise<StrykerConfig>;
|
|
12
12
|
type StrykerConfigExport = StrykerConfig | Promise<StrykerConfig> | StrykerConfigFn;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { StrykerConfigFn as
|
|
14
|
+
export { StrykerConfigFn as i, StrykerConfig as n, StrykerConfigExport as r, ConfigEnv as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
|
|
@@ -30,14 +30,7 @@
|
|
|
30
30
|
"@opentelemetry/api": "^1.9.0",
|
|
31
31
|
"@opentelemetry/exporter-trace-otlp-http": "^0.208.0",
|
|
32
32
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
33
|
-
"@systemfsoftware/effect-cell-types": "^8"
|
|
34
|
-
"diff-match-patch": "1.0.5",
|
|
35
|
-
"minimatch": "~10.2.4",
|
|
36
|
-
"@systemfsoftware/stryker-ignorer-interface": "^0.1.0",
|
|
37
|
-
"@systemfsoftware/stryker-js-html-reporter": "^4.0.0",
|
|
38
|
-
"@systemfsoftware/stryker-js-plugin-runtime": "^5.0.0",
|
|
39
|
-
"@systemfsoftware/stryker-js-plugin-interface": "^5.0.0",
|
|
40
|
-
"@systemfsoftware/stryker-js-instrumenter": "^7.0.0"
|
|
33
|
+
"@systemfsoftware/effect-cell-types": "^8"
|
|
41
34
|
},
|
|
42
35
|
"peerDependencies": {
|
|
43
36
|
"effect": "4.0.0-rc.112"
|
|
@@ -53,8 +46,13 @@
|
|
|
53
46
|
"@systemfsoftware/effect-gherkin-spec": "^4",
|
|
54
47
|
"@systemfsoftware/effect-schema-law": "^2",
|
|
55
48
|
"@systemfsoftware/effect-schema-vite": "^2",
|
|
49
|
+
"@systemfsoftware/stryker-ignorer-effect-schema-declarations": "latest",
|
|
50
|
+
"@systemfsoftware/stryker-ignorer-in-source-vitest-block": "latest",
|
|
51
|
+
"@systemfsoftware/stryker-js": "latest",
|
|
52
|
+
"@systemfsoftware/stryker-js-typescript-checker": "latest",
|
|
53
|
+
"@systemfsoftware/stryker-js-vitest-runner": "latest",
|
|
54
|
+
"@systemfsoftware/stryker-test-contribution": "latest",
|
|
56
55
|
"@systemfsoftware/tsconfig": "^1",
|
|
57
|
-
"@types/diff-match-patch": "1.0.36",
|
|
58
56
|
"@types/node": "^24",
|
|
59
57
|
"@vitest/coverage-v8": "^4",
|
|
60
58
|
"concurrently": "^10",
|
|
@@ -66,8 +64,12 @@
|
|
|
66
64
|
"tsdown": "^0.23.0",
|
|
67
65
|
"typescript": "^7",
|
|
68
66
|
"vitest": "^4",
|
|
69
|
-
"@systemfsoftware/stryker-
|
|
70
|
-
"@systemfsoftware/stryker-
|
|
67
|
+
"@systemfsoftware/stryker-config": "^0.1.0",
|
|
68
|
+
"@systemfsoftware/stryker-js-html-reporter": "^4.0.1",
|
|
69
|
+
"@systemfsoftware/stryker-ignorer-interface": "^0.1.0",
|
|
70
|
+
"@systemfsoftware/stryker-js-plugin-interface": "^6.0.0",
|
|
71
|
+
"@systemfsoftware/stryker-js-instrumenter": "^7.1.0",
|
|
72
|
+
"@systemfsoftware/stryker-js-plugin-runtime": "^5.0.1",
|
|
71
73
|
"@systemfsoftware/tsdown-config": "^0.1.0",
|
|
72
74
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
73
75
|
},
|
|
@@ -99,13 +101,33 @@
|
|
|
99
101
|
"./package.json": "./package.json"
|
|
100
102
|
},
|
|
101
103
|
"inlinedDependencies": {
|
|
102
|
-
"@
|
|
104
|
+
"@eslint-community/regexpp": "4.12.2",
|
|
105
|
+
"@jridgewell/gen-mapping": "0.3.13",
|
|
106
|
+
"@jridgewell/remapping": "2.3.5",
|
|
107
|
+
"@jridgewell/resolve-uri": "3.1.2",
|
|
108
|
+
"@jridgewell/sourcemap-codec": "1.6.0",
|
|
109
|
+
"@jridgewell/trace-mapping": "0.3.31",
|
|
110
|
+
"@jsr/std__jsonc": "1.0.2",
|
|
111
|
+
"@sveltejs/acorn-typescript": "1.0.13",
|
|
112
|
+
"acorn": "8.18.0",
|
|
113
|
+
"angular-html-parser": "10.4.0",
|
|
114
|
+
"aria-query": "5.3.1",
|
|
115
|
+
"axobject-query": "4.1.0",
|
|
116
|
+
"esrap": "2.3.7",
|
|
117
|
+
"is-reference": "3.0.3",
|
|
118
|
+
"locate-character": "3.0.0",
|
|
119
|
+
"magic-string": "0.30.21",
|
|
120
|
+
"oxc-parser": "0.140.0",
|
|
121
|
+
"oxc-walker": "1.1.1",
|
|
122
|
+
"svelte": "5.55.1",
|
|
123
|
+
"zimmerframe": "1.1.5"
|
|
103
124
|
},
|
|
104
125
|
"scripts": {
|
|
105
126
|
"clean": "rimraf dist",
|
|
106
127
|
"build": "rimraf dist && tsdown --config tsdown.bin.config.ts && tsdown --config tsdown.config.ts",
|
|
107
128
|
"typecheck": "tsc --noEmit --incremental && tsc -p tsconfig.node.json --noEmit",
|
|
108
129
|
"test": "vitest run",
|
|
130
|
+
"mutation": "stryker run",
|
|
109
131
|
"attw": "attw --pack .",
|
|
110
132
|
"lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
|
|
111
133
|
"api:check": "concurrently --kill-others-on-fail \"api-extractor run\" \"api-extractor run --config api-extractor.builtin-reporters.json\" \"api-extractor run --config api-extractor.plugin-loader.json\"",
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import * as Path from "effect/Path";
|
|
3
|
-
import { ExitClass, WorkerPluginKind } from "@systemfsoftware/stryker-js-plugin-interface";
|
|
4
|
-
import "effect/Option";
|
|
5
|
-
import * as S from "effect/Schema";
|
|
6
|
-
import { Schema } from "effect";
|
|
7
|
-
import * as HashMap from "effect/HashMap";
|
|
8
|
-
import { Ignorer } from "@systemfsoftware/stryker-ignorer-interface";
|
|
9
|
-
//#region src/Run.schema.d.ts
|
|
10
|
-
declare const TypeId: '~stryker/mutation-run/StageError';
|
|
11
|
-
declare const StageError_base: S.Class<StageError, S.TaggedStruct<"StageError", {
|
|
12
|
-
readonly stage: S.Literals<readonly ["prepare", "instrument", "dryRun", "dryRunNoTests", "mutationTest"]>;
|
|
13
|
-
readonly reason: S.String;
|
|
14
|
-
readonly cause: S.optional<S.Defect>;
|
|
15
|
-
readonly command: S.optional<S.String>;
|
|
16
|
-
}>, import("effect/Cause").YieldableError>;
|
|
17
|
-
declare class StageError extends StageError_base {
|
|
18
|
-
readonly [TypeId]: "~stryker/mutation-run/StageError";
|
|
19
|
-
get exitClass(): ExitClass;
|
|
20
|
-
get message(): string;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/Plugins.schema.d.ts
|
|
24
|
-
declare const PluginNotFoundError_base: Schema.Class<PluginNotFoundError, Schema.TaggedStruct<"PluginNotFoundError", {
|
|
25
|
-
readonly descriptor: Schema.String;
|
|
26
|
-
}>, import("effect/Cause").YieldableError>;
|
|
27
|
-
declare class PluginNotFoundError extends PluginNotFoundError_base {
|
|
28
|
-
readonly exitClass: 'ConfigError';
|
|
29
|
-
}
|
|
30
|
-
declare const PluginLoadFailedError_base: Schema.Class<PluginLoadFailedError, Schema.TaggedStruct<"PluginLoadFailedError", {
|
|
31
|
-
readonly descriptor: Schema.String;
|
|
32
|
-
readonly cause: Schema.Unknown;
|
|
33
|
-
}>, import("effect/Cause").YieldableError>;
|
|
34
|
-
declare class PluginLoadFailedError extends PluginLoadFailedError_base {
|
|
35
|
-
readonly exitClass: 'InternalError';
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/Plugins.d.ts
|
|
39
|
-
type PluginKind = WorkerPluginKind | 'Evaluator';
|
|
40
|
-
interface WorkerPluginDescriptor<K extends WorkerPluginKind = WorkerPluginKind> {
|
|
41
|
-
readonly kind: K;
|
|
42
|
-
readonly name: string;
|
|
43
|
-
readonly workerEntry: string;
|
|
44
|
-
}
|
|
45
|
-
interface EvaluatorPluginDescriptor {
|
|
46
|
-
readonly kind: 'Evaluator';
|
|
47
|
-
readonly name: string;
|
|
48
|
-
}
|
|
49
|
-
type AnyWorkerPluginDescriptor = { [K in WorkerPluginKind]: WorkerPluginDescriptor<K>; }[WorkerPluginKind];
|
|
50
|
-
type AnyPluginDescriptor = AnyWorkerPluginDescriptor | EvaluatorPluginDescriptor;
|
|
51
|
-
type PluginDescriptorOf<K extends PluginKind> = Extract<AnyPluginDescriptor, {
|
|
52
|
-
readonly kind: K;
|
|
53
|
-
}>;
|
|
54
|
-
type PluginDescriptor<K extends PluginKind = PluginKind> = PluginDescriptorOf<K>;
|
|
55
|
-
interface WorkerPluginSource<K extends WorkerPluginKind = WorkerPluginKind> {
|
|
56
|
-
readonly kind: K;
|
|
57
|
-
readonly name: string;
|
|
58
|
-
readonly modulePath: string;
|
|
59
|
-
readonly workerEntry: string;
|
|
60
|
-
}
|
|
61
|
-
interface EvaluatorPluginSource {
|
|
62
|
-
readonly kind: 'Evaluator';
|
|
63
|
-
readonly name: string;
|
|
64
|
-
readonly modulePath: string;
|
|
65
|
-
}
|
|
66
|
-
type AnyWorkerPluginSource = { [K in WorkerPluginKind]: WorkerPluginSource<K>; }[WorkerPluginKind];
|
|
67
|
-
type PluginSource = AnyWorkerPluginSource | EvaluatorPluginSource;
|
|
68
|
-
interface PluginLoaderEntryLike {
|
|
69
|
-
readonly moduleName: string;
|
|
70
|
-
readonly plugins: readonly PluginDescriptor[] | undefined;
|
|
71
|
-
readonly schemaContribution: Record<string, unknown> | undefined;
|
|
72
|
-
}
|
|
73
|
-
interface PluginLoadPlan {
|
|
74
|
-
readonly schemaContributions: readonly Record<string, unknown>[];
|
|
75
|
-
readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
|
|
76
|
-
readonly pluginModulePaths: readonly string[];
|
|
77
|
-
readonly pluginSources: readonly PluginSource[];
|
|
78
|
-
readonly shadowings: readonly {
|
|
79
|
-
readonly kind: PluginKind;
|
|
80
|
-
readonly name: string;
|
|
81
|
-
readonly shadowedIndex: number;
|
|
82
|
-
readonly winnerIndex: number;
|
|
83
|
-
}[];
|
|
84
|
-
}
|
|
85
|
-
interface LoadedPlugins {
|
|
86
|
-
readonly schemaContributions: readonly Record<string, unknown>[];
|
|
87
|
-
readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
|
|
88
|
-
readonly pluginModulePaths: readonly string[];
|
|
89
|
-
readonly pluginSources: readonly PluginSource[];
|
|
90
|
-
readonly ignorers: readonly Ignorer[];
|
|
91
|
-
}
|
|
92
|
-
declare function loadPlugins(pluginDescriptors: readonly string[]): Effect.Effect<LoadedPlugins, PluginLoadFailedError, Path.Path>;
|
|
93
|
-
declare function create<K extends PluginKind>(pluginsByKind: HashMap.HashMap<PluginKind, readonly AnyPluginDescriptor[]>, kind: K, name: string): Effect.Effect<PluginDescriptorOf<K>, PluginNotFoundError>;
|
|
94
|
-
declare function createAll<K extends PluginKind>(pluginsByKind: HashMap.HashMap<PluginKind, readonly AnyPluginDescriptor[]>, kind: K): Effect.Effect<readonly PluginDescriptorOf<K>[]>;
|
|
95
|
-
//#endregion
|
|
96
|
-
export { PluginLoadPlan as a, create as c, PluginLoadFailedError as d, PluginNotFoundError as f, PluginKind as i, createAll as l, PluginDescriptor as n, PluginLoaderEntryLike as o, StageError as p, PluginDescriptorOf as r, PluginSource as s, LoadedPlugins as t, loadPlugins as u };
|