@systemfsoftware/stryker-js-typescript-checker 7.0.1 → 7.0.2

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,18 @@
1
1
  # @systemfsoftware/stryker-js-typescript-checker
2
2
 
3
+ ## 7.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - The checker request carries a plain data record, not the instrumenter's `Mutant` class. `CheckerRequest.mutants` and `CheckerService.check`/`group` now speak `CheckerMutantWire` - `id`, `fileName`, `mutatorName`, `replacement`, and `location`. A mutant that cannot be described to a checker is skipped instead of reaching it.
8
+
9
+ With `OTEL_ENABLED=true` the CLI now exports its OpenTelemetry metrics to `OTEL_EXPORTER_OTLP_ENDPOINT`, and `OTEL_METRIC_EXPORT_INTERVAL` sets the export interval in milliseconds. Checker timings, mutant counts, and worker crashes now reach a metrics backend.
10
+
11
+ `ConfigEnv` and `resolveExtends` are no longer exported. Import `ConfigEnv` from the config entry point of the package, and read merged options with `loadConfigCell` or `readConfig` from the package root - either performs the `extends` walk, validation and merge in order.
12
+
13
+ - Updated dependencies:
14
+ - @systemfsoftware/stryker-js-plugin-interface@7.0.0
15
+
3
16
  ## 7.0.1
4
17
 
5
18
  ### Patch Changes
package/dist/main.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import { LocationSchema, Mutant, MutantRunOptionsSchema, MutantStatusSchema, OpenEndLocationSchema, PositionSchema, RunOptionsFields, errorToString, normalizeFileName } from "@systemfsoftware/stryker-js-instrumenter";
2
+ import { LocationSchema, MutantRunOptionsSchema, MutantStatusSchema, OpenEndLocationSchema, PositionSchema, RunOptionsFields, errorToString, normalizeFileName } from "@systemfsoftware/stryker-js-instrumenter";
3
3
  import { createRequire as createRequire$1 } from "module";
4
4
  import * as Net from "node:net";
5
5
  import * as Crypto from "node:crypto";
@@ -28440,6 +28440,23 @@ const set$1 = /*#__PURE__*/ dual(2, (self, value) => sync(() => set$2(self.ref,
28440
28440
  const update = /*#__PURE__*/ dual(2, (self, f) => sync(() => {
28441
28441
  self.ref.current = f(self.ref.current);
28442
28442
  }));
28443
+ //#endregion
28444
+ //#region ../stryker-js-plugin-interface/dist/index.mjs
28445
+ /** A position inside a file, in the coordinates the wire carries — 0-based line and column. */
28446
+ const CheckerPositionWire = Struct({
28447
+ line: Finite,
28448
+ column: Finite
28449
+ });
28450
+ const CheckerMutantWire = Struct({
28451
+ id: NonEmptyString,
28452
+ fileName: NonEmptyString,
28453
+ mutatorName: NonEmptyString,
28454
+ replacement: String$1,
28455
+ location: Struct({
28456
+ start: CheckerPositionWire,
28457
+ end: CheckerPositionWire
28458
+ })
28459
+ });
28443
28460
  Literals(["passed", "compileError"]);
28444
28461
  const CheckResultSchema = Union([Struct({ status: Literal("passed") }), Struct({
28445
28462
  status: Literal("compileError"),
@@ -28703,7 +28720,7 @@ const TestRunnerDryRunRequest = Struct({ options: DryRunOptionsSchema });
28703
28720
  const TestRunnerMutantRunRequest = Struct({ options: MutantRunOptionsSchema });
28704
28721
  const CheckerRequest = Struct({
28705
28722
  checkerName: String$1,
28706
- mutants: ArraySchema(Mutant)
28723
+ mutants: ArraySchema(CheckerMutantWire)
28707
28724
  });
28708
28725
  const CheckerCheckResult = Record(String$1, CheckResultSchema);
28709
28726
  const CheckerGroupResult = ArraySchema(ArraySchema(String$1));
@@ -51816,7 +51833,7 @@ const TSFileNodeSchema = suspend(() => Struct({
51816
51833
  children: ArraySchema(TSFileNodeSchema)
51817
51834
  }));
51818
51835
  var CheckMutantsInput = class extends TaggedClass()("CheckMutantsInput", {
51819
- mutants: ArraySchema(Mutant),
51836
+ mutants: ArraySchema(CheckerMutantWire),
51820
51837
  diagnostics: ArraySchema(DiagnosticSchema),
51821
51838
  nodes: Record(SourceFileSchema, TSFileNodeSchema)
51822
51839
  }) {};
@@ -51837,7 +51854,7 @@ var CheckFinished = class extends TaggedClass()("CheckFinished", { results: Reco
51837
51854
  };
51838
51855
  var RetestRequired = class extends TaggedClass()("RetestRequired", {
51839
51856
  results: Record(String$1, MutantCheckStatusSchema),
51840
- needsRetest: ArraySchema(Mutant)
51857
+ needsRetest: ArraySchema(CheckerMutantWire)
51841
51858
  }) {
51842
51859
  [CheckMutantsTypeId] = CheckMutantsTypeId;
51843
51860
  };
@@ -51927,7 +51944,7 @@ const verdict = (input) => match$4(withoutDisambiguation(input), {
51927
51944
  });
51928
51945
  const checkMutants = Workflow_exports.make(CheckMutantsInput, verdict);
51929
51946
  Struct({ typescriptChecker: optional(Struct({ prioritizePerformanceOverAccuracy: optional(Boolean$2) })) });
51930
- var CheckMutantsCommand = class extends TaggedClass()("CheckMutantsCommand", { mutants: ArraySchema(Mutant) }) {};
51947
+ var CheckMutantsCommand = class extends TaggedClass()("CheckMutantsCommand", { mutants: ArraySchema(CheckerMutantWire) }) {};
51931
51948
  /**
51932
51949
  * Every way the TypeScript compiler can fail while serving a check.
51933
51950
  * One tagged error — callers branch only on failure itself; `reason` keeps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-typescript-checker",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
@@ -30,8 +30,8 @@
30
30
  "effect": "4.0.0-rc.112",
31
31
  "typescript": "^7",
32
32
  "@systemfsoftware/stryker-js-instrumenter": "^8.0.0",
33
- "@systemfsoftware/stryker-js-plugin-interface": "^6.0.1",
34
- "@systemfsoftware/stryker-js-plugin-runtime": "^5.0.1"
33
+ "@systemfsoftware/stryker-js-plugin-interface": "^7.0.0",
34
+ "@systemfsoftware/stryker-js-plugin-runtime": "^5.0.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@effect/platform-node": "4.0.0-rc.112",