@systemfsoftware/stryker-js-instrumenter 6.0.1 → 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 +23 -0
- package/README.md +1 -1
- package/dist/index.d.mts +5 -12
- package/dist/index.mjs +466 -714
- package/package.json +27 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
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
|
+
|
|
3
26
|
## 6.0.1
|
|
4
27
|
|
|
5
28
|
### Patch 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,13 +1,10 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
|
-
import { FileDescription } from '@systemfsoftware/stryker-js';
|
|
3
|
-
import {
|
|
4
|
-
import { Mutant } from '@systemfsoftware/stryker-js';
|
|
2
|
+
import { FileDescription } from '@systemfsoftware/stryker-js-language';
|
|
3
|
+
import { Mutant } from '@systemfsoftware/stryker-js-language';
|
|
5
4
|
import * as S from 'effect/Schema';
|
|
6
5
|
import { YieldableError } from 'effect/Cause';
|
|
7
6
|
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
export declare function disableTypeChecks(file: File_2): Promise<File_2>;
|
|
7
|
+
export declare const disableTypeChecks: (file: File_2) => Effect.Effect<File_2, InstrumentError>;
|
|
11
8
|
|
|
12
9
|
declare interface File_2 extends FileDescription {
|
|
13
10
|
name: string;
|
|
@@ -15,9 +12,7 @@ declare interface File_2 extends FileDescription {
|
|
|
15
12
|
}
|
|
16
13
|
export { File_2 as File }
|
|
17
14
|
|
|
18
|
-
export declare const
|
|
19
|
-
|
|
20
|
-
export declare const instrument: (files: readonly File_2[], options: InstrumenterOptions) => Effect.Effect<InstrumentResult$1, InstrumentError>;
|
|
15
|
+
export declare const instrument: (files: readonly File_2[], options: InstrumenterOptions, basePath?: string) => Effect.Effect<InstrumentResult$1, InstrumentError>;
|
|
21
16
|
|
|
22
17
|
export declare type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
|
|
23
18
|
|
|
@@ -27,7 +22,7 @@ declare const InstrumenterOptionsSchema: S.Struct<{
|
|
|
27
22
|
readonly noHeader: S.optional<S.Boolean>;
|
|
28
23
|
}>;
|
|
29
24
|
|
|
30
|
-
declare class InstrumentError extends InstrumentError_base {
|
|
25
|
+
export declare class InstrumentError extends InstrumentError_base {
|
|
31
26
|
get message(): string;
|
|
32
27
|
}
|
|
33
28
|
|
|
@@ -63,6 +58,4 @@ declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<
|
|
|
63
58
|
|
|
64
59
|
export declare interface ParserOptions {}
|
|
65
60
|
|
|
66
|
-
export declare const strykerPlugins: readonly unknown[];
|
|
67
|
-
|
|
68
61
|
export { }
|