@systemfsoftware/stryker-js 10.1.1 → 10.1.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,13 @@
1
1
  # @systemfsoftware/stryker-js
2
2
 
3
+ ## 10.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - `@systemfsoftware/stryker-vm-harness` is the in-memory V8 VM test-runner harness that powers `testRunner: 'vm'`. `@systemfsoftware/stryker-js` now depends on it.
8
+
9
+ - The in-memory V8 VM runner (`testRunner: 'vm'`) now executes suites written for `vitest`, `@effect/vitest`, and `@systemfsoftware/effect-gherkin-spec` out of the box: the usual test surface — `describe`/`it`, `.skip`, `.only`, `.todo`, `.each`, `it.fails`, and hooks — behaves as it does under vitest, and each test is reported on its own with its real failure message instead of one all-tests result. Mutant runs attribute a kill to the exact test that caught the change. A suite that never finishes yields a timeout result instead of hanging the run, unhandled rejections are captured in the run report, module state is fresh on every run, and a suite that cannot compile still fails the run with a typed failure naming the file.
10
+
3
11
  ## 10.1.1
4
12
 
5
13
  ### Patch Changes
@@ -3606,7 +3606,7 @@ const loadWalkerModule = (specifier, fileName, cause) => Effect$1.gen(function*
3606
3606
  return walk;
3607
3607
  });
3608
3608
  const parseSvelte = (text, fileName, context) => Effect$1.gen(function* () {
3609
- const { parse: svelteParse, preprocess, VERSION } = yield* Effect$1.promise(() => import("./compiler-Faeg70AC.mjs"));
3609
+ const { parse: svelteParse, preprocess, VERSION } = yield* Effect$1.promise(() => import("./compiler-BTpMWGqK.mjs"));
3610
3610
  if (!isAtLeast(VERSION, MINIMUM_SVELTE_VERSION)) return yield* SvelteVersionNotSupported.make({
3611
3611
  version: VERSION,
3612
3612
  fileName,
@@ -1,4 +1,5 @@
1
1
  import { n as __exportAll, t as __commonJSMin } from "./rolldown-runtime-XITHOX9H.mjs";
2
+ import { n as encode, t as decode } from "./sourcemap-codec-qFD3eFBj.mjs";
2
3
  //#region ../../node_modules/.pnpm/zimmerframe@1.1.5/node_modules/zimmerframe/src/walk.js
3
4
  /** @import { Context, Visitor, Visitors } from './types.js' */
4
5
  /**
@@ -35774,176 +35775,6 @@ function order_reactive_statements(unsorted_reactive_declarations) {
35774
35775
  for (const [node, declaration] of unsorted_reactive_declarations) add_declaration(node, declaration);
35775
35776
  return reactive_declarations;
35776
35777
  }
35777
- //#endregion
35778
- //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.6.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
35779
- var comma = ",".charCodeAt(0);
35780
- var semicolon = ";".charCodeAt(0);
35781
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
35782
- var intToChar = /* @__PURE__ */ new Uint8Array(64);
35783
- var charToInt = /* @__PURE__ */ new Uint8Array(128);
35784
- for (let i = 0; i < chars.length; i++) {
35785
- const c = chars.charCodeAt(i);
35786
- intToChar[i] = c;
35787
- charToInt[c] = i;
35788
- }
35789
- function decodeInteger(reader) {
35790
- let value = 0;
35791
- let shift = 0;
35792
- let integer = 0;
35793
- do {
35794
- integer = charToInt[reader.next()];
35795
- value |= (integer & 31) << shift;
35796
- shift += 5;
35797
- } while (integer & 32);
35798
- return value;
35799
- }
35800
- function decodeSign(num) {
35801
- return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
35802
- }
35803
- function encodeInteger(builder, num) {
35804
- do {
35805
- let clamped = num & 31;
35806
- num >>>= 5;
35807
- if (num > 0) clamped |= 32;
35808
- builder.write(intToChar[clamped]);
35809
- } while (num > 0);
35810
- }
35811
- function encodeSign(num) {
35812
- return num < 0 ? -num << 1 | 1 : num << 1;
35813
- }
35814
- function hasMoreVlq(reader, max) {
35815
- if (reader.pos >= max) return false;
35816
- return reader.peek() !== comma;
35817
- }
35818
- var bufLength = 16384;
35819
- var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
35820
- return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
35821
- } } : { decode(buf) {
35822
- let out = "";
35823
- for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
35824
- return out;
35825
- } };
35826
- var StringWriter = class {
35827
- constructor() {
35828
- this.pos = 0;
35829
- this.out = "";
35830
- this.buffer = new Uint8Array(bufLength);
35831
- }
35832
- write(v) {
35833
- const { buffer } = this;
35834
- buffer[this.pos++] = v;
35835
- if (this.pos === bufLength) {
35836
- this.out += td.decode(buffer);
35837
- this.pos = 0;
35838
- }
35839
- }
35840
- flush() {
35841
- const { buffer, out, pos } = this;
35842
- return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
35843
- }
35844
- };
35845
- var StringReader = class {
35846
- constructor(buffer) {
35847
- this.pos = 0;
35848
- this.buffer = buffer;
35849
- }
35850
- next() {
35851
- return this.buffer.charCodeAt(this.pos++);
35852
- }
35853
- peek() {
35854
- return this.buffer.charCodeAt(this.pos);
35855
- }
35856
- indexOf(char) {
35857
- const { buffer, pos } = this;
35858
- const idx = buffer.indexOf(char, pos);
35859
- return idx === -1 ? buffer.length : idx;
35860
- }
35861
- };
35862
- function decode(mappings) {
35863
- const { length } = mappings;
35864
- const reader = new StringReader(mappings);
35865
- const decoded = [];
35866
- let genColumn = 0;
35867
- let sourcesIndex = 0;
35868
- let sourceLine = 0;
35869
- let sourceColumn = 0;
35870
- let namesIndex = 0;
35871
- do {
35872
- const semi = reader.indexOf(";");
35873
- const line = [];
35874
- let sorted = true;
35875
- let lastCol = 0;
35876
- genColumn = 0;
35877
- while (reader.pos < semi) {
35878
- let seg;
35879
- genColumn += decodeSign(decodeInteger(reader));
35880
- if (genColumn < lastCol) sorted = false;
35881
- lastCol = genColumn;
35882
- if (hasMoreVlq(reader, semi)) {
35883
- sourcesIndex += decodeSign(decodeInteger(reader));
35884
- sourceLine += decodeSign(decodeInteger(reader));
35885
- sourceColumn += decodeSign(decodeInteger(reader));
35886
- if (hasMoreVlq(reader, semi)) {
35887
- namesIndex += decodeSign(decodeInteger(reader));
35888
- seg = [
35889
- genColumn,
35890
- sourcesIndex,
35891
- sourceLine,
35892
- sourceColumn,
35893
- namesIndex
35894
- ];
35895
- } else seg = [
35896
- genColumn,
35897
- sourcesIndex,
35898
- sourceLine,
35899
- sourceColumn
35900
- ];
35901
- } else seg = [genColumn];
35902
- line.push(seg);
35903
- reader.pos++;
35904
- }
35905
- if (!sorted) sort(line);
35906
- decoded.push(line);
35907
- reader.pos = semi + 1;
35908
- } while (reader.pos <= length);
35909
- return decoded;
35910
- }
35911
- function sort(line) {
35912
- line.sort(sortComparator$1);
35913
- }
35914
- function sortComparator$1(a, b) {
35915
- return a[0] - b[0];
35916
- }
35917
- function encode(decoded) {
35918
- const writer = new StringWriter();
35919
- let sourcesIndex = 0;
35920
- let sourceLine = 0;
35921
- let sourceColumn = 0;
35922
- let namesIndex = 0;
35923
- for (let i = 0; i < decoded.length; i++) {
35924
- const line = decoded[i];
35925
- if (i > 0) writer.write(semicolon);
35926
- if (line.length === 0) continue;
35927
- let genColumn = 0;
35928
- for (let j = 0; j < line.length; j++) {
35929
- const segment = line[j];
35930
- if (j > 0) writer.write(comma);
35931
- encodeInteger(writer, encodeSign(segment[0] - genColumn));
35932
- genColumn = segment[0];
35933
- if (segment.length === 1) continue;
35934
- encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
35935
- encodeInteger(writer, encodeSign(segment[2] - sourceLine));
35936
- encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
35937
- sourcesIndex = segment[1];
35938
- sourceLine = segment[2];
35939
- sourceColumn = segment[3];
35940
- if (segment.length === 4) continue;
35941
- encodeInteger(writer, encodeSign(segment[4] - namesIndex));
35942
- namesIndex = segment[4];
35943
- }
35944
- }
35945
- return writer.flush();
35946
- }
35947
35778
  var Context = class Context {
35948
35779
  #visitors;
35949
35780
  #commands;
@@ -1,4 +1,5 @@
1
1
  import { r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
2
+ import { n as encode, t as decode } from "./sourcemap-codec-qFD3eFBj.mjs";
2
3
  //#region ../../node_modules/.pnpm/zimmerframe@1.1.5/node_modules/zimmerframe/src/walk.js
3
4
  /** @import { Context, Visitor, Visitors } from './types.js' */
4
5
  /**
@@ -35774,176 +35775,6 @@ function order_reactive_statements(unsorted_reactive_declarations) {
35774
35775
  for (const [node, declaration] of unsorted_reactive_declarations) add_declaration(node, declaration);
35775
35776
  return reactive_declarations;
35776
35777
  }
35777
- //#endregion
35778
- //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.6.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
35779
- var comma = ",".charCodeAt(0);
35780
- var semicolon = ";".charCodeAt(0);
35781
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
35782
- var intToChar = /* @__PURE__ */ new Uint8Array(64);
35783
- var charToInt = /* @__PURE__ */ new Uint8Array(128);
35784
- for (let i = 0; i < chars.length; i++) {
35785
- const c = chars.charCodeAt(i);
35786
- intToChar[i] = c;
35787
- charToInt[c] = i;
35788
- }
35789
- function decodeInteger(reader) {
35790
- let value = 0;
35791
- let shift = 0;
35792
- let integer = 0;
35793
- do {
35794
- integer = charToInt[reader.next()];
35795
- value |= (integer & 31) << shift;
35796
- shift += 5;
35797
- } while (integer & 32);
35798
- return value;
35799
- }
35800
- function decodeSign(num) {
35801
- return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
35802
- }
35803
- function encodeInteger(builder, num) {
35804
- do {
35805
- let clamped = num & 31;
35806
- num >>>= 5;
35807
- if (num > 0) clamped |= 32;
35808
- builder.write(intToChar[clamped]);
35809
- } while (num > 0);
35810
- }
35811
- function encodeSign(num) {
35812
- return num < 0 ? -num << 1 | 1 : num << 1;
35813
- }
35814
- function hasMoreVlq(reader, max) {
35815
- if (reader.pos >= max) return false;
35816
- return reader.peek() !== comma;
35817
- }
35818
- var bufLength = 16384;
35819
- var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
35820
- return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
35821
- } } : { decode(buf) {
35822
- let out = "";
35823
- for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
35824
- return out;
35825
- } };
35826
- var StringWriter = class {
35827
- constructor() {
35828
- this.pos = 0;
35829
- this.out = "";
35830
- this.buffer = new Uint8Array(bufLength);
35831
- }
35832
- write(v) {
35833
- const { buffer } = this;
35834
- buffer[this.pos++] = v;
35835
- if (this.pos === bufLength) {
35836
- this.out += td.decode(buffer);
35837
- this.pos = 0;
35838
- }
35839
- }
35840
- flush() {
35841
- const { buffer, out, pos } = this;
35842
- return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
35843
- }
35844
- };
35845
- var StringReader = class {
35846
- constructor(buffer) {
35847
- this.pos = 0;
35848
- this.buffer = buffer;
35849
- }
35850
- next() {
35851
- return this.buffer.charCodeAt(this.pos++);
35852
- }
35853
- peek() {
35854
- return this.buffer.charCodeAt(this.pos);
35855
- }
35856
- indexOf(char) {
35857
- const { buffer, pos } = this;
35858
- const idx = buffer.indexOf(char, pos);
35859
- return idx === -1 ? buffer.length : idx;
35860
- }
35861
- };
35862
- function decode(mappings) {
35863
- const { length } = mappings;
35864
- const reader = new StringReader(mappings);
35865
- const decoded = [];
35866
- let genColumn = 0;
35867
- let sourcesIndex = 0;
35868
- let sourceLine = 0;
35869
- let sourceColumn = 0;
35870
- let namesIndex = 0;
35871
- do {
35872
- const semi = reader.indexOf(";");
35873
- const line = [];
35874
- let sorted = true;
35875
- let lastCol = 0;
35876
- genColumn = 0;
35877
- while (reader.pos < semi) {
35878
- let seg;
35879
- genColumn += decodeSign(decodeInteger(reader));
35880
- if (genColumn < lastCol) sorted = false;
35881
- lastCol = genColumn;
35882
- if (hasMoreVlq(reader, semi)) {
35883
- sourcesIndex += decodeSign(decodeInteger(reader));
35884
- sourceLine += decodeSign(decodeInteger(reader));
35885
- sourceColumn += decodeSign(decodeInteger(reader));
35886
- if (hasMoreVlq(reader, semi)) {
35887
- namesIndex += decodeSign(decodeInteger(reader));
35888
- seg = [
35889
- genColumn,
35890
- sourcesIndex,
35891
- sourceLine,
35892
- sourceColumn,
35893
- namesIndex
35894
- ];
35895
- } else seg = [
35896
- genColumn,
35897
- sourcesIndex,
35898
- sourceLine,
35899
- sourceColumn
35900
- ];
35901
- } else seg = [genColumn];
35902
- line.push(seg);
35903
- reader.pos++;
35904
- }
35905
- if (!sorted) sort(line);
35906
- decoded.push(line);
35907
- reader.pos = semi + 1;
35908
- } while (reader.pos <= length);
35909
- return decoded;
35910
- }
35911
- function sort(line) {
35912
- line.sort(sortComparator$1);
35913
- }
35914
- function sortComparator$1(a, b) {
35915
- return a[0] - b[0];
35916
- }
35917
- function encode(decoded) {
35918
- const writer = new StringWriter();
35919
- let sourcesIndex = 0;
35920
- let sourceLine = 0;
35921
- let sourceColumn = 0;
35922
- let namesIndex = 0;
35923
- for (let i = 0; i < decoded.length; i++) {
35924
- const line = decoded[i];
35925
- if (i > 0) writer.write(semicolon);
35926
- if (line.length === 0) continue;
35927
- let genColumn = 0;
35928
- for (let j = 0; j < line.length; j++) {
35929
- const segment = line[j];
35930
- if (j > 0) writer.write(comma);
35931
- encodeInteger(writer, encodeSign(segment[0] - genColumn));
35932
- genColumn = segment[0];
35933
- if (segment.length === 1) continue;
35934
- encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
35935
- encodeInteger(writer, encodeSign(segment[2] - sourceLine));
35936
- encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
35937
- sourcesIndex = segment[1];
35938
- sourceLine = segment[2];
35939
- sourceColumn = segment[3];
35940
- if (segment.length === 4) continue;
35941
- encodeInteger(writer, encodeSign(segment[4] - namesIndex));
35942
- namesIndex = segment[4];
35943
- }
35944
- }
35945
- return writer.flush();
35946
- }
35947
35778
  var Context = class Context {
35948
35779
  #visitors;
35949
35780
  #commands;