@systemfsoftware/stryker-js 13.0.0 → 13.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 +12 -0
- package/dist/{Run.schema-BlvpjFjJ.d.mts → Run.schema-BwLLAYqu.d.mts} +1 -1
- package/dist/{Run.schema-Bj7b_FMA.mjs → Run.schema-Cv2_Kup0.mjs} +6 -3
- package/dist/{RunEnvironment.service-BJAsZsdn.d.mts → RunEnvironment.service-rkMZ8nm1.d.mts} +8 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/{dist-BscHZmXN.mjs → dist-CQ7r4AaH.mjs} +315 -262
- package/dist/events.d.mts +1 -1
- package/dist/events.mjs +1 -1
- package/dist/{index-C09A80iv.d.mts → index-Ptvmn934.d.mts} +15 -5
- package/dist/index.d.mts +10 -6
- package/dist/index.mjs +3 -3
- package/dist/main.mjs +259 -51
- package/dist/{merge-config-X_AxYxMY.d.mts → merge-config-BVdwN_LJ.d.mts} +1 -1
- package/dist/{merge-config-DA_v1hGx.mjs → merge-config-DZHwEkGY.mjs} +1 -1
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/{run-stages.cell-BN__EOCk.mjs → run-stages.cell-rdoY0cVH.mjs} +323 -255
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @systemfsoftware/stryker-js
|
|
2
2
|
|
|
3
|
+
## 13.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- The `stryker` CLI now continues a caller's trace: when `TRACEPARENT` (and optionally `TRACESTATE`) is set in its environment, the `stryker.cli.run` span and everything beneath it join that trace as a child of the carried span, following the OpenTelemetry environment-carrier specification. An absent or malformed `TRACEPARENT` leaves the run on its own root trace, as before.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- The packages now depend on `@systemfsoftware/effect-cell-types` 11.
|
|
12
|
+
|
|
13
|
+
- Every tagged error now has a one-line message built from its fields, so a failure names the file, mutant, plugin, worker or exit code involved instead of an empty message. The errors' tags, fields and encoded forms are unchanged.
|
|
14
|
+
|
|
3
15
|
## 13.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as mod_d_exports$5, i as mod_d_exports$4, r as mod_d_exports$3 } from "./index-
|
|
1
|
+
import { a as mod_d_exports$5, i as mod_d_exports$4, r as mod_d_exports$3 } from "./index-Ptvmn934.mjs";
|
|
2
2
|
import * as S from "effect/Schema";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
4
|
//#region src/run-event.schema.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Reporter_exports, d as Mutant_exports, i as Report_exports, r as Plugin_exports } from "./dist-
|
|
2
|
-
import * as Match from "effect/Match";
|
|
1
|
+
import { a as Reporter_exports, d as Mutant_exports, i as Report_exports, r as Plugin_exports } from "./dist-CQ7r4AaH.mjs";
|
|
2
|
+
import * as Match$1 from "effect/Match";
|
|
3
3
|
import * as S from "effect/Schema";
|
|
4
4
|
import { Schema, SchemaGetter } from "effect";
|
|
5
5
|
//#region src/output-mode.schema.ts
|
|
@@ -20,6 +20,9 @@ S.Struct({
|
|
|
20
20
|
//#region src/PluginsError.schema.ts
|
|
21
21
|
var PluginNotFoundError = class extends Schema.TaggedError()("PluginNotFoundError", { descriptor: Schema.String }) {
|
|
22
22
|
exitClass = "ConfigError";
|
|
23
|
+
get message() {
|
|
24
|
+
return `Plugin "${this.descriptor}" was not found`;
|
|
25
|
+
}
|
|
23
26
|
};
|
|
24
27
|
const PluginLoadFailureReason = Schema.Union([
|
|
25
28
|
Schema.TaggedStruct("PeerMissing", { peer: Schema.String }),
|
|
@@ -232,7 +235,7 @@ var StageError = class extends S.TaggedError(TypeId)("StageError", {
|
|
|
232
235
|
}
|
|
233
236
|
get message() {
|
|
234
237
|
const failure = `${STAGE_PRESENTATION[this.stage].label} failed: ${this.reason}`;
|
|
235
|
-
return Match.value(this.command).pipe(Match.when(Match.nonEmptyString, (present) => `${failure} (command: ${present})`), Match.orElse(() => failure));
|
|
238
|
+
return Match$1.value(this.command).pipe(Match$1.when(Match$1.nonEmptyString, (present) => `${failure} (command: ${present})`), Match$1.orElse(() => failure));
|
|
236
239
|
}
|
|
237
240
|
};
|
|
238
241
|
const STAGE_PRESENTATION = {
|
package/dist/{RunEnvironment.service-BJAsZsdn.d.mts → RunEnvironment.service-rkMZ8nm1.d.mts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as mod_d_exports$5, c as mod_d_exports$2, d as Ignorer, l as mod_d_exports$3$1, n as mod_d_exports$2$1, o as mod_d_exports$6, r as mod_d_exports$3, s as mod_d_exports$1, t as mod_d_exports, u as Framework } from "./index-
|
|
2
|
-
import { C as RunMutantTested, E as RunStarted, M as VerdictReached, S as RunId, b as RunEvent, c as FormatRegistryResolved, f as Heartbeat, g as PlanKnown, h as PhaseEntered, k as SkippedReported, o as ResolvedMode, p as HelpRendered, v as PluginsReported, x as RunFailed } from "./Run.schema-
|
|
1
|
+
import { a as mod_d_exports$5, c as mod_d_exports$2, d as Ignorer, l as mod_d_exports$3$1, n as mod_d_exports$2$1, o as mod_d_exports$6, r as mod_d_exports$3, s as mod_d_exports$1, t as mod_d_exports, u as Framework } from "./index-Ptvmn934.mjs";
|
|
2
|
+
import { C as RunMutantTested, E as RunStarted, M as VerdictReached, S as RunId, b as RunEvent, c as FormatRegistryResolved, f as Heartbeat, g as PlanKnown, h as PhaseEntered, k as SkippedReported, o as ResolvedMode, p as HelpRendered, v as PluginsReported, x as RunFailed } from "./Run.schema-BwLLAYqu.mjs";
|
|
3
3
|
import { Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
4
4
|
import "effect/Option";
|
|
5
5
|
import "effect/Result";
|
|
@@ -45,6 +45,7 @@ declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedErr
|
|
|
45
45
|
declare class ChildProcessCrashedError extends ChildProcessCrashedError_base {
|
|
46
46
|
readonly [WorkerExitTypeId]: symbol;
|
|
47
47
|
readonly exitClass: 'InternalError';
|
|
48
|
+
get message(): string;
|
|
48
49
|
}
|
|
49
50
|
declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.TaggedStruct<"OutOfMemoryError", {
|
|
50
51
|
readonly pid: Schema.Int;
|
|
@@ -53,6 +54,7 @@ declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.Tagge
|
|
|
53
54
|
declare class OutOfMemoryError extends OutOfMemoryError_base {
|
|
54
55
|
readonly [WorkerExitTypeId]: symbol;
|
|
55
56
|
readonly exitClass: 'RuntimeError';
|
|
57
|
+
get message(): string;
|
|
56
58
|
}
|
|
57
59
|
type WorkerExit = ChildProcessCrashedError | OutOfMemoryError;
|
|
58
60
|
type WorkerBootError = WorkerExit | WorkerBootTimeoutError;
|
|
@@ -61,6 +63,7 @@ declare const WorkerBootTimeoutError_base: Schema.Class<WorkerBootTimeoutError,
|
|
|
61
63
|
}>, import("effect/Cause").YieldableError>;
|
|
62
64
|
declare class WorkerBootTimeoutError extends WorkerBootTimeoutError_base {
|
|
63
65
|
readonly exitClass: 'InternalError';
|
|
66
|
+
get message(): string;
|
|
64
67
|
}
|
|
65
68
|
//#endregion
|
|
66
69
|
//#region src/ConfigError.schema.d.ts
|
|
@@ -69,6 +72,7 @@ declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.T
|
|
|
69
72
|
}>, import("effect/Cause").YieldableError>;
|
|
70
73
|
declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
|
|
71
74
|
readonly exitClass: 'ConfigError';
|
|
75
|
+
get message(): string;
|
|
72
76
|
}
|
|
73
77
|
declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
|
|
74
78
|
readonly file: S.String;
|
|
@@ -84,6 +88,7 @@ declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError,
|
|
|
84
88
|
}>, import("effect/Cause").YieldableError>;
|
|
85
89
|
declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
|
|
86
90
|
readonly exitClass: 'ConfigError';
|
|
91
|
+
get message(): string;
|
|
87
92
|
}
|
|
88
93
|
declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
|
|
89
94
|
readonly file: S.String;
|
|
@@ -91,6 +96,7 @@ declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.Tag
|
|
|
91
96
|
}>, import("effect/Cause").YieldableError>;
|
|
92
97
|
declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
|
|
93
98
|
readonly exitClass: 'ConfigError';
|
|
99
|
+
get message(): string;
|
|
94
100
|
}
|
|
95
101
|
declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
|
|
96
102
|
readonly message: S.String;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as mod_d_exports$2 } from "./index-
|
|
2
|
-
import { a as ImmutablePrimitive, c as StrykerConfigExport, i as Immutable, l as StrykerConfigFn, o as Primitive, r as ConfigEnv, s as StrykerConfig, t as mergeConfig } from "./merge-config-
|
|
1
|
+
import { n as mod_d_exports$2 } from "./index-Ptvmn934.mjs";
|
|
2
|
+
import { a as ImmutablePrimitive, c as StrykerConfigExport, i as Immutable, l as StrykerConfigFn, o as Primitive, r as ConfigEnv, s as StrykerConfig, t as mergeConfig } from "./merge-config-BVdwN_LJ.mjs";
|
|
3
3
|
//#region src/config/define-config.d.ts
|
|
4
4
|
export declare function defineConfig(config: StrykerConfig): StrykerConfig;
|
|
5
5
|
export declare function defineConfig(config: Promise<StrykerConfig>): Promise<StrykerConfig>;
|
package/dist/config.mjs
CHANGED