@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 +10 -0
- package/dist/index.d.mts +68 -59
- package/dist/index.mjs +1 -3
- package/package.json +9 -6
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
declare const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
|
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.
|
|
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/
|
|
28
|
-
"@systemfsoftware/
|
|
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.
|
|
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
|
}
|