@systemfsoftware/stryker-js-instrumenter 2.0.0 → 3.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @systemfsoftware/stryker-js-instrumenter
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - The instrumenter parses and prints with oxc and a bundled ESTree printer; all Babel packages are gone. The instrumenter options no longer accept a `plugins` list (oxc parses modern JS/TS, JSX, and decorators natively), the instrumentation header export is named `instrumentationHeader`, and the script transformer is named `transformScript`.
8
+
9
+ ## 2.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Peer Effect requirement advances to 4.0.0-rc.112. No API changes.
14
+
3
15
  ## 2.0.0
4
16
 
5
17
  ### Major Changes
package/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import babel, { File as File$1, types } from "@babel/core";
2
1
  import { Wire, Workflow } from "@systemfsoftware/effect-cell-types";
3
2
  import { FileDescription, Mutant } from "@systemfsoftware/stryker-js/Mutant";
4
3
  import * as Effect from "effect/Effect";
@@ -15,7 +14,6 @@ declare class InstrumentError extends InstrumentError_base {
15
14
  get message(): string;
16
15
  }
17
16
  declare const InstrumenterOptionsSchema: S.Struct<{
18
- plugins: S.NullOr<S.$Array<S.Unknown & Wire.Mark> & Wire.Mark> & Wire.Mark;
19
17
  excludedMutations: S.$Array<S.String & Wire.Mark> & Wire.Mark;
20
18
  ignorers: S.$Array<S.Unknown & Wire.Mark> & Wire.Mark;
21
19
  noHeader: S.optional<S.Boolean & Wire.Mark> & Wire.Mark;
@@ -40,11 +38,6 @@ declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<
40
38
  }>, {}>;
41
39
  declare class InstrumentResult$1 extends InstrumentResult_base {}
42
40
  //#endregion
43
- //#region src/Parser.d.ts
44
- interface ParserOptions {
45
- plugins: readonly unknown[] | null;
46
- }
47
- //#endregion
48
41
  //#region src/Instrument.d.ts
49
42
  interface File extends FileDescription {
50
43
  name: string;
@@ -54,30 +47,13 @@ interface InstrumentResult {
54
47
  files: readonly File[];
55
48
  mutants: readonly Mutant[];
56
49
  }
57
- declare function disableTypeChecks(file: File, options: ParserOptions): Promise<File>;
50
+ declare function disableTypeChecks(file: File): Promise<File>;
58
51
  declare const instrument: (files: readonly File[], options: InstrumenterOptions) => Effect.Effect<InstrumentResult$1, InstrumentError>;
59
52
  //#endregion
53
+ //#region src/Parser.d.ts
54
+ interface ParserOptions {}
55
+ //#endregion
60
56
  //#region src/Transformer.d.ts
61
- /**
62
- * `@babel/core` exports its `File` class at runtime, but `@types/babel__core`
63
- * omits it. The declaration lives in this module rather than an ambient
64
- * `.d.ts` so it travels with the sources: a consumer that compiles this
65
- * package from source (the workspace's `@systemfsoftware/source` condition,
66
- * and api-extractor with it) reaches the augmentation through the import
67
- * graph, which an unreferenced ambient file never joins.
68
- */
69
- declare module '@babel/core' {
70
- class File {
71
- constructor(options: {
72
- filename?: string;
73
- }, input: {
74
- code: string;
75
- ast: types.File;
76
- inputMap?: unknown;
77
- });
78
- ast: types.File;
79
- }
80
- }
81
57
  declare const angularIgnorer: IgnorerService;
82
58
  declare const strykerPlugins: readonly unknown[];
83
59
  declare const frameworkPluginsFileUrl: string;