@systemfsoftware/stryker-js-instrumenter 6.0.0 → 6.0.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,15 @@
1
1
  # @systemfsoftware/stryker-js-instrumenter
2
2
 
3
+ ## 6.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Imports rewired to the collapsed `@systemfsoftware/stryker-js` root entry; each package now co-releases against the root-entry major.
8
+
9
+ - Updated dependencies:
10
+ - @systemfsoftware/effect-cell-types@8.0.0
11
+ - @systemfsoftware/stryker-js@4.0.0
12
+
3
13
  ## 6.0.0
4
14
 
5
15
  ### Major Changes
package/dist/index.d.mts CHANGED
@@ -1,59 +1,68 @@
1
- import { FileDescription, Mutant } from "@systemfsoftware/stryker-js/Mutant";
2
- import * as Effect from "effect/Effect";
3
- import * as S from "effect/Schema";
4
- import "effect/Option";
5
- import { IgnorerService } from "@systemfsoftware/stryker-js/Ignorer";
6
- //#region src/Instrument.schema.d.ts
7
- declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
8
- readonly message: S.String;
9
- readonly cause: S.Defect;
10
- }>, import("effect/Cause").YieldableError>;
11
- declare class InstrumentError extends InstrumentError_base {
12
- get message(): string;
13
- }
14
- declare const InstrumenterOptionsSchema: S.Struct<{
15
- readonly excludedMutations: S.$Array<S.String>;
16
- readonly ignorers: S.$Array<S.Unknown>;
17
- readonly noHeader: S.optional<S.Boolean>;
18
- }>;
19
- type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
20
- declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
21
- readonly files: S.$Array<S.Struct<{
22
- readonly name: S.String;
23
- readonly content: S.String;
24
- readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
25
- readonly start: S.Struct<{
26
- readonly line: S.Finite;
27
- readonly column: S.Finite;
28
- }>;
29
- readonly end: S.Struct<{
30
- readonly line: S.Finite;
31
- readonly column: S.Finite;
32
- }>;
33
- }>>]>;
34
- }>>;
35
- readonly mutants: S.$Array<typeof Mutant>;
36
- }>, {}>;
37
- declare class InstrumentResult$1 extends InstrumentResult_base {}
38
- //#endregion
39
- //#region src/Instrument.d.ts
40
- interface File extends FileDescription {
41
- name: string;
42
- content: string;
43
- }
44
- interface InstrumentResult {
45
- files: readonly File[];
46
- mutants: readonly Mutant[];
47
- }
48
- declare function disableTypeChecks(file: File): Promise<File>;
49
- declare const instrument: (files: readonly File[], options: InstrumenterOptions) => Effect.Effect<InstrumentResult$1, InstrumentError>;
50
- //#endregion
51
- //#region src/Parser.d.ts
52
- interface ParserOptions {}
53
- //#endregion
54
- //#region src/Transformer.d.ts
55
- declare const angularIgnorer: IgnorerService;
56
- declare const strykerPlugins: readonly unknown[];
57
- declare const frameworkPluginsFileUrl: string;
58
- //#endregion
59
- export { type File, type InstrumentResult, type InstrumenterOptions, type ParserOptions, angularIgnorer, disableTypeChecks, frameworkPluginsFileUrl, instrument, strykerPlugins };
1
+ import * as Effect from 'effect/Effect';
2
+ import { FileDescription } from '@systemfsoftware/stryker-js';
3
+ import { IgnorerService } from '@systemfsoftware/stryker-js';
4
+ import { Mutant } from '@systemfsoftware/stryker-js';
5
+ import * as S from 'effect/Schema';
6
+ import { YieldableError } from 'effect/Cause';
7
+
8
+ export declare const angularIgnorer: IgnorerService;
9
+
10
+ export declare function disableTypeChecks(file: File_2): Promise<File_2>;
11
+
12
+ declare interface File_2 extends FileDescription {
13
+ name: string;
14
+ content: string;
15
+ }
16
+ export { File_2 as File }
17
+
18
+ export declare const frameworkPluginsFileUrl: string;
19
+
20
+ export declare const instrument: (files: readonly File_2[], options: InstrumenterOptions) => Effect.Effect<InstrumentResult$1, InstrumentError>;
21
+
22
+ export declare type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
23
+
24
+ declare const InstrumenterOptionsSchema: S.Struct<{
25
+ readonly excludedMutations: S.$Array<S.String>;
26
+ readonly ignorers: S.$Array<S.Unknown>;
27
+ readonly noHeader: S.optional<S.Boolean>;
28
+ }>;
29
+
30
+ declare class InstrumentError extends InstrumentError_base {
31
+ get message(): string;
32
+ }
33
+
34
+ declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
35
+ readonly message: S.String;
36
+ readonly cause: S.Defect;
37
+ }>, YieldableError>;
38
+
39
+ declare class InstrumentResult$1 extends InstrumentResult_base {}
40
+
41
+ export declare interface InstrumentResult {
42
+ files: readonly File_2[];
43
+ mutants: readonly Mutant[];
44
+ }
45
+
46
+ declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
47
+ readonly files: S.$Array<S.Struct<{
48
+ readonly name: S.String;
49
+ readonly content: S.String;
50
+ readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
51
+ readonly start: S.Struct<{
52
+ readonly line: S.Finite;
53
+ readonly column: S.Finite;
54
+ }>;
55
+ readonly end: S.Struct<{
56
+ readonly line: S.Finite;
57
+ readonly column: S.Finite;
58
+ }>;
59
+ }>>]>;
60
+ }>>;
61
+ readonly mutants: S.$Array<typeof Mutant>;
62
+ }>, {}>;
63
+
64
+ export declare interface ParserOptions {}
65
+
66
+ export declare const strykerPlugins: readonly unknown[];
67
+
68
+ export { }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { INSTRUMENTER_CONSTANTS, Mutant } from "@systemfsoftware/stryker-js/Mutant";
1
+ import { INSTRUMENTER_CONSTANTS, Mutant, propertyPath, strykerReportBugUrl } from "@systemfsoftware/stryker-js";
2
2
  import * as Effect from "effect/Effect";
3
3
  import * as Predicate from "effect/Predicate";
4
4
  import * as S from "effect/Schema";
@@ -6,8 +6,6 @@ import * as Arr from "effect/Array";
6
6
  import * as Match from "effect/Match";
7
7
  import * as Option from "effect/Option";
8
8
  import path from "path";
9
- import "@systemfsoftware/stryker-js/Ignorer";
10
- import { propertyPath, strykerReportBugUrl } from "@systemfsoftware/stryker-js/Schema";
11
9
  import path$1 from "node:path";
12
10
  import { RegExpParser, visitRegExpAST } from "@eslint-community/regexpp";
13
11
  //#region src/Instrument.schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-instrumenter",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
@@ -24,10 +24,11 @@
24
24
  "angular-html-parser": "~10.4.0",
25
25
  "effect": "4.0.0-rc.112",
26
26
  "oxc-parser": "^0.140.0",
27
- "@systemfsoftware/stryker-js": "^3.0.2",
28
- "@systemfsoftware/effect-cell-types": "^7.0.1"
27
+ "@systemfsoftware/effect-cell-types": "^8.0.0",
28
+ "@systemfsoftware/stryker-js": "^4.0.0"
29
29
  },
30
30
  "devDependencies": {
31
+ "@microsoft/api-extractor": "^7.58.7",
31
32
  "@systemfsoftware/arethetypeswrong-cli": "^4.1.0",
32
33
  "@types/estree": "1.0.8",
33
34
  "@types/node": "^24",
@@ -37,7 +38,7 @@
37
38
  "tsdown": "^0.22.14",
38
39
  "typescript": "^7",
39
40
  "vitest": "^4",
40
- "@systemfsoftware/all": "^2.0.1",
41
+ "@systemfsoftware/all": "^2.0.2",
41
42
  "@systemfsoftware/effect-gherkin-spec": "^4.0.2",
42
43
  "@systemfsoftware/vitest-config": "^0.1.0",
43
44
  "@systemfsoftware/oxlint-config": "^0.1.0",
@@ -59,10 +60,12 @@
59
60
  },
60
61
  "scripts": {
61
62
  "clean": "rimraf dist",
62
- "build": "tsdown",
63
+ "build": "tsdown && pnpm api:check",
63
64
  "typecheck": "tsc --noEmit --incremental",
64
65
  "attw": "attw --pack .",
65
66
  "test": "vitest run",
66
- "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}"
67
+ "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
68
+ "api:check": "tsdown && api-extractor run",
69
+ "api:update": "api-extractor run --local"
67
70
  }
68
71
  }