@systemfsoftware/stryker-js-instrumenter 6.0.0 → 7.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 +33 -0
- package/README.md +1 -1
- package/dist/index.d.mts +61 -59
- package/dist/index.mjs +466 -716
- package/package.json +27 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @systemfsoftware/stryker-js-instrumenter
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- `disableTypeChecks` and `instrument` now return lazy `Effect` values instead of a `Promise` and a plain result, so a caller decides when the transformation runs: `disableTypeChecks(file)` is `Effect<File, InstrumentError>` and `instrument(files, options)` is `Effect<InstrumentResult, InstrumentError>`. Interpret them with your own runtime — `Effect.runPromise(disableTypeChecks(file))` reproduces the old await.
|
|
8
|
+
|
|
9
|
+
The Angular signal ignorer moved out of this package to `@systemfsoftware/stryker-ignorer-angular`, and the `strykerPlugins` and `frameworkPluginsFileUrl` exports are gone. A plugin package discovers its ignorers through the ignorer contract instead.
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- `instrument` accepts an optional `basePath` used to relativize placement-error paths instead of the process working directory. Pass the run's base path; omitting it keeps absolute file names in error messages.
|
|
14
|
+
|
|
15
|
+
- `angularIgnorer`'s decision now receives `(node, ancestors)` — the node and its
|
|
16
|
+
ancestors as typed positions from the ignorer contract — instead of a path
|
|
17
|
+
object. The node vocabulary in this package's declarations is the one published
|
|
18
|
+
by `@systemfsoftware/stryker-ignorer-interface`, which is now a dependency.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Maintenance release. Every published entry point, export, option, and behaviour is exactly as it was.
|
|
23
|
+
|
|
24
|
+
- effect dependency range widens from the exact 4.0.0-rc.112 pin to ^4.0.0-rc.112; repository metadata now points at stryker-js-effect
|
|
25
|
+
|
|
26
|
+
## 6.0.1
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Imports rewired to the collapsed `@systemfsoftware/stryker-js` root entry; each package now co-releases against the root-entry major.
|
|
31
|
+
|
|
32
|
+
- Updated dependencies:
|
|
33
|
+
- @systemfsoftware/effect-cell-types@8.0.0
|
|
34
|
+
- @systemfsoftware/stryker-js@4.0.0
|
|
35
|
+
|
|
3
36
|
## 6.0.0
|
|
4
37
|
|
|
5
38
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -18,4 +18,4 @@ The instrumenter is used internally by the Stryker mutation testing framework to
|
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
20
|
|
|
21
|
-
Apache-2.0. Part of [systemfsoftware](https://github.com/systemfsoftware/
|
|
21
|
+
Apache-2.0. Part of [systemfsoftware](https://github.com/systemfsoftware/stryker-js-effect/tree/main/packages/stryker-js-instrumenter#readme).
|
package/dist/index.d.mts
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
readonly
|
|
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
|
-
export
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { FileDescription } from '@systemfsoftware/stryker-js-language';
|
|
3
|
+
import { Mutant } from '@systemfsoftware/stryker-js-language';
|
|
4
|
+
import * as S from 'effect/Schema';
|
|
5
|
+
import { YieldableError } from 'effect/Cause';
|
|
6
|
+
|
|
7
|
+
export declare const disableTypeChecks: (file: File_2) => Effect.Effect<File_2, InstrumentError>;
|
|
8
|
+
|
|
9
|
+
declare interface File_2 extends FileDescription {
|
|
10
|
+
name: string;
|
|
11
|
+
content: string;
|
|
12
|
+
}
|
|
13
|
+
export { File_2 as File }
|
|
14
|
+
|
|
15
|
+
export declare const instrument: (files: readonly File_2[], options: InstrumenterOptions, basePath?: string) => Effect.Effect<InstrumentResult$1, InstrumentError>;
|
|
16
|
+
|
|
17
|
+
export declare type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
|
|
18
|
+
|
|
19
|
+
declare const InstrumenterOptionsSchema: S.Struct<{
|
|
20
|
+
readonly excludedMutations: S.$Array<S.String>;
|
|
21
|
+
readonly ignorers: S.$Array<S.Unknown>;
|
|
22
|
+
readonly noHeader: S.optional<S.Boolean>;
|
|
23
|
+
}>;
|
|
24
|
+
|
|
25
|
+
export declare class InstrumentError extends InstrumentError_base {
|
|
26
|
+
get message(): string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
|
|
30
|
+
readonly message: S.String;
|
|
31
|
+
readonly cause: S.Defect;
|
|
32
|
+
}>, YieldableError>;
|
|
33
|
+
|
|
34
|
+
declare class InstrumentResult$1 extends InstrumentResult_base {}
|
|
35
|
+
|
|
36
|
+
export declare interface InstrumentResult {
|
|
37
|
+
files: readonly File_2[];
|
|
38
|
+
mutants: readonly Mutant[];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
|
|
42
|
+
readonly files: S.$Array<S.Struct<{
|
|
43
|
+
readonly name: S.String;
|
|
44
|
+
readonly content: S.String;
|
|
45
|
+
readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
|
|
46
|
+
readonly start: S.Struct<{
|
|
47
|
+
readonly line: S.Finite;
|
|
48
|
+
readonly column: S.Finite;
|
|
49
|
+
}>;
|
|
50
|
+
readonly end: S.Struct<{
|
|
51
|
+
readonly line: S.Finite;
|
|
52
|
+
readonly column: S.Finite;
|
|
53
|
+
}>;
|
|
54
|
+
}>>]>;
|
|
55
|
+
}>>;
|
|
56
|
+
readonly mutants: S.$Array<typeof Mutant>;
|
|
57
|
+
}>, {}>;
|
|
58
|
+
|
|
59
|
+
export declare interface ParserOptions {}
|
|
60
|
+
|
|
61
|
+
export { }
|