@systemfsoftware/stryker-js-vitest-runner 10.1.0 → 10.1.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,9 @@
1
1
  # @systemfsoftware/stryker-js-vitest-runner
2
2
 
3
+ ## 10.1.1
4
+
5
+ The workspace dogfoods @systemfsoftware/stryker-js 23.0.0 and the TypeScript checker 10.0.0, and every package resolves one @systemfsoftware/effect-cell-types (12.1.4). The TypeScript checker and the vitest runner bundle 12.1.4 in place of 12.0.0, and stryker-js and the checker bundle @jsr/std__jsonc 1.0.3 in place of 1.0.2. Every package that takes @systemfsoftware/effect-cell-types from the catalog publishes the range ^12.1.4 in place of ^12.0.0.
6
+
3
7
  ## 10.1.0
4
8
 
5
9
  The runner's worker resolves `vitest` from the sandbox it runs in, so a runner installed outside the project, such as the flake's `stryker` package, runs the project's own vitest. It used to resolve vitest from its own install location and failed with `ERR_MODULE_NOT_FOUND` when nothing installed vitest beside it.
package/dist/worker.mjs CHANGED
@@ -55850,7 +55850,7 @@ Literals([
55850
55850
  "FinalizerEscape"
55851
55851
  ]);
55852
55852
  //#endregion
55853
- //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.0.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/rolldown-runtime-D7D4PA-g.mjs
55853
+ //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.1.4_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/rolldown-runtime-D7D4PA-g.mjs
55854
55854
  var __defProp$1 = Object.defineProperty;
55855
55855
  var __exportAll$1 = (all, no_symbols) => {
55856
55856
  let target = {};
@@ -55862,7 +55862,7 @@ var __exportAll$1 = (all, no_symbols) => {
55862
55862
  return target;
55863
55863
  };
55864
55864
  //#endregion
55865
- //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.0.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
55865
+ //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.1.4_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
55866
55866
  var Blueprint_exports = /* @__PURE__ */ __exportAll$1({
55867
55867
  IndexId: () => IndexId,
55868
55868
  make: () => make$3$1
@@ -59575,7 +59575,7 @@ const isEmptyNumber = (value$15) => value(value$15).pipe(when(0, () => true), or
59575
59575
  const isEmptyError = (error) => value(error).pipe(when(_undefined, () => true), when(_null, () => true), when(string, (text) => text.length === 0), when(number, isEmptyNumber), when(boolean, (value) => !value), orElse$1(() => false));
59576
59576
  const formatErrnoException = (error) => value(error.stack).pipe(when(hasText, (stack) => `${error.name}: ${error.code} (${error.syscall}) ${stack}`), orElse$1(() => `${error.name}: ${error.code} (${error.syscall})`));
59577
59577
  const formatError = (error) => value(error.stack).pipe(when(hasText, (stack) => `${error.name}: ${error.message}\n${stack}`), orElse$1(() => `${error.name}: ${error.message}`));
59578
- const isJsonPrimitive = (value$10) => value(value$10).pipe(when(number, () => true), when(boolean, () => true), when(bigint, () => true), orElse$1(() => false));
59578
+ const isJsonPrimitive = (value$9) => value(value$9).pipe(when(number, () => true), when(boolean, () => true), when(bigint, () => true), orElse$1(() => false));
59579
59579
  const jsonText = (error) => getOrElse(try_$2({
59580
59580
  try: () => textIfNonEmpty(JSON.stringify(error)),
59581
59581
  catch: () => void 0
@@ -59606,13 +59606,13 @@ function nonStringTextOf(error) {
59606
59606
  return primitiveJsonOf(error) ?? stringifyRest(error);
59607
59607
  }
59608
59608
  const errorText = (error) => value(error).pipe(when(isErrnoException, formatErrnoException), orElse$1(() => formatError(error)));
59609
- const errorNameOf = (value$9) => value(value$9).pipe(when(instanceOf(Error), (error) => textIfNonEmpty(error.name)), orElse$1(() => void 0));
59610
- const tagOf = (value$7) => value(textIfNonEmpty(fieldOf$1(value$7, "_tag"))).pipe(when(hasText, (tag) => tag), orElse$1(() => errorNameOf(value$7)));
59609
+ const errorNameOf = (value$8) => value(value$8).pipe(when(instanceOf(Error), (error) => textIfNonEmpty(error.name)), orElse$1(() => void 0));
59610
+ const tagOf = (value$6) => value(textIfNonEmpty(fieldOf$1(value$6, "_tag"))).pipe(when(hasText, (tag) => tag), orElse$1(() => errorNameOf(value$6)));
59611
59611
  const textWithNested = (own, nested) => value(own).pipe(when(hasText, (text) => appendNested(text, nested)), orElse$1(() => nested));
59612
59612
  const appendNested = (own, nested) => value(nested).pipe(when(hasText, (text) => `${own}: ${text}`), orElse$1(() => own));
59613
59613
  const errorMessage = (error) => value(error.message.length > 0).pipe(when(true, () => error.message), orElse$1(() => tagOf(error)));
59614
59614
  const errorMessageOrTag = (value$21) => value(value$21).pipe(when(instanceOf(Error), errorMessage), orElse$1(() => tagOf(value$21)));
59615
- const messageText = (value$8) => value(textIfNonEmpty(fieldOf$1(value$8, "message"))).pipe(when(hasText, (message) => message), orElse$1(() => errorMessageOrTag(value$8)));
59615
+ const messageText = (value$7) => value(textIfNonEmpty(fieldOf$1(value$7, "message"))).pipe(when(hasText, (message) => message), orElse$1(() => errorMessageOrTag(value$7)));
59616
59616
  const ownCauseText = (value$20) => value(textIfNonEmpty(fieldOf$1(value$20, "reason"))).pipe(when(hasText, (reason) => reason), orElse$1(() => messageText(value$20)));
59617
59617
  const isPastDepth = (depth) => depth > 4;
59618
59618
  const isMissingCause = (cause) => cause === void 0 || cause === null;
@@ -60591,7 +60591,7 @@ const identifierText = (node) => match$6(fromNullishOr(node), {
60591
60591
  onNone: () => none(),
60592
60592
  onSome: (present) => value(present).pipe(when(isNamedIdentifier, (name) => some(name.name)), when(isStringLiteral$1, (literal) => literalValueText(literal.value)), orElse$1(() => none()))
60593
60593
  });
60594
- const literalValueText = (value$12) => value(value$12).pipe(when(isString$1, (text) => some(text)), orElse$1(() => none()));
60594
+ const literalValueText = (value$11) => value(value$11).pipe(when(isString$1, (text) => some(text)), orElse$1(() => none()));
60595
60595
  const moduleExportName = (name) => getOrElse$1(identifierText(name), () => "");
60596
60596
  const staticMemberName = (member) => value(member.computed).pipe(when(false, () => identifierText(member.property)), orElse$1(() => none()));
60597
60597
  const nodesOutsideFunctions = (root) => {
@@ -62391,7 +62391,7 @@ const literalWithoutRegex = (node) => match$6(fromNullishOr(node.bigint), {
62391
62391
  const valueLiteralText = (value$24) => value(value$24).pipe(when(string, (v) => JSON.stringify(v)), orElse$1(nonStringLiteralText));
62392
62392
  const nonStringLiteralText = (value$14) => value(value$14).pipe(when(number, (v) => String(v)), orElse$1(booleanOrBigintText));
62393
62393
  const booleanOrBigintText = (value$5) => value(value$5).pipe(when(boolean, (v) => String(v)), orElse$1(bigintText));
62394
- const bigintText = (value$13) => value(value$13).pipe(when((candidate) => typeof candidate === "bigint", (v) => `${String(v)}n`), orElse$1(() => "null"));
62394
+ const bigintText = (value$12) => value(value$12).pipe(when((candidate) => typeof candidate === "bigint", (v) => `${String(v)}n`), orElse$1(() => "null"));
62395
62395
  const flagText = (present, text) => match$1(isTruthy(present), {
62396
62396
  onTrue: () => text,
62397
62397
  onFalse: () => ""
@@ -62406,7 +62406,7 @@ const objectExpressionText = (ctx, node) => match$1(node.properties.length === 0
62406
62406
  onFalse: () => `{ ${nodeListText(ctx, node.properties, PREC.Sequence)} }`
62407
62407
  });
62408
62408
  const propertyText = (ctx, node) => value(propertyFormOf(node)).pipe(when("accessor", () => `${node.kind} ${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}${functionValueTailText(ctx, node.value)}`), when("method", () => `${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}${functionValueTailText(ctx, node.value)}`), when("shorthand", () => identifierNameText(node.key)), when("shorthandDefault", () => shorthandDefaultPropertyText(ctx, node)), orElse$1(() => `${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}: ${printNodePrec(ctx, node.value, PREC.Assignment)}`));
62409
- const functionValueTailText = (ctx, value$11) => value(value$11).pipe(when(isFunctionNode, (fn) => functionTailText(ctx, fn)), orElse$1(() => ""));
62409
+ const functionValueTailText = (ctx, value$10) => value(value$10).pipe(when(isFunctionNode, (fn) => functionTailText(ctx, fn)), orElse$1(() => ""));
62410
62410
  const shorthandDefaultPropertyText = (ctx, node) => value(node.value).pipe(when(isAssignmentPattern, (value) => `${identifierNameText(node.key)} = ${printNodePrec(ctx, value.right, PREC.Assignment)}`), orElse$1(() => ""));
62411
62411
  const propertyKeyText = (ctx, key, computed, computedPrec) => match$1(computed, {
62412
62412
  onTrue: () => `[${dispatchNode(ctx, key, computedPrec)}]`,
@@ -63535,21 +63535,12 @@ var MutantKept = class extends TaggedClass()("MutantKept", {}) {
63535
63535
  [MutantSetOutcomeTypeId] = MutantSetOutcomeTypeId;
63536
63536
  };
63537
63537
  const MutantSetDecision = ArraySchema(Union([MutantSuppressed, MutantKept]));
63538
- const canonicalForm = (text) => stripOuterParentheses(text.trim());
63539
- const stripOuterParentheses = (text) => value(wrapsWhole(text)).pipe(when(true, () => stripOuterParentheses(text.slice(1, -1).trim())), orElse$1(() => text));
63540
- const parenDepthDelta = (character) => value(character).pipe(when("(", () => 1), when(")", () => -1), orElse$1(() => 0));
63541
- const depthsAfter = (text) => text.split("").reduce((depths, character) => [...depths, getOrElse$1(last(depths), () => 0) + parenDepthDelta(character)], []);
63542
- const wrapsWhole = (text) => {
63543
- const depths = depthsAfter(text);
63544
- return [
63545
- text.startsWith("("),
63546
- text.endsWith(")"),
63547
- depths.length > 0,
63548
- depths.slice(0, -1).every((depth) => depth >= 1),
63549
- getOrElse$1(last(depths), () => 0) === 0
63550
- ].every(Boolean);
63551
- };
63552
- const defaultOnly = (policy, value$6) => value(policy).pipe(when("full", () => none()), when("default", value$6), exhaustive);
63538
+ /**
63539
+ * The code a candidate plants, as the instrumenter's printer wrote it from the node the placers plant. Two candidates
63540
+ * plant the same code exactly when these texts are equal, so the policy compares text and reparses nothing.
63541
+ */
63542
+ const canonicalForm = (text) => text.trim();
63543
+ const defaultOnly = (policy, value$13) => value(policy).pipe(when("full", () => none()), when("default", value$13), exhaustive);
63553
63544
  const printedAs = (code) => canonicalForm(code);
63554
63545
  const printsSomething = (code) => printedAs(code).length > 0;
63555
63546
  const samePrintedCode = (left, right) => [printsSomething(left), printedAs(left) === printedAs(right)].every(Boolean);
@@ -64270,6 +64261,7 @@ const mutablesFor = (frame, location, context) => {
64270
64261
  const ignorerAnswer = getOrUndefined$1(ignorerAnswerFor(frame.node, ancestors, context.ignorers));
64271
64262
  const aridReason = getOrUndefined$1(aridReasonOf(frame, context.mutantSetPolicy, context.aridImportTable));
64272
64263
  const originalCode = printNode(frame.node);
64264
+ const plantedOriginal = printNode(unwrapParenthesizedExpression(frame.node));
64273
64265
  return replacements.map(({ mutatorName, replacement }) => {
64274
64266
  const replacementCode = printNode(replacement);
64275
64267
  const tuple = {
@@ -64292,8 +64284,8 @@ const mutablesFor = (frame, location, context) => {
64292
64284
  ignorerAnswer,
64293
64285
  ...aridReason === void 0 ? {} : { aridReason },
64294
64286
  mutantSet: {
64295
- originalCode,
64296
- replacementCode
64287
+ originalCode: plantedOriginal,
64288
+ replacementCode: printNode(unwrapParenthesizedExpression(replacement))
64297
64289
  },
64298
64290
  subsumption: subsumptionReplacementOf(mutatorName, replacement)
64299
64291
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-vitest-runner",
3
- "version": "10.1.0",
3
+ "version": "10.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
@@ -38,7 +38,7 @@
38
38
  "@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
39
39
  "@opentelemetry/sdk-node": "^0.222.0",
40
40
  "@opentelemetry/sdk-trace-base": "^2.2.0",
41
- "@systemfsoftware/effect-cell-types": "^12.0.0"
41
+ "@systemfsoftware/effect-cell-types": "^12.1.4"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "vitest": "^5"
@@ -50,15 +50,15 @@
50
50
  "@systemfsoftware/effect-gherkin-spec": "^7.0.0",
51
51
  "@systemfsoftware/oxlint-config-recommended": "^4.0.0",
52
52
  "@systemfsoftware/stryker-config": "^0.1.0",
53
- "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "file:../../.deps/stryker-ignorer-effect-schema-declarations.tgz",
54
- "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "file:../../.deps/stryker-ignorer-in-source-vitest-block.tgz",
55
- "@systemfsoftware/stryker-js": "file:../../.deps/stryker-js.tgz",
56
- "@systemfsoftware/stryker-js-cli-contract": "^2.0.0",
57
- "@systemfsoftware/stryker-js-instrumenter": "^15.0.0",
58
- "@systemfsoftware/stryker-js-plugin-interface": "^18.0.0",
59
- "@systemfsoftware/stryker-js-plugin-runtime": "^8.0.1",
60
- "@systemfsoftware/stryker-js-typescript-checker": "file:../../.deps/stryker-js-typescript-checker.tgz",
61
- "@systemfsoftware/stryker-js-vitest-runner": "file:../../.deps/stryker-js-vitest-runner.tgz",
53
+ "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "^0.3.1",
54
+ "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "^0.1.3",
55
+ "@systemfsoftware/stryker-js": "^23.0.0",
56
+ "@systemfsoftware/stryker-js-cli-contract": "^3.0.1",
57
+ "@systemfsoftware/stryker-js-instrumenter": "^16.0.1",
58
+ "@systemfsoftware/stryker-js-plugin-interface": "^19.0.1",
59
+ "@systemfsoftware/stryker-js-plugin-runtime": "^9.0.1",
60
+ "@systemfsoftware/stryker-js-typescript-checker": "^10.0.0",
61
+ "@systemfsoftware/stryker-js-vitest-runner": "^10.1.0",
62
62
  "@systemfsoftware/tsconfig": "^2.0.1",
63
63
  "@systemfsoftware/tsdown-config": "^0.1.0",
64
64
  "@systemfsoftware/vitest": "^2.0.0",
@@ -66,7 +66,7 @@
66
66
  "@types/node": "^24",
67
67
  "@vitest/browser-playwright": "^5",
68
68
  "concurrently": "^10",
69
- "effect": "^4.1.0",
69
+ "effect": "^4.1.2",
70
70
  "oxlint": "~1.90.0",
71
71
  "rimraf": "^6.1.3",
72
72
  "tsdown": "^0.23.0",
@@ -97,7 +97,7 @@
97
97
  "@opentelemetry/sdk-trace-base": "2.11.0",
98
98
  "@opentelemetry/sdk-trace-node": "2.11.0",
99
99
  "@opentelemetry/semantic-conventions": "1.43.0",
100
- "@systemfsoftware/effect-cell-types": "12.0.0",
100
+ "@systemfsoftware/effect-cell-types": "12.1.4",
101
101
  "effect": "4.1.2",
102
102
  "oxc-parser": "0.150.0"
103
103
  },