@systemfsoftware/stryker-js 14.0.0 → 15.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 +8 -0
- package/dist/{Run.schema-DErVOVSj.d.mts → Run.schema-B1HZugu9.d.mts} +1 -1
- package/dist/{RunEnvironment.service-C8nNTyKa.d.mts → RunEnvironment.service-B1bsWOQ9.d.mts} +7 -7
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/events.d.mts +1 -1
- package/dist/{index-C5FRZ4Ni.d.mts → index-Cf9G6kA8.d.mts} +3 -3
- package/dist/index.d.mts +12 -12
- package/dist/index.mjs +6 -6
- package/dist/main.mjs +3529 -2938
- package/dist/{merge-config-IXgoKiix.d.mts → merge-config-BdQdK3PM.d.mts} +1 -1
- package/dist/{merge-config-DCQE_2cC.mjs → merge-config-zsGl1aWc.mjs} +18 -18
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/{run-stages-CGUzIzPZ.mjs → run-stages-aBT_QAfO.mjs} +20 -20
- package/package.json +19 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as mod_d_exports$5 } from "./index-
|
|
1
|
+
import { i as mod_d_exports$5 } from "./index-Cf9G6kA8.mjs";
|
|
2
2
|
import * as S from "effect/Schema";
|
|
3
3
|
//#region src/config/stryker-config.schema.d.ts
|
|
4
4
|
type StrykerConfig = mod_d_exports$5.PartialStrykerOptions;
|
|
@@ -7,9 +7,9 @@ import * as Context from "effect/Context";
|
|
|
7
7
|
import { Effect, Schema, SchemaGetter, SchemaIssue, SchemaTransformation } from "effect";
|
|
8
8
|
import * as Effect$1 from "effect/Effect";
|
|
9
9
|
import * as Boolean$1 from "effect/Boolean";
|
|
10
|
-
import * as Rpc from "effect/
|
|
11
|
-
import * as RpcGroup from "effect/
|
|
12
|
-
import * as RpcMiddleware from "effect/
|
|
10
|
+
import * as Rpc from "effect/rpc/Rpc";
|
|
11
|
+
import * as RpcGroup from "effect/rpc/RpcGroup";
|
|
12
|
+
import * as RpcMiddleware from "effect/rpc/RpcMiddleware";
|
|
13
13
|
import * as Match$1 from "effect/Match";
|
|
14
14
|
import { dual } from "effect/Function";
|
|
15
15
|
import * as Record$1 from "effect/Record";
|
|
@@ -102,10 +102,10 @@ const ActionableStatusSchema = S.Literals([
|
|
|
102
102
|
"Timeout",
|
|
103
103
|
"RuntimeError"
|
|
104
104
|
]);
|
|
105
|
-
const MutantId = S.String.check(S.isPattern(/^[0-9a-f]{16}
|
|
106
|
-
const MutatorNameGrammar = S.String.check(S.isPattern(/^(?:[a-z][a-z0-9]*(?:-[a-z0-9]+)*\/)?[A-Z][A-Za-z0-9]
|
|
105
|
+
const MutantId = S.String.check(S.isPattern(/^[0-9a-f]{16}$/u, { expected: "a 16-character lowercase hexadecimal mutant id" })).pipe(S.brand("MutantId"));
|
|
106
|
+
const MutatorNameGrammar = S.String.check(S.isPattern(/^(?:[a-z][a-z0-9]*(?:-[a-z0-9]+)*\/)?[A-Z][A-Za-z0-9]*$/u, { expected: "a PascalCase mutator name, optionally prefixed by a lowercase kebab-case namespace and a slash" }));
|
|
107
107
|
const MutatorName = MutatorNameGrammar.pipe(S.brand("MutatorName"));
|
|
108
|
-
const CanonicalFileName = S.String.pipe(S.decodeTo(S.String.pipe(S.check(S.isPattern(/^[^\\]+$/)), S.brand("CanonicalFileName")), {
|
|
108
|
+
const CanonicalFileName = S.String.pipe(S.decodeTo(S.String.pipe(S.check(S.isPattern(/^[^\\]+$/u)), S.brand("CanonicalFileName")), {
|
|
109
109
|
decode: SchemaGetter$1.transform((fileName) => fileName.replace(/\\/g, "/")),
|
|
110
110
|
encode: SchemaGetter$1.transform((canonical) => canonical)
|
|
111
111
|
}));
|
|
@@ -215,9 +215,9 @@ const IgnoreRuleId = S.Literals(RULE_IDS);
|
|
|
215
215
|
const SEPARATOR = ": ";
|
|
216
216
|
const asLiteralPattern = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
217
217
|
const REASON_SOURCE = `^(?:${RULE_IDS.map(asLiteralPattern).join("|")})${SEPARATOR}[\\s\\S]*$`;
|
|
218
|
-
const IgnoreStatusReasonText = S.String.check(S.isPattern(new RegExp(REASON_SOURCE), { arbitraryConstraint: { patterns: [{
|
|
218
|
+
const IgnoreStatusReasonText = S.String.check(S.isPattern(new RegExp(REASON_SOURCE, "u"), { arbitraryConstraint: { patterns: [{
|
|
219
219
|
source: REASON_SOURCE,
|
|
220
|
-
flags: ""
|
|
220
|
+
flags: "u"
|
|
221
221
|
}] } }));
|
|
222
222
|
const ReasonPartsSchema = S.Struct({
|
|
223
223
|
ruleId: IgnoreRuleId,
|
|
@@ -234,7 +234,7 @@ const IgnoreStatusReason = IgnoreStatusReasonText.pipe(S.decodeTo(ReasonPartsSch
|
|
|
234
234
|
decode: partsOf$1,
|
|
235
235
|
encode: textOf$1
|
|
236
236
|
})));
|
|
237
|
-
const Id = S.String.check(S.isPattern(/^[a-z][a-z0-9]*(?:-[a-z0-9]+)
|
|
237
|
+
const Id = S.String.check(S.isPattern(/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u, { expected: "a lowercase kebab-case catalog entry id" })).pipe(S.brand("MutatorCatalogId"));
|
|
238
238
|
const Tier = S.Literals(["default", "optIn"]);
|
|
239
239
|
const Definition = S.NonEmptyString;
|
|
240
240
|
/**
|
|
@@ -257,7 +257,7 @@ const carriesASnippet = S.makeFilter((entry) => {
|
|
|
257
257
|
return entry.examples.find((example) => example.before.length === 0) === void 0 ? void 0 : `mutator catalog entry "${entry.id}" carries an example with an empty before`;
|
|
258
258
|
});
|
|
259
259
|
const Entry = EntryShape.check(carriesExamples, carriesASnippet);
|
|
260
|
-
const Provider = S.String.check(S.isPattern(/^(?:stryker|[a-z][a-z0-9]*(?:-[a-z0-9]+)*)
|
|
260
|
+
const Provider = S.String.check(S.isPattern(/^(?:stryker|[a-z][a-z0-9]*(?:-[a-z0-9]+)*)$/u, { expected: "the stock provider \"stryker\" or a lowercase kebab-case plugin namespace" })).pipe(S.brand("MutatorProvider"));
|
|
261
261
|
const CatalogShape = S.Struct({
|
|
262
262
|
provider: Provider,
|
|
263
263
|
entries: S.NonEmptyArray(Entry)
|
|
@@ -544,7 +544,7 @@ const WarningOptions = openStruct({
|
|
|
544
544
|
slow: defaulted(S.Boolean, true)
|
|
545
545
|
});
|
|
546
546
|
const ConcurrencyCount = S.Int.pipe(S.check(S.isGreaterThanOrEqualTo(1)));
|
|
547
|
-
const ConcurrencyPercent = S.String.pipe(S.check(S.isPattern(/^(100|[1-9]?[0-9])%$/)));
|
|
547
|
+
const ConcurrencyPercent = S.String.pipe(S.check(S.isPattern(/^(100|[1-9]?[0-9])%$/u)));
|
|
548
548
|
const pluginSpecifierArbitrary = S.link()(S.Literals([
|
|
549
549
|
"file:///project/node_modules/@systemfsoftware/stryker-js-angular/index.mjs",
|
|
550
550
|
"file:///home/user/project/plugins/custom-plugin.mjs",
|
|
@@ -929,7 +929,7 @@ const MutationTestResult = S.StructWithRest(S.Struct({
|
|
|
929
929
|
"2.0",
|
|
930
930
|
"2.0.0"
|
|
931
931
|
]
|
|
932
|
-
}).check(S.isPattern(/* @__PURE__ */ new RegExp("^([1-2])(\\.(([1-9]\\d*)|0)){0,2}$")).annotate({ "expected": "a string matching the RegExp ^([1-2])(\\.(([1-9]\\d*)|0)){0,2}$" })),
|
|
932
|
+
}).check(S.isPattern(/* @__PURE__ */ new RegExp("^([1-2])(\\.(([1-9]\\d*)|0)){0,2}$", "u")).annotate({ "expected": "a string matching the RegExp ^([1-2])(\\.(([1-9]\\d*)|0)){0,2}$" })),
|
|
933
933
|
"files": FileResultDictionary,
|
|
934
934
|
"testFiles": S.optionalKey(TestFileDefinitionDictionary),
|
|
935
935
|
"thresholds": Thresholds,
|
|
@@ -1107,9 +1107,9 @@ var ReporterFailed = class extends S.TaggedError()("ReporterFailed", {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
const TraceparentHeader = S.Literal("traceparent");
|
|
1109
1109
|
const TracestateHeader = S.Literal("tracestate");
|
|
1110
|
-
const VERSION = S.String.pipe(S.check(S.isPattern(/^([0-9a-e][0-9a-f]|[0-9a-f][0-9a-e])$/)));
|
|
1111
|
-
const TRACE_ID = S.String.pipe(S.check(S.isPattern(/^[0-9a-f]*[1-9a-f][0-9a-f]*$/)), S.check(S.
|
|
1112
|
-
const SPAN_ID = S.String.pipe(S.check(S.isPattern(/^[0-9a-f]*[1-9a-f][0-9a-f]*$/)), S.check(S.
|
|
1110
|
+
const VERSION = S.String.pipe(S.check(S.isPattern(/^([0-9a-e][0-9a-f]|[0-9a-f][0-9a-e])$/u)));
|
|
1111
|
+
const TRACE_ID = S.String.pipe(S.check(S.isPattern(/^[0-9a-f]*[1-9a-f][0-9a-f]*$/u)), S.check(S.isBetweenLength(32, 32)));
|
|
1112
|
+
const SPAN_ID = S.String.pipe(S.check(S.isPattern(/^[0-9a-f]*[1-9a-f][0-9a-f]*$/u)), S.check(S.isBetweenLength(16, 16)));
|
|
1113
1113
|
const TraceContextPartsSchema = S.Struct({
|
|
1114
1114
|
version: VERSION,
|
|
1115
1115
|
traceId: TRACE_ID,
|
|
@@ -1173,7 +1173,7 @@ const Traceparent = S.String.pipe(S.decodeTo(TraceparentPartsSchema, SchemaTrans
|
|
|
1173
1173
|
})));
|
|
1174
1174
|
const TRACESTATE_MEMBER = "[a-z][_0-9a-z\\-*/]{0,255}=[\\x20-\\x2b\\x2d-\\x3c\\x3e-\\x7e]{0,255}";
|
|
1175
1175
|
const TRACESTATE_OWS = "[ \\t]*";
|
|
1176
|
-
const TRACESTATE = new RegExp(`^${TRACESTATE_MEMBER}(${TRACESTATE_OWS},${TRACESTATE_OWS}${TRACESTATE_MEMBER}){0,31}
|
|
1176
|
+
const TRACESTATE = new RegExp(`^${TRACESTATE_MEMBER}(${TRACESTATE_OWS},${TRACESTATE_OWS}${TRACESTATE_MEMBER}){0,31}$`, "u");
|
|
1177
1177
|
const Tracestate = S.String.pipe(S.check(S.isPattern(TRACESTATE, { expected: "a W3C tracestate: comma-separated key=value members" })));
|
|
1178
1178
|
const WorkerPluginKind = S.Literals([
|
|
1179
1179
|
"TestRunner",
|
|
@@ -1222,7 +1222,7 @@ const BoundaryErrorSchema = S.Union([
|
|
|
1222
1222
|
CheckerFailed,
|
|
1223
1223
|
ReporterFailed
|
|
1224
1224
|
]);
|
|
1225
|
-
const WorkerEntryUrl = S.String.check(S.isPattern(/^file
|
|
1225
|
+
const WorkerEntryUrl = S.String.check(S.isPattern(/^file:\/\//u, { expected: "a file: URL of the worker program" }));
|
|
1226
1226
|
const WorkerPluginSpawnSchema = S.Struct({
|
|
1227
1227
|
kind: WorkerPluginKind,
|
|
1228
1228
|
entrypoint: WorkerEntryUrl
|
|
@@ -1358,7 +1358,7 @@ var Reporter_exports = /* @__PURE__ */ __exportAll({
|
|
|
1358
1358
|
const HitLimitReasonPrefix = S.Literal("Hit limit reached");
|
|
1359
1359
|
const WallClockTimeoutReason = S.Literal("wall-clock-timeout");
|
|
1360
1360
|
const HIT_LIMIT_REASON_PREFIX = HitLimitReasonPrefix.literal;
|
|
1361
|
-
const HitLimitReasonText = S.String.check(S.
|
|
1361
|
+
const HitLimitReasonText = S.String.check(S.isStartingWith(HIT_LIMIT_REASON_PREFIX, { arbitraryConstraint: {
|
|
1362
1362
|
patterns: [{
|
|
1363
1363
|
source: `^${HIT_LIMIT_REASON_PREFIX}[\\s\\S]*$`,
|
|
1364
1364
|
flags: ""
|
package/dist/promises.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as mod_d_exports$5 } from "./index-
|
|
2
|
-
import { l as MutationTestDone } from "./RunEnvironment.service-
|
|
1
|
+
import { i as mod_d_exports$5 } from "./index-Cf9G6kA8.mjs";
|
|
2
|
+
import { l as MutationTestDone } from "./RunEnvironment.service-B1bsWOQ9.mjs";
|
|
3
3
|
//#region src/drivers/promise.d.ts
|
|
4
4
|
export declare const run: ((targetMutatePatterns?: readonly string[]) => (options: mod_d_exports$5.PartialStrykerOptions) => Promise<MutationTestDone>) & ((options: mod_d_exports$5.PartialStrykerOptions, targetMutatePatterns?: readonly string[]) => Promise<MutationTestDone>);
|
|
5
5
|
//#endregion
|
package/dist/promises.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as nodePlatformLayer, t as strykerCell } from "./run-stages-
|
|
1
|
+
import { C as nodePlatformLayer, t as strykerCell } from "./run-stages-aBT_QAfO.mjs";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
4
|
//#region src/drivers/promise.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll$4 } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import { a as MutatorCatalog_exports, c as Plugin_exports, d as TestRunner_exports, f as Trace_exports$1, i as Mutant_exports, l as Report_exports, n as mergeConfigs, o as MutatorProvider_exports, r as Checker_exports, s as Options_exports, t as mergeConfig, u as Reporter_exports } from "./merge-config-
|
|
2
|
+
import { a as MutatorCatalog_exports, c as Plugin_exports, d as TestRunner_exports, f as Trace_exports$1, i as Mutant_exports, l as Report_exports, n as mergeConfigs, o as MutatorProvider_exports, r as Checker_exports, s as Options_exports, t as mergeConfig, u as Reporter_exports } from "./merge-config-zsGl1aWc.mjs";
|
|
3
3
|
import { n as StageError, t as PrepareError } from "./Run.schema-DuaneDGd.mjs";
|
|
4
4
|
import { Blueprint, Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
5
5
|
import * as S from "effect/Schema";
|
|
@@ -11,7 +11,7 @@ import * as Context from "effect/Context";
|
|
|
11
11
|
import { Boolean as Boolean$1, Match, Option, Predicate, Record, Schema, SchemaGetter, SchemaTransformation } from "effect";
|
|
12
12
|
import * as Effect$1 from "effect/Effect";
|
|
13
13
|
import * as Boolean$1$1 from "effect/Boolean";
|
|
14
|
-
import * as RpcMiddleware from "effect/
|
|
14
|
+
import * as RpcMiddleware from "effect/rpc/RpcMiddleware";
|
|
15
15
|
import * as Arr from "effect/Array";
|
|
16
16
|
import * as Match$1 from "effect/Match";
|
|
17
17
|
import * as Result from "effect/Result";
|
|
@@ -35,18 +35,18 @@ import * as Scope from "effect/Scope";
|
|
|
35
35
|
import * as HashMap from "effect/HashMap";
|
|
36
36
|
import * as MutableHashMap from "effect/MutableHashMap";
|
|
37
37
|
import * as api from "@opentelemetry/api";
|
|
38
|
+
import * as Headers from "effect/http/Headers";
|
|
38
39
|
import * as Tracer from "effect/Tracer";
|
|
39
|
-
import * as
|
|
40
|
-
import * as
|
|
41
|
-
import * as
|
|
42
|
-
import * as SocketServer from "effect/unstable/socket/SocketServer";
|
|
40
|
+
import * as RpcSerialization from "effect/rpc/RpcSerialization";
|
|
41
|
+
import * as RpcServer from "effect/rpc/RpcServer";
|
|
42
|
+
import * as SocketServer from "effect/socket/SocketServer";
|
|
43
43
|
import * as Duration from "effect/Duration";
|
|
44
44
|
import * as Fiber from "effect/Fiber";
|
|
45
45
|
import * as HashSet from "effect/HashSet";
|
|
46
46
|
import * as PubSub from "effect/PubSub";
|
|
47
47
|
import * as SynchronizedRef from "effect/SynchronizedRef";
|
|
48
|
+
import * as RpcClient from "effect/rpc/RpcClient";
|
|
48
49
|
import * as Schedule from "effect/Schedule";
|
|
49
|
-
import * as RpcClient from "effect/unstable/rpc/RpcClient";
|
|
50
50
|
import * as DateTime from "effect/DateTime";
|
|
51
51
|
import * as Ref from "effect/Ref";
|
|
52
52
|
import * as Sink from "effect/Sink";
|
|
@@ -58,11 +58,11 @@ import { NodeFileSystem, NodePath, NodeSocket, NodeStdio } from "@effect/platfor
|
|
|
58
58
|
import * as NodeChildProcessSpawner from "@effect/platform-node-shared/NodeChildProcessSpawner";
|
|
59
59
|
import * as NodeCrypto from "@effect/platform-node-shared/NodeCrypto";
|
|
60
60
|
import * as Crypto from "effect/Crypto";
|
|
61
|
-
import * as ChildProcess from "effect/
|
|
62
|
-
import * as ChildProcessSpawner from "effect/
|
|
61
|
+
import * as ChildProcess from "effect/process/ChildProcess";
|
|
62
|
+
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
|
|
63
63
|
import * as FiberSet from "effect/FiberSet";
|
|
64
|
-
import { RpcClientError } from "effect/
|
|
65
|
-
import * as Socket from "effect/
|
|
64
|
+
import { RpcClientError } from "effect/rpc/RpcClientError";
|
|
65
|
+
import * as Socket from "effect/socket/Socket";
|
|
66
66
|
import * as Equivalence from "effect/Equivalence";
|
|
67
67
|
import { badArgument } from "effect/PlatformError";
|
|
68
68
|
import * as MutableHashSet from "effect/MutableHashSet";
|
|
@@ -192,7 +192,7 @@ const RunPhase = S.Literals([
|
|
|
192
192
|
"dry-run",
|
|
193
193
|
"mutation-test"
|
|
194
194
|
]);
|
|
195
|
-
const RunId = S.String.pipe(S.check(S.isPattern(/^[0-9A-HJKMNP-TV-Z]{26}$/)), S.brand("RunId"));
|
|
195
|
+
const RunId = S.String.pipe(S.check(S.isPattern(/^[0-9A-HJKMNP-TV-Z]{26}$/u)), S.brand("RunId"));
|
|
196
196
|
var RunStarted = class extends S.TaggedClass()("stream", {
|
|
197
197
|
schemaVersion: StreamSchemaVersion,
|
|
198
198
|
runId: RunId,
|
|
@@ -443,8 +443,8 @@ var RunEvent_exports = /* @__PURE__ */ __exportAll$3({
|
|
|
443
443
|
VerdictReached: () => VerdictReached,
|
|
444
444
|
VerdictThresholds: () => VerdictThresholds
|
|
445
445
|
});
|
|
446
|
-
const SpanName = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_-]*(?:\.[A-Za-z][A-Za-z0-9_-]*)
|
|
447
|
-
const SpanAttributeKey = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_.-]
|
|
446
|
+
const SpanName = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_-]*(?:\.[A-Za-z][A-Za-z0-9_-]*)*$/u, { expected: "a dot-separated span name whose segments start with a letter, such as \"stryker.checker.check\"" })).pipe(S.brand("SpanName"));
|
|
447
|
+
const SpanAttributeKey = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_.-]*$/u, { expected: "an attribute key starting with a letter, such as \"stryker.checker.name\"" })).pipe(S.brand("SpanAttributeKey"));
|
|
448
448
|
const SpanAttributeText = S.String;
|
|
449
449
|
const SpanAttributeCount = S.Finite;
|
|
450
450
|
const SpanRunStatus = S.Literals([
|
|
@@ -1959,7 +1959,7 @@ const wireRecordOf = (mutant) => Result.mapError(S.decodeResult(CheckerMutantFro
|
|
|
1959
1959
|
reason: error.message
|
|
1960
1960
|
}));
|
|
1961
1961
|
const partitionMutantsForWire = (plans) => {
|
|
1962
|
-
const [
|
|
1962
|
+
const [wire, undescribable] = Arr.separate(Arr.map(plans, (plan) => wireRecordOf(plan.mutant)));
|
|
1963
1963
|
return {
|
|
1964
1964
|
wire,
|
|
1965
1965
|
undescribable
|
|
@@ -1977,7 +1977,7 @@ const lookupOf = (partitioned) => ({
|
|
|
1977
1977
|
});
|
|
1978
1978
|
const wireOrFallbackOf = (mutant, lookup) => Option$1.getOrElse(Option$1.map(Option$1.fromUndefinedOr(lookup.wireById.get(mutant.id)), Result.succeed), () => Option$1.getOrElse(Option$1.map(Option$1.fromUndefinedOr(lookup.undescribableById.get(mutant.id)), Result.fail), () => wireRecordOf(mutant)));
|
|
1979
1979
|
const selectedFromLookup = (plans, lookup) => {
|
|
1980
|
-
const [
|
|
1980
|
+
const [wire, undescribable] = Arr.separate(Arr.map(plans, (plan) => wireOrFallbackOf(plan.mutant, lookup)));
|
|
1981
1981
|
return {
|
|
1982
1982
|
wire,
|
|
1983
1983
|
undescribable
|
|
@@ -4717,8 +4717,8 @@ var ErrorText_exports = /* @__PURE__ */ __exportAll$2({
|
|
|
4717
4717
|
causeTextOf: () => causeTextOf,
|
|
4718
4718
|
errorTextOf: () => errorTextOf$2
|
|
4719
4719
|
});
|
|
4720
|
-
const MutatorNameSchema = S.String.pipe(S.check(S.isPattern(/^(?:[a-z][a-z0-9]*(?:-[a-z0-9]+)*\/)?[a-zA-Z][a-zA-Z0-9]*(?: [a-zA-Z][a-zA-Z0-9]*)*$/)));
|
|
4721
|
-
const DirectiveReasonSchema = S.String.pipe(S.check(S.isPattern(/^\S(?:[^\r\n\u2028\u2029]*\S)?$/)));
|
|
4720
|
+
const MutatorNameSchema = S.String.pipe(S.check(S.isPattern(/^(?:[a-z][a-z0-9]*(?:-[a-z0-9]+)*\/)?[a-zA-Z][a-zA-Z0-9]*(?: [a-zA-Z][a-zA-Z0-9]*)*$/u)));
|
|
4721
|
+
const DirectiveReasonSchema = S.String.pipe(S.check(S.isPattern(/^\S(?:[^\r\n\u2028\u2029]*\S)?$/u)));
|
|
4722
4722
|
const DirectiveSchema = S.Struct({
|
|
4723
4723
|
action: S.Literals(["disable", "restore"]),
|
|
4724
4724
|
scope: S.Literals(["next-line", "block"]),
|
|
@@ -11225,7 +11225,7 @@ const strykerOutputFilesOf = (options) => [
|
|
|
11225
11225
|
];
|
|
11226
11226
|
//#endregion
|
|
11227
11227
|
//#region package.json
|
|
11228
|
-
var version = "
|
|
11228
|
+
var version = "15.0.0";
|
|
11229
11229
|
//#endregion
|
|
11230
11230
|
//#region src/stryker-package.schema.ts
|
|
11231
11231
|
var StrykerPackage = class extends S.Class("StrykerPackage")({
|
|
@@ -11406,7 +11406,7 @@ const mapRunResult = (mutant, result) => Match$1.value(result).pipe(Match$1.disc
|
|
|
11406
11406
|
})), Match$1.discriminator("status")("timeout", (timedOut) => reportMutant(mutant, "Timeout", reasonedOutcomeOf(timedOut.reason))), Match$1.discriminator("status")("survived", (survived) => reportMutant(mutant, "Survived", { testsCompleted: survived.nrOfTests })), Match$1.exhaustive);
|
|
11407
11407
|
const uniqueNames = (names) => Arr.dedupe(Arr.filter(names, (name) => name !== void 0));
|
|
11408
11408
|
const partitionByFile = (files, fileNames) => {
|
|
11409
|
-
const [
|
|
11409
|
+
const [present, missing] = Arr.separate(Arr.map(fileNames, (fileName) => Option$1.match(MutableHashMap.get(files, fileName), {
|
|
11410
11410
|
onNone: () => Result.fail(fileName),
|
|
11411
11411
|
onSome: (file) => Result.succeed(file)
|
|
11412
11412
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
"node": ">=24.13.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@effect/opentelemetry": "4.0.0
|
|
27
|
-
"@effect/platform-node": "4.0.0
|
|
28
|
-
"@effect/platform-node-shared": "4.0.0
|
|
26
|
+
"@effect/opentelemetry": "^4.0.0",
|
|
27
|
+
"@effect/platform-node": "^4.0.0",
|
|
28
|
+
"@effect/platform-node-shared": "^4.0.0",
|
|
29
29
|
"@noble/hashes": "^2",
|
|
30
30
|
"@opentelemetry/api": "^1.9.0",
|
|
31
31
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.222.0",
|
|
32
32
|
"@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
|
|
33
33
|
"@opentelemetry/sdk-metrics": "^2.11.0",
|
|
34
34
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
35
|
-
"@systemfsoftware/effect-cell-types": "^
|
|
36
|
-
"@systemfsoftware/stryker-js-vm-runner": "npm:@systemfsoftware/stryker-js-vitest-runner@^8.0.
|
|
35
|
+
"@systemfsoftware/effect-cell-types": "^12.0.0",
|
|
36
|
+
"@systemfsoftware/stryker-js-vm-runner": "npm:@systemfsoftware/stryker-js-vitest-runner@^8.0.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"effect": "4.0.0
|
|
39
|
+
"effect": "^4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@effect/tsgo": "^0.45.0",
|
|
@@ -44,18 +44,17 @@
|
|
|
44
44
|
"@oxc-parser/binding-wasm32-wasi": "^0.150.0",
|
|
45
45
|
"@std/jsonc": "npm:@jsr/std__jsonc@^1",
|
|
46
46
|
"@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
|
|
47
|
-
"@systemfsoftware/differential-spec": "^0.
|
|
48
|
-
"@systemfsoftware/effect-gherkin-spec": "^
|
|
49
|
-
"@systemfsoftware/effect-schema-law": "^
|
|
50
|
-
"@systemfsoftware/
|
|
51
|
-
"@systemfsoftware/oxlint-config-recommended": "^3.4.0",
|
|
47
|
+
"@systemfsoftware/differential-spec": "^1.0.0",
|
|
48
|
+
"@systemfsoftware/effect-gherkin-spec": "^7.0.0",
|
|
49
|
+
"@systemfsoftware/effect-schema-law": "^5.0.0",
|
|
50
|
+
"@systemfsoftware/oxlint-config-recommended": "^4.0.0",
|
|
52
51
|
"@systemfsoftware/stryker-ignorer-effect-schema-declarations": "latest",
|
|
53
52
|
"@systemfsoftware/stryker-ignorer-in-source-vitest-block": "latest",
|
|
54
53
|
"@systemfsoftware/stryker-js": "latest",
|
|
55
54
|
"@systemfsoftware/stryker-js-typescript-checker": "latest",
|
|
56
55
|
"@systemfsoftware/stryker-js-vitest-runner": "latest",
|
|
57
56
|
"@systemfsoftware/tsconfig": "^2.0.1",
|
|
58
|
-
"@systemfsoftware/vitest": "^0.
|
|
57
|
+
"@systemfsoftware/vitest": "^1.0.0",
|
|
59
58
|
"@types/node": "^24",
|
|
60
59
|
"@vitest/browser-playwright": "^5",
|
|
61
60
|
"@vitest/coverage-v8": "^5",
|
|
@@ -71,16 +70,16 @@
|
|
|
71
70
|
"tsdown": "^0.23.0",
|
|
72
71
|
"typescript": "^7",
|
|
73
72
|
"vitest": "^5",
|
|
74
|
-
"@systemfsoftware/stryker-config": "^0.1.0",
|
|
75
73
|
"@systemfsoftware/stryker-framework-interface": "^0.0.0",
|
|
76
74
|
"@systemfsoftware/stryker-ignorer-interface": "^0.1.1",
|
|
77
|
-
"@systemfsoftware/stryker-
|
|
78
|
-
"@systemfsoftware/stryker-js-
|
|
79
|
-
"@systemfsoftware/stryker-js-
|
|
80
|
-
"@systemfsoftware/stryker-js-html-reporter": "^
|
|
81
|
-
"@systemfsoftware/
|
|
75
|
+
"@systemfsoftware/stryker-config": "^0.1.0",
|
|
76
|
+
"@systemfsoftware/stryker-js-cli-contract": "^0.2.0",
|
|
77
|
+
"@systemfsoftware/stryker-js-instrumenter": "^12.0.0",
|
|
78
|
+
"@systemfsoftware/stryker-js-html-reporter": "^6.0.0",
|
|
79
|
+
"@systemfsoftware/stryker-js-plugin-interface": "^12.0.0",
|
|
80
|
+
"@systemfsoftware/stryker-js-plugin-runtime": "^7.0.0",
|
|
82
81
|
"@systemfsoftware/tsdown-config": "^0.1.0",
|
|
83
|
-
"@systemfsoftware/
|
|
82
|
+
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
84
83
|
},
|
|
85
84
|
"publishConfig": {
|
|
86
85
|
"access": "public",
|