@systemfsoftware/stryker-js-typescript-checker 10.0.2 → 10.0.4

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,13 @@
1
1
  # @systemfsoftware/stryker-js-typescript-checker
2
2
 
3
+ ## 10.0.4
4
+
5
+ Development type definitions now target Node.js 26.
6
+
7
+ ## 10.0.3
8
+
9
+ Bundles the plugin interface whose reporter counts and durations are bounded, so a reporter sum can no longer overflow to Infinity.
10
+
3
11
  ## 10.0.2
4
12
 
5
13
  Updated dependency @systemfsoftware/stryker-js to 23.2.1
package/dist/main.mjs CHANGED
@@ -58056,7 +58056,7 @@ const Mutant = TaggedStruct("Mutant", {
58056
58056
  statusReason: optional(String$2),
58057
58057
  coveredBy: String$2.pipe(ArraySchema, optional),
58058
58058
  static: optional(Boolean$3),
58059
- testsCompleted: optional(Finite),
58059
+ testsCompleted: optional(Natural),
58060
58060
  description: optional(String$2),
58061
58061
  subsumption: optional(Subsumption),
58062
58062
  probeEligibility: ProbeEligibility.pipe(withConstructorDefault(succeed$2(NOT_DECIDED)), withDecodingDefaultKey(succeed$2(NOT_DECIDED)))
@@ -58788,7 +58788,7 @@ const MutantResult = StructWithRest(Struct({
58788
58788
  "description": "Result of the mutation."
58789
58789
  }),
58790
58790
  "statusReason": optionalKey(String$2.annotate({ "description": "The reason that this mutant has this status. In the case of a killed mutant, this should be filled with the failure message(s) of the failing tests. In case of an error mutant, this should be filled with the error message." })),
58791
- "testsCompleted": optionalKey(Finite.annotate({ "description": "The number of tests actually completed in order to test this mutant. Can differ from \"coveredBy\" because of bailing a mutant test run after first failing test." }).check(isFinite().annotate({ "expected": "a finite number" })))
58791
+ "testsCompleted": optionalKey(Finite.annotate({ "description": "The number of tests actually completed in order to test this mutant. Can differ from \"coveredBy\" because of bailing a mutant test run after first failing test." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })))
58792
58792
  }), [Record$1(String$2, Json.annotate({ "expected": "JSON value" }))]).annotate({
58793
58793
  "title": "MutantResult",
58794
58794
  "description": "Single mutation.",
@@ -58978,14 +58978,15 @@ var TestRunnerFailed = class extends TaggedError()("TestRunnerFailed", {
58978
58978
  return `Test runner "${this.runnerName}" failed during ${this.phase}: ${this.cause}`;
58979
58979
  }
58980
58980
  };
58981
+ const DurationMs = Finite.pipe(check$2(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(Number.MAX_SAFE_INTEGER)));
58981
58982
  const RunTimingSchema = Struct({
58982
- net: NonNegativeFinite,
58983
- overhead: NonNegativeFinite
58983
+ net: DurationMs,
58984
+ overhead: DurationMs
58984
58985
  });
58985
58986
  const ReporterPlanDescriptorSchema = Struct({
58986
58987
  mutantId: MutantId,
58987
58988
  plan: Literals(["EarlyResult", "Run"]),
58988
- netTime: NonNegativeFinite,
58989
+ netTime: DurationMs,
58989
58990
  reloadEnvironment: Boolean$3
58990
58991
  });
58991
58992
  var DryRunCompleted = class extends TaggedClass()("dryRunCompleted", {
@@ -60867,7 +60868,7 @@ Literals([
60867
60868
  "FinalizerEscape"
60868
60869
  ]);
60869
60870
  //#endregion
60870
- //#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
60871
+ //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.2.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/rolldown-runtime-D7D4PA-g.mjs
60871
60872
  var __defProp$1 = Object.defineProperty;
60872
60873
  var __exportAll$1 = (all, no_symbols) => {
60873
60874
  let target = {};
@@ -60879,7 +60880,7 @@ var __exportAll$1 = (all, no_symbols) => {
60879
60880
  return target;
60880
60881
  };
60881
60882
  //#endregion
60882
- //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.1.4_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
60883
+ //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.2.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
60883
60884
  var Blueprint_exports = /* @__PURE__ */ __exportAll$1({
60884
60885
  IndexId: () => IndexId,
60885
60886
  make: () => make$3$1
@@ -61153,7 +61154,8 @@ const make$5 = (options) => {
61153
61154
  var Sandwich_exports = /* @__PURE__ */ __exportAll$1({
61154
61155
  CommandRejected: () => CommandRejected,
61155
61156
  DEFAULT_DURATION_BOUNDARIES: () => DEFAULT_DURATION_BOUNDARIES,
61156
- named: () => named
61157
+ named: () => named,
61158
+ writer: () => writer
61157
61159
  });
61158
61160
  /**
61159
61161
  * The duration buckets a named cell records into by default, in seconds. These are the
@@ -61199,7 +61201,7 @@ const outcomeTag = (outcome) => match$5(outcome, {
61199
61201
  const annotateCellIdentity = (name, stacktrace, decideStacktrace) => gen(function* () {
61200
61202
  yield* annotateCurrentSpan("cell.name", name);
61201
61203
  yield* annotateCurrentSpan("cell.stacktrace", stacktrace);
61202
- yield* annotateCurrentSpan("cell.decide_stacktrace", decideStacktrace);
61204
+ yield* decideStacktrace === void 0 ? void_$1 : annotateCurrentSpan("cell.decide_stacktrace", decideStacktrace);
61203
61205
  });
61204
61206
  const annotateCommand = (schema, decoded) => gen(function* () {
61205
61207
  const commandTag = tagIfPresent(decoded);
@@ -61323,6 +61325,61 @@ const namedImpl = (name, options) => {
61323
61325
  * span is created, so an operational cell emits its trace because it was constructed.
61324
61326
  */
61325
61327
  const named = dual((args) => typeof args[0] === "string", namedImpl);
61328
+ const writerImpl = (name, options) => {
61329
+ const histogram = histogramFor(name, options);
61330
+ return (read) => {
61331
+ const stacktrace = String((/* @__PURE__ */ new Error()).stack);
61332
+ const decode = (command) => {
61333
+ const write = (handlers) => {
61334
+ const onDecoded = handlers.Decoded;
61335
+ const decodedRun = (decoded, raw, settle) => gen(function* () {
61336
+ yield* annotateFields(command, decoded);
61337
+ yield* annotateCommand(command, decoded);
61338
+ yield* settle("success");
61339
+ return yield* withSpan(onDecoded(decoded, raw), `${name}.write`);
61340
+ });
61341
+ const run = (input) => monitoredRun(name, stacktrace, void 0, histogram, (settle) => gen(function* () {
61342
+ const raw = yield* withSpan(read(input), `${name}.read`);
61343
+ return yield* match$5(decodeUnknownResult(command)(raw), {
61344
+ onFailure: (issue) => rejectedRun(name, handlers, raw, issue.message, settle),
61345
+ onSuccess: (decoded) => decodedRun(decoded, raw, settle)
61346
+ });
61347
+ }));
61348
+ return {
61349
+ [CellTypeId]: CellTypeId,
61350
+ run,
61351
+ phases: Object.freeze([
61352
+ "read",
61353
+ "decode",
61354
+ "write"
61355
+ ]),
61356
+ ...Prototype$1
61357
+ };
61358
+ };
61359
+ return {
61360
+ "sentence: must write after decode": true,
61361
+ write
61362
+ };
61363
+ };
61364
+ return {
61365
+ "sentence: must decode after read": true,
61366
+ decode
61367
+ };
61368
+ };
61369
+ };
61370
+ /**
61371
+ * Starts a cell that reads and writes and decides nothing, at a static operation name. Use it
61372
+ * where no domain outcome is chosen: a reporter or sink that lays out what it read. A branch
61373
+ * that only picks how something looks belongs in the plain formatter `Decoded` calls; a branch
61374
+ * that picks a domain outcome means the operation is a decision, built with {@link named}.
61375
+ *
61376
+ * The chain is `writer(name, options?)(read).decode(Command).write({ Decoded, CommandRejected })`,
61377
+ * one call per phase: `read` gathers the command's `Encoded` form, the library decodes it with
61378
+ * `Command`, and the matching handler writes. The span, the command's declared attributes, the duration histogram
61379
+ * and its `result_class` are the same as {@link named}'s; there is no decide span and no
61380
+ * decision attribute.
61381
+ */
61382
+ const writer = dual((args) => typeof args[0] === "string", writerImpl);
61326
61383
  //#endregion
61327
61384
  //#region ../stryker-js-plugin-runtime/dist/index.mjs
61328
61385
  init_esm$2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-typescript-checker",
3
- "version": "10.0.2",
3
+ "version": "10.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
@@ -37,11 +37,11 @@
37
37
  "@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
38
38
  "@opentelemetry/sdk-node": "^0.222.0",
39
39
  "@opentelemetry/sdk-trace-base": "^2.2.0",
40
- "@systemfsoftware/effect-cell-types": "^12.1.4",
41
- "@systemfsoftware/stryker-js-cli-contract": "^3.1.0",
42
- "@systemfsoftware/stryker-js-instrumenter": "^16.0.2",
43
- "@systemfsoftware/stryker-js-plugin-interface": "^19.0.1",
44
- "@systemfsoftware/stryker-js-plugin-runtime": "^9.0.2",
40
+ "@systemfsoftware/effect-cell-types": "^12.2.0",
41
+ "@systemfsoftware/stryker-js-cli-contract": "^4.0.0",
42
+ "@systemfsoftware/stryker-js-instrumenter": "^17.0.0",
43
+ "@systemfsoftware/stryker-js-plugin-interface": "^21.0.0",
44
+ "@systemfsoftware/stryker-js-plugin-runtime": "^9.0.4",
45
45
  "typescript": "^7"
46
46
  },
47
47
  "devDependencies": {
@@ -67,7 +67,7 @@
67
67
  "@systemfsoftware/tsdown-config": "^0.1.0",
68
68
  "@systemfsoftware/vitest": "^2.0.0",
69
69
  "@systemfsoftware/vitest-config": "^0.1.0",
70
- "@types/node": "^24",
70
+ "@types/node": "^26",
71
71
  "effect": "^4.1.2",
72
72
  "fast-check": "^4",
73
73
  "oxlint": "~1.90.0",
@@ -96,7 +96,7 @@
96
96
  "@opentelemetry/sdk-trace-base": "2.11.0",
97
97
  "@opentelemetry/sdk-trace-node": "2.11.0",
98
98
  "@opentelemetry/semantic-conventions": "1.43.0",
99
- "@systemfsoftware/effect-cell-types": "12.1.4",
99
+ "@systemfsoftware/effect-cell-types": "12.2.0",
100
100
  "effect": "4.1.2",
101
101
  "oxc-parser": "0.150.0"
102
102
  },
@@ -114,7 +114,7 @@
114
114
  "attw": "attw --pack .",
115
115
  "test": "vitest run",
116
116
  "mutation": "stryker run",
117
- "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
117
+ "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; effect-tsgo oxlint . --format=${f:-default}",
118
118
  "api:check": "api-extractor run",
119
119
  "api:update": "api-extractor run --local",
120
120
  "lint:tsgo": "effect-tsgo diagnostics --project tsconfig.app.json --format ${TSGO_FORMAT:-text} && effect-tsgo diagnostics --project tsconfig.test.json --format ${TSGO_FORMAT:-text}"