@d-es-ign/stryker-js-core 9.6.0 → 9.6.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.
Files changed (93) hide show
  1. package/README.md +11 -4
  2. package/package.json +7 -7
  3. package/schema/stryker-schema.json +12 -12
  4. package/src/checker/checker-child-process-proxy.ts +2 -2
  5. package/src/checker/checker-facade.ts +2 -2
  6. package/src/checker/checker-factory.ts +3 -3
  7. package/src/checker/checker-resource.ts +2 -2
  8. package/src/checker/checker-retry-decorator.ts +2 -2
  9. package/src/checker/checker-worker.ts +4 -4
  10. package/src/child-proxy/child-process-crashed-error.ts +1 -1
  11. package/src/child-proxy/child-process-proxy-worker.ts +3 -3
  12. package/src/child-proxy/child-process-proxy.ts +3 -3
  13. package/src/child-proxy/message-protocol.ts +1 -1
  14. package/src/concurrent/concurrency-token-provider.ts +3 -3
  15. package/src/concurrent/pool.ts +2 -2
  16. package/src/config/config-reader.ts +6 -6
  17. package/src/config/file-matcher.ts +1 -1
  18. package/src/config/meta-schema-builder.ts +2 -2
  19. package/src/config/options-validator.ts +4 -4
  20. package/src/di/plugin-creator.ts +1 -1
  21. package/src/di/plugin-loader.ts +7 -7
  22. package/src/errors.ts +1 -1
  23. package/src/fs/file-system.ts +1 -1
  24. package/src/fs/project-file.ts +3 -3
  25. package/src/fs/project-reader.ts +4 -4
  26. package/src/fs/project.ts +3 -3
  27. package/src/initializer/custom-initializers/angular-initializer.ts +5 -5
  28. package/src/initializer/custom-initializers/custom-initializer.ts +2 -2
  29. package/src/initializer/custom-initializers/index.ts +2 -2
  30. package/src/initializer/custom-initializers/react-initializer.ts +3 -3
  31. package/src/initializer/custom-initializers/svelte-initializer.ts +1 -1
  32. package/src/initializer/custom-initializers/vue-js-initializer.ts +3 -3
  33. package/src/initializer/gitignore-writer.ts +1 -1
  34. package/src/initializer/index.ts +1 -1
  35. package/src/initializer/npm-client.ts +6 -6
  36. package/src/initializer/npm-registry.ts +3 -3
  37. package/src/initializer/stryker-config-writer.ts +6 -6
  38. package/src/initializer/stryker-initializer.ts +4 -4
  39. package/src/logging/logger-impl.ts +2 -2
  40. package/src/logging/logging-backend.ts +1 -1
  41. package/src/logging/logging-client.ts +2 -2
  42. package/src/logging/logging-event.ts +1 -1
  43. package/src/logging/logging-server.ts +2 -2
  44. package/src/logging/logging-sink.ts +1 -1
  45. package/src/logging/priority.ts +1 -1
  46. package/src/logging/provide-logging.ts +3 -3
  47. package/src/mutants/incremental-differ.ts +5 -5
  48. package/src/mutants/mutant-test-planner.ts +5 -5
  49. package/src/mutants/test-coverage.ts +5 -5
  50. package/src/process/1-prepare-executor.ts +5 -5
  51. package/src/process/2-mutant-instrumenter-executor.ts +5 -5
  52. package/src/process/3-dry-run-executor.ts +6 -6
  53. package/src/process/4-mutation-test-executor.ts +6 -6
  54. package/src/reporters/broadcast-reporter.ts +4 -4
  55. package/src/reporters/clear-text-reporter.ts +4 -4
  56. package/src/reporters/clear-text-score-table.ts +1 -1
  57. package/src/reporters/dashboard-reporter/dashboard-reporter-client.ts +4 -4
  58. package/src/reporters/dashboard-reporter/dashboard-reporter.ts +4 -4
  59. package/src/reporters/dashboard-reporter/index.ts +1 -1
  60. package/src/reporters/dashboard-reporter/report.ts +1 -1
  61. package/src/reporters/dots-reporter.ts +2 -2
  62. package/src/reporters/event-recorder-reporter.ts +4 -4
  63. package/src/reporters/html-reporter.ts +4 -4
  64. package/src/reporters/index.ts +1 -1
  65. package/src/reporters/json-reporter.ts +4 -4
  66. package/src/reporters/mutation-test-report-helper.ts +12 -12
  67. package/src/reporters/mutation-timings-reporter.ts +4 -4
  68. package/src/reporters/progress-append-only-reporter.ts +1 -1
  69. package/src/reporters/progress-keeper.ts +3 -3
  70. package/src/reporters/progress-reporter.ts +2 -2
  71. package/src/reporters/strict-reporter.ts +1 -1
  72. package/src/sandbox/create-preprocessor.ts +2 -2
  73. package/src/sandbox/disable-type-checks-preprocessor.ts +4 -4
  74. package/src/sandbox/sandbox.ts +4 -4
  75. package/src/sandbox/ts-config-preprocessor.ts +3 -3
  76. package/src/stryker-cli.ts +1 -1
  77. package/src/stryker-package.ts +1 -1
  78. package/src/stryker-server.ts +5 -5
  79. package/src/stryker.ts +2 -2
  80. package/src/test-runner/child-process-test-runner-proxy.ts +4 -4
  81. package/src/test-runner/child-process-test-runner-worker.ts +4 -4
  82. package/src/test-runner/command-test-runner.ts +3 -3
  83. package/src/test-runner/index.ts +4 -4
  84. package/src/test-runner/max-test-runner-reuse-decorator.ts +2 -2
  85. package/src/test-runner/reload-environment-decorator.ts +1 -1
  86. package/src/test-runner/retry-rejected-decorator.ts +3 -3
  87. package/src/test-runner/test-runner-decorator.ts +1 -1
  88. package/src/test-runner/timeout-decorator.ts +3 -3
  89. package/src/unexpected-exit-handler.ts +1 -1
  90. package/src/utils/file-utils.ts +1 -1
  91. package/src/utils/object-utils.ts +2 -2
  92. package/src/utils/string-utils.ts +2 -2
  93. package/src/utils/temporary-directory.ts +3 -3
package/README.md CHANGED
@@ -1,13 +1,20 @@
1
1
  [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fstryker-mutator%2Fstryker-js%2Fmaster%3Fmodule%3Dcore)](https://dashboard.stryker-mutator.io/reports/github.com/stryker-mutator/stryker-js/master?module=core)
2
2
  [![Build Status](https://github.com/stryker-mutator/stryker-js/workflows/CI/badge.svg)](https://github.com/stryker-mutator/stryker-js/actions?query=workflow%3ACI+branch%3Amaster)
3
- [![NPM](https://img.shields.io/npm/dm/@stryker-mutator/core.svg)](https://www.npmjs.com/package/@stryker-mutator/core)
4
- [![Node version](https://img.shields.io/node/v/@stryker-mutator/core.svg)](https://img.shields.io/node/v/@stryker-mutator/core.svg)
3
+ [![NPM](https://img.shields.io/npm/dm/@d-es-ign/stryker-js-core.svg)](https://www.npmjs.com/package/@d-es-ign/stryker-js-core)
4
+ [![Node version](https://img.shields.io/node/v/@d-es-ign/stryker-js-core.svg)](https://img.shields.io/node/v/@d-es-ign/stryker-js-core.svg)
5
5
  [![Slack Chat](https://img.shields.io/badge/slack-chat-brightgreen.svg?logo=slack)](https://join.slack.com/t/stryker-mutator/shared_invite/enQtOTUyMTYyNTg1NDQ0LTU4ODNmZDlmN2I3MmEyMTVhYjZlYmJkOThlNTY3NTM1M2QxYmM5YTM3ODQxYmJjY2YyYzllM2RkMmM1NjNjZjM)
6
6
 
7
7
  ![StrykerJS](https://github.com/stryker-mutator/stryker-js/raw/master/stryker-80x80.png)
8
8
 
9
9
  # StrykerJS
10
10
 
11
+
12
+ > **Fork notice**
13
+ >
14
+ > This project is a fork of the corresponding `@stryker-mutator` package/repository.
15
+ > Maintenance here is intentionally limited, and this fork only exists while
16
+ > https://github.com/stryker-mutator/stryker-js/pull/5866 has not been accepted and implemented.
17
+
11
18
  _Professor X: For someone who hates mutants... you certainly keep some strange company._
12
19
  _William Stryker: Oh, they serve their purpose... as long as they can be controlled._
13
20
 
@@ -22,7 +29,7 @@ Please follow the [quickstart on the website](https://stryker-mutator.io/docs/st
22
29
  For small js projects, you can try the following command:
23
30
 
24
31
  ```
25
- npm install --save-dev @stryker-mutator/core
32
+ npm install --save-dev @d-es-ign/stryker-js-core
26
33
  # Only for small projects:
27
34
  npx stryker run
28
35
  ```
@@ -72,7 +79,7 @@ Environment variables:
72
79
  Stryker can also be used programmatically from nodejs. It exports 2 classes for you to use: `Stryker` and `StrykerCli`.
73
80
 
74
81
  ```ts
75
- import { Stryker, StrykerCli } from '@stryker-mutator/core';
82
+ import { Stryker, StrykerCli } from '@d-es-ign/stryker-js-core';
76
83
  ```
77
84
 
78
85
  Both classes can be used to run Stryker. The main difference is that `Stryker` is a slightly more low-level approach, while `StrykerCli` is the straight up CLI api.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-es-ign/stryker-js-core",
3
- "version": "9.6.0",
3
+ "version": "9.6.1",
4
4
  "description": "The extendable JavaScript mutation testing framework",
5
5
  "type": "module",
6
6
  "files": [
@@ -59,9 +59,6 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@inquirer/prompts": "^8.0.0",
62
- "@d-es-ign/stryker-js-api": "9.6.0",
63
- "@d-es-ign/stryker-js-instrumenter": "9.6.0",
64
- "@d-es-ign/stryker-js-util": "9.6.0",
65
62
  "ajv": "~8.18.0",
66
63
  "chalk": "~5.6.0",
67
64
  "commander": "~14.0.0",
@@ -83,17 +80,20 @@
83
80
  "tree-kill": "~1.2.2",
84
81
  "tslib": "2.8.1",
85
82
  "typed-inject": "~5.0.0",
86
- "typed-rest-client": "~2.2.0"
83
+ "typed-rest-client": "~2.2.0",
84
+ "@d-es-ign/stryker-js-instrumenter": "9.6.1",
85
+ "@d-es-ign/stryker-js-api": "9.6.1",
86
+ "@d-es-ign/stryker-js-util": "9.6.1"
87
87
  },
88
88
  "devDependencies": {
89
- "@d-es-ign/stryker-js-test-helpers": "9.6.0",
90
89
  "@types/diff-match-patch": "1.0.36",
91
90
  "@types/json-schema": "7.0.15",
92
91
  "@types/lodash.groupby": "4.6.9",
93
92
  "@types/node": "24.10.13",
94
93
  "@types/progress": "2.0.7",
95
94
  "@types/semver": "7.7.1",
96
- "glob": "13.0.6"
95
+ "glob": "13.0.6",
96
+ "@d-es-ign/stryker-js-test-helpers": "9.6.1"
97
97
  },
98
98
  "scripts": {
99
99
  "start": "tsc -w",
@@ -5,7 +5,7 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "vitest": {
8
- "description": "Configuration for @stryker-mutator/vitest-runner",
8
+ "description": "Configuration for @d-es-ign/stryker-js-vitest-runner",
9
9
  "title": "VitestRunnerOptions",
10
10
  "additionalProperties": false,
11
11
  "type": "object",
@@ -27,7 +27,7 @@
27
27
  }
28
28
  },
29
29
  "typescriptChecker": {
30
- "description": "Configuration for @stryker-mutator/typescript-checker",
30
+ "description": "Configuration for @d-es-ign/stryker-js-typescript-checker",
31
31
  "title": "TypescriptCheckerOptions",
32
32
  "additionalProperties": false,
33
33
  "type": "object",
@@ -41,7 +41,7 @@
41
41
  }
42
42
  },
43
43
  "tap": {
44
- "description": "Configuration for @stryker-mutator/tap-runner",
44
+ "description": "Configuration for @d-es-ign/stryker-js-tap-runner",
45
45
  "title": "TapRunnerOptions",
46
46
  "additionalProperties": false,
47
47
  "type": "object",
@@ -81,7 +81,7 @@
81
81
  "title": "MochaOptions",
82
82
  "additionalProperties": false,
83
83
  "type": "object",
84
- "description": "Configuration for @stryker-mutator/mocha-runner",
84
+ "description": "Configuration for @d-es-ign/stryker-js-mocha-runner",
85
85
  "default": {},
86
86
  "properties": {
87
87
  "require": {
@@ -106,7 +106,7 @@
106
106
  }
107
107
  },
108
108
  "opts": {
109
- "description": "Specify a ['mocha.opts' file](https://mochajs.org/#mochaopts) to be loaded. Options specified directly in your stryker.conf.js file will overrule options from the 'mocha.opts' file. Disable loading of an additional mocha.opts file with `false`. The only supported mocha options are used: `--ui`, `--require`, `--async-only`, `--timeout`, `--grep` (or their short form counterparts). Others are ignored by the @stryker-mutator/mocha-runner.",
109
+ "description": "Specify a ['mocha.opts' file](https://mochajs.org/#mochaopts) to be loaded. Options specified directly in your stryker.conf.js file will overrule options from the 'mocha.opts' file. Disable loading of an additional mocha.opts file with `false`. The only supported mocha options are used: `--ui`, `--require`, `--async-only`, `--timeout`, `--grep` (or their short form counterparts). Others are ignored by the @d-es-ign/stryker-js-mocha-runner.",
110
110
  "type": "string"
111
111
  },
112
112
  "config": {
@@ -178,7 +178,7 @@
178
178
  }
179
179
  },
180
180
  "karma": {
181
- "description": "Configuration for @stryker-mutator/karma-runner",
181
+ "description": "Configuration for @d-es-ign/stryker-js-karma-runner",
182
182
  "title": "StrykerKarmaSetup",
183
183
  "additionalProperties": false,
184
184
  "type": "object",
@@ -203,7 +203,7 @@
203
203
  },
204
204
  "jest": {
205
205
  "title": "JestOptions",
206
- "description": "Configuration for @stryker-mutator/jest-runner",
206
+ "description": "Configuration for @d-es-ign/stryker-js-jest-runner",
207
207
  "type": "object",
208
208
  "default": {},
209
209
  "properties": {
@@ -232,7 +232,7 @@
232
232
  "type": "string"
233
233
  },
234
234
  "cucumber": {
235
- "description": "Configuration for @stryker-mutator/cucumber-runner",
235
+ "description": "Configuration for @d-es-ign/stryker-js-cucumber-runner",
236
236
  "title": "CucumberSetup",
237
237
  "additionalProperties": false,
238
238
  "type": "object",
@@ -414,13 +414,13 @@
414
414
  "description": "The package manager Stryker can use to install missing dependencies."
415
415
  },
416
416
  "plugins": {
417
- "description": "With 'plugins', you can add additional Node modules for Stryker to load (or require). By default, all node_modules starting with @stryker-mutator/* will be loaded, so you would normally not need to specify this option. These modules should be installed right next to stryker. For a current list of plugins, you can consult 'npm' or 'stryker-mutator.io.'",
417
+ "description": "With 'plugins', you can add additional Node modules for Stryker to load (or require). By default, all node_modules starting with @d-es-ign/stryker-js-* will be loaded, so you would normally not need to specify this option. These modules should be installed right next to stryker. For a current list of plugins, you can consult 'npm' or 'stryker-mutator.io.'",
418
418
  "type": "array",
419
419
  "items": {
420
420
  "type": "string"
421
421
  },
422
422
  "default": [
423
- "@stryker-mutator/*"
423
+ "@d-es-ign/stryker-js-*"
424
424
  ]
425
425
  },
426
426
  "appendPlugins": {
@@ -522,7 +522,7 @@
522
522
  "default": 5
523
523
  },
524
524
  "tsconfigFile": {
525
- "description": "Configure the (root) tsconfig file for typescript projects. This will allow Stryker to rewrite the `extends` and `references` settings in this and related tsconfig files in your sandbox. Defaults to `tsconfig.json`. This setting is also used when you enable the `@stryker-mutator/typescript-checker plugin",
525
+ "description": "Configure the (root) tsconfig file for typescript projects. This will allow Stryker to rewrite the `extends` and `references` settings in this and related tsconfig files in your sandbox. Defaults to `tsconfig.json`. This setting is also used when you enable the `@d-es-ign/stryker-js-typescript-checker plugin",
526
526
  "type": "string",
527
527
  "default": "tsconfig.json"
528
528
  },
@@ -568,7 +568,7 @@
568
568
  "definitions": {
569
569
  "karmaProjectKind": {
570
570
  "title": "ProjectKind",
571
- "description": "Specify which kind of project you're using. This determines which command is used to start karma\n* `custom`: configure @stryker-mutator/karma-runner to use `karma start`\n* `angular-cli`: configure @stryker-mutator/karma-runner to use `ng test`",
571
+ "description": "Specify which kind of project you're using. This determines which command is used to start karma\n* `custom`: configure @d-es-ign/stryker-js-karma-runner to use `karma start`\n* `angular-cli`: configure @d-es-ign/stryker-js-karma-runner to use `ng test`",
572
572
  "enum": [
573
573
  "custom",
574
574
  "angular-cli"
@@ -4,7 +4,7 @@ import {
4
4
  FileDescriptions,
5
5
  Mutant,
6
6
  StrykerOptions,
7
- } from '@stryker-mutator/api/core';
7
+ } from '@d-es-ign/stryker-js-api/core';
8
8
  import { Disposable } from 'typed-inject';
9
9
 
10
10
  import { ChildProcessProxy } from '../child-proxy/child-process-proxy.js';
@@ -14,7 +14,7 @@ import { IdGenerator } from '../child-proxy/id-generator.js';
14
14
  import { CheckerWorker } from './checker-worker.js';
15
15
  import { CheckerResource } from './checker-resource.js';
16
16
  import { LoggingServerAddress } from '../logging/index.js';
17
- import { LoggerFactoryMethod } from '@stryker-mutator/api/logging';
17
+ import { LoggerFactoryMethod } from '@d-es-ign/stryker-js-api/logging';
18
18
 
19
19
  export class CheckerChildProcessProxy
20
20
  implements CheckerResource, Disposable, Resource
@@ -1,5 +1,5 @@
1
- import { CheckResult } from '@stryker-mutator/api/check';
2
- import { MutantRunPlan } from '@stryker-mutator/api/core';
1
+ import { CheckResult } from '@d-es-ign/stryker-js-api/check';
2
+ import { MutantRunPlan } from '@d-es-ign/stryker-js-api/core';
3
3
 
4
4
  import { ResourceDecorator } from '../concurrent/index.js';
5
5
 
@@ -1,6 +1,6 @@
1
- import { FileDescriptions, StrykerOptions } from '@stryker-mutator/api/core';
2
- import { LoggerFactoryMethod } from '@stryker-mutator/api/logging';
3
- import { commonTokens, tokens } from '@stryker-mutator/api/plugin';
1
+ import { FileDescriptions, StrykerOptions } from '@d-es-ign/stryker-js-api/core';
2
+ import { LoggerFactoryMethod } from '@d-es-ign/stryker-js-api/logging';
3
+ import { commonTokens, tokens } from '@d-es-ign/stryker-js-api/plugin';
4
4
 
5
5
  import { IdGenerator } from '../child-proxy/id-generator.js';
6
6
 
@@ -1,5 +1,5 @@
1
- import { CheckResult } from '@stryker-mutator/api/check';
2
- import { Mutant } from '@stryker-mutator/api/core';
1
+ import { CheckResult } from '@d-es-ign/stryker-js-api/check';
2
+ import { Mutant } from '@d-es-ign/stryker-js-api/core';
3
3
 
4
4
  import { Resource } from '../concurrent/index.js';
5
5
 
@@ -1,5 +1,5 @@
1
- import { Mutant } from '@stryker-mutator/api/core';
2
- import { Logger } from '@stryker-mutator/api/logging';
1
+ import { Mutant } from '@d-es-ign/stryker-js-api/core';
2
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
3
3
 
4
4
  import { ChildProcessCrashedError } from '../child-proxy/child-process-crashed-error.js';
5
5
  import { OutOfMemoryError } from '../child-proxy/out-of-memory-error.js';
@@ -1,7 +1,7 @@
1
- import { Checker, CheckResult } from '@stryker-mutator/api/check';
2
- import { StrykerOptions, Mutant } from '@stryker-mutator/api/core';
3
- import { PluginKind, tokens, commonTokens } from '@stryker-mutator/api/plugin';
4
- import { StrykerError } from '@stryker-mutator/util';
1
+ import { Checker, CheckResult } from '@d-es-ign/stryker-js-api/check';
2
+ import { StrykerOptions, Mutant } from '@d-es-ign/stryker-js-api/core';
3
+ import { PluginKind, tokens, commonTokens } from '@d-es-ign/stryker-js-api/plugin';
4
+ import { StrykerError } from '@d-es-ign/stryker-js-util';
5
5
 
6
6
  import { coreTokens, PluginCreator } from '../di/index.js';
7
7
 
@@ -1,4 +1,4 @@
1
- import { StrykerError } from '@stryker-mutator/util';
1
+ import { StrykerError } from '@d-es-ign/stryker-js-util';
2
2
 
3
3
  export class ChildProcessCrashedError extends StrykerError {
4
4
  constructor(
@@ -1,13 +1,13 @@
1
1
  import path from 'path';
2
2
  import { fileURLToPath } from 'url';
3
3
 
4
- import { errorToString } from '@stryker-mutator/util';
4
+ import { errorToString } from '@d-es-ign/stryker-js-util';
5
5
  import { createInjector } from 'typed-inject';
6
6
  import {
7
7
  commonTokens,
8
8
  PluginContext,
9
9
  Injector,
10
- } from '@stryker-mutator/api/plugin';
10
+ } from '@d-es-ign/stryker-js-api/plugin';
11
11
 
12
12
  import { deserialize, serialize } from '../utils/string-utils.js';
13
13
  import { coreTokens, PluginCreator } from '../di/index.js';
@@ -25,7 +25,7 @@ import {
25
25
  provideLogging,
26
26
  provideLoggingClient,
27
27
  } from '../logging/provide-logging.js';
28
- import { Logger } from '@stryker-mutator/api/logging';
28
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
29
29
  import { minPriority } from '../logging/priority.js';
30
30
 
31
31
  export interface ChildProcessContext extends PluginContext {
@@ -2,13 +2,13 @@ import childProcess from 'child_process';
2
2
  import os from 'os';
3
3
  import { fileURLToPath, URL } from 'url';
4
4
 
5
- import { FileDescriptions, StrykerOptions } from '@stryker-mutator/api/core';
5
+ import { FileDescriptions, StrykerOptions } from '@d-es-ign/stryker-js-api/core';
6
6
  import {
7
7
  isErrnoException,
8
8
  Task,
9
9
  ExpirableTask,
10
10
  StrykerError,
11
- } from '@stryker-mutator/util';
11
+ } from '@d-es-ign/stryker-js-util';
12
12
  import { Disposable, InjectableClass, InjectionToken } from 'typed-inject';
13
13
 
14
14
  import { LoggingServerAddress } from '../logging/index.js';
@@ -27,7 +27,7 @@ import {
27
27
  import { OutOfMemoryError } from './out-of-memory-error.js';
28
28
  import { ChildProcessContext } from './child-process-proxy-worker.js';
29
29
  import { IdGenerator } from './id-generator.js';
30
- import { Logger, LoggerFactoryMethod } from '@stryker-mutator/api/logging';
30
+ import { Logger, LoggerFactoryMethod } from '@d-es-ign/stryker-js-api/logging';
31
31
 
32
32
  type Func<TS extends any[], R> = (...args: TS) => R;
33
33
 
@@ -1,4 +1,4 @@
1
- import { FileDescriptions, StrykerOptions } from '@stryker-mutator/api/core';
1
+ import { FileDescriptions, StrykerOptions } from '@d-es-ign/stryker-js-api/core';
2
2
 
3
3
  import type { LoggingServerAddress } from '../logging/index.js';
4
4
 
@@ -1,10 +1,10 @@
1
1
  import os from 'os';
2
2
 
3
- import { StrykerOptions } from '@stryker-mutator/api/core';
3
+ import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
4
4
  import { ReplaySubject, Observable, range } from 'rxjs';
5
5
  import { Disposable, tokens } from 'typed-inject';
6
- import { commonTokens } from '@stryker-mutator/api/plugin';
7
- import { Logger } from '@stryker-mutator/api/logging';
6
+ import { commonTokens } from '@d-es-ign/stryker-js-api/plugin';
7
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
8
8
 
9
9
  export class ConcurrencyTokenProvider implements Disposable {
10
10
  private readonly concurrencyCheckers: number;
@@ -1,5 +1,5 @@
1
- import { TestRunner } from '@stryker-mutator/api/test-runner';
2
- import { notEmpty } from '@stryker-mutator/util';
1
+ import { TestRunner } from '@d-es-ign/stryker-js-api/test-runner';
2
+ import { notEmpty } from '@d-es-ign/stryker-js-util';
3
3
  import {
4
4
  BehaviorSubject,
5
5
  filter,
@@ -5,10 +5,10 @@ import { pathToFileURL } from 'url';
5
5
  import {
6
6
  PartialStrykerOptions,
7
7
  StrykerOptions,
8
- } from '@stryker-mutator/api/core';
9
- import { Logger } from '@stryker-mutator/api/logging';
10
- import { commonTokens, tokens } from '@stryker-mutator/api/plugin';
11
- import { deepMerge, I } from '@stryker-mutator/util';
8
+ } from '@d-es-ign/stryker-js-api/core';
9
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
10
+ import { commonTokens, tokens } from '@d-es-ign/stryker-js-api/plugin';
11
+ import { deepMerge, I } from '@d-es-ign/stryker-js-util';
12
12
 
13
13
  import { coreTokens } from '../di/index.js';
14
14
  import { ConfigError } from '../errors.js';
@@ -20,7 +20,7 @@ import { SUPPORTED_CONFIG_FILE_NAMES } from './config-file-formats.js';
20
20
  export const CONFIG_SYNTAX_HELP = `
21
21
  Example of how a config file should look:
22
22
  /**
23
- * @type {import('@stryker-mutator/api/core').StrykerOptions}
23
+ * @type {import('@d-es-ign/stryker-js-api/core').StrykerOptions}
24
24
  */
25
25
  export default {
26
26
  // You're options here!
@@ -28,7 +28,7 @@ export default {
28
28
 
29
29
  Or using commonjs:
30
30
  /**
31
- * @type {import('@stryker-mutator/api/core').StrykerOptions}
31
+ * @type {import('@d-es-ign/stryker-js-api/core').StrykerOptions}
32
32
  */
33
33
  module.exports = {
34
34
  // You're options here!
@@ -1,7 +1,7 @@
1
1
  import path from 'path';
2
2
 
3
3
  import { minimatch } from 'minimatch';
4
- import { normalizeFileName } from '@stryker-mutator/util';
4
+ import { normalizeFileName } from '@d-es-ign/stryker-js-util';
5
5
 
6
6
  /**
7
7
  * A helper class for matching files using the `disableTypeChecks` setting.
@@ -1,6 +1,6 @@
1
- import { commonTokens, tokens } from '@stryker-mutator/api/plugin';
1
+ import { commonTokens, tokens } from '@d-es-ign/stryker-js-api/plugin';
2
2
  import type { JSONSchema7 } from 'json-schema';
3
- import { Logger } from '@stryker-mutator/api/logging';
3
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
4
4
 
5
5
  import { coreTokens } from '../di/index.js';
6
6
 
@@ -3,15 +3,15 @@ import path from 'path';
3
3
 
4
4
  import { Minimatch } from 'minimatch';
5
5
  import ajvModule, { ValidateFunction } from 'ajv';
6
- import { StrykerOptions, strykerCoreSchema } from '@stryker-mutator/api/core';
7
- import { tokens, commonTokens } from '@stryker-mutator/api/plugin';
6
+ import { StrykerOptions, strykerCoreSchema } from '@d-es-ign/stryker-js-api/core';
7
+ import { tokens, commonTokens } from '@d-es-ign/stryker-js-api/plugin';
8
8
  import {
9
9
  noopLogger,
10
10
  findUnserializables,
11
11
  Immutable,
12
12
  deepFreeze,
13
- } from '@stryker-mutator/util';
14
- import { Logger } from '@stryker-mutator/api/logging';
13
+ } from '@d-es-ign/stryker-js-util';
14
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
15
15
  import type { JSONSchema7 } from 'json-schema';
16
16
 
17
17
  import { coreTokens } from '../di/index.js';
@@ -11,7 +11,7 @@ import {
11
11
  tokens,
12
12
  commonTokens,
13
13
  ValuePlugin,
14
- } from '@stryker-mutator/api/plugin';
14
+ } from '@d-es-ign/stryker-js-api/plugin';
15
15
  import { InjectableFunction, InjectableClass } from 'typed-inject';
16
16
 
17
17
  import { coreTokens } from './index.js';
@@ -2,14 +2,14 @@ import path from 'path';
2
2
  import fs from 'fs';
3
3
  import { fileURLToPath, pathToFileURL, URL } from 'url';
4
4
 
5
- import { Logger } from '@stryker-mutator/api/logging';
5
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
6
6
  import {
7
7
  tokens,
8
8
  commonTokens,
9
9
  Plugin,
10
10
  PluginKind,
11
- } from '@stryker-mutator/api/plugin';
12
- import { notEmpty, propertyPath } from '@stryker-mutator/util';
11
+ } from '@d-es-ign/stryker-js-api/plugin';
12
+ import { notEmpty, propertyPath } from '@d-es-ign/stryker-js-util';
13
13
 
14
14
  import { fileUtils } from '../utils/file-utils.js';
15
15
  import { defaultOptions } from '../config/options-validator.js';
@@ -55,8 +55,8 @@ export class PluginLoader {
55
55
  * * A full url: "file:///home/nicojs/github/my-plugin.js"
56
56
  * * An absolute file path: "/home/nicojs/github/my-plugin.js"
57
57
  * * A relative path: "./my-plugin.js"
58
- * * A bare import expression: "@stryker-mutator/karma-runner"
59
- * * A simple glob expression (only wild cards are supported): "@stryker-mutator/*"
58
+ * * A bare import expression: "@d-es-ign/stryker-js-karma-runner"
59
+ * * A simple glob expression (only wild cards are supported): "@d-es-ign/stryker-js-*"
60
60
  */
61
61
  public async load(
62
62
  pluginDescriptors: readonly string[],
@@ -115,7 +115,7 @@ export class PluginLoader {
115
115
  ) {
116
116
  return pathToFileURL(path.resolve(pluginExpression)).toString();
117
117
  } else {
118
- // Bare plugin expression like "@stryker-mutator/mocha-runner" (or file URL)
118
+ // Bare plugin expression like "@d-es-ign/stryker-js-mocha-runner" (or file URL)
119
119
  return pluginExpression;
120
120
  }
121
121
  }),
@@ -214,7 +214,7 @@ export class PluginLoader {
214
214
  /**
215
215
  * Distills organization name from a package expression.
216
216
  * @example
217
- * '@stryker-mutator/core' => { org: '@stryker-mutator', 'core' }
217
+ * '@d-es-ign/stryker-js-core' => { org: '@d-es-ign', 'stryker-js-core' }
218
218
  * 'glob' => { org: '', 'glob' }
219
219
  */
220
220
  function parsePluginExpression(pluginExpression: string) {
package/src/errors.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { StrykerError } from '@stryker-mutator/util';
1
+ import { StrykerError } from '@d-es-ign/stryker-js-util';
2
2
  import { InjectionError } from 'typed-inject';
3
3
 
4
4
  export class ConfigError extends StrykerError {}
@@ -1,6 +1,6 @@
1
1
  import fs from 'fs';
2
2
 
3
- import { Task } from '@stryker-mutator/util';
3
+ import { Task } from '@d-es-ign/stryker-js-util';
4
4
  import { mergeMap, Subject } from 'rxjs';
5
5
  import { Disposable } from 'typed-inject';
6
6
 
@@ -1,8 +1,8 @@
1
1
  import path from 'path';
2
2
 
3
- import { FileDescription, MutateDescription } from '@stryker-mutator/api/core';
4
- import { File } from '@stryker-mutator/instrumenter';
5
- import { I, StrykerError } from '@stryker-mutator/util';
3
+ import { FileDescription, MutateDescription } from '@d-es-ign/stryker-js-api/core';
4
+ import { File } from '@d-es-ign/stryker-js-instrumenter';
5
+ import { I, StrykerError } from '@d-es-ign/stryker-js-util';
6
6
 
7
7
  import { FileSystem } from './file-system.js';
8
8
 
@@ -8,15 +8,15 @@ import {
8
8
  FileDescription,
9
9
  Location,
10
10
  Position,
11
- } from '@stryker-mutator/api/core';
12
- import { Logger } from '@stryker-mutator/api/logging';
13
- import { commonTokens, tokens } from '@stryker-mutator/api/plugin';
11
+ } from '@d-es-ign/stryker-js-api/core';
12
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
13
+ import { commonTokens, tokens } from '@d-es-ign/stryker-js-api/plugin';
14
14
  import {
15
15
  ERROR_CODES,
16
16
  I,
17
17
  isErrnoException,
18
18
  notEmpty,
19
- } from '@stryker-mutator/util';
19
+ } from '@d-es-ign/stryker-js-util';
20
20
  import type { MutationTestResult } from 'mutation-testing-report-schema/api';
21
21
 
22
22
  import { OpenEndLocation } from 'mutation-testing-report-schema';
package/src/fs/project.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Logger } from '@stryker-mutator/api/logging';
2
- import { FileDescriptions, StrykerOptions } from '@stryker-mutator/api/core';
3
- import { I, normalizeWhitespaces, propertyPath } from '@stryker-mutator/util';
1
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
2
+ import { FileDescriptions, StrykerOptions } from '@d-es-ign/stryker-js-api/core';
3
+ import { I, normalizeWhitespaces, propertyPath } from '@d-es-ign/stryker-js-util';
4
4
  import { MutationTestResult } from 'mutation-testing-report-schema';
5
5
 
6
6
  import { FileSystem } from './file-system.js';
@@ -2,10 +2,10 @@ import os from 'os';
2
2
  import fs from 'fs/promises';
3
3
 
4
4
  import type { execaCommand } from 'execa';
5
- import { StrykerOptions } from '@stryker-mutator/api/core';
6
- import { Immutable, type resolveFromCwd } from '@stryker-mutator/util';
7
- import { commonTokens } from '@stryker-mutator/api/plugin';
8
- import { Logger } from '@stryker-mutator/api/logging';
5
+ import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
6
+ import { Immutable, type resolveFromCwd } from '@d-es-ign/stryker-js-util';
7
+ import { commonTokens } from '@d-es-ign/stryker-js-api/plugin';
8
+ import { Logger } from '@d-es-ign/stryker-js-api/logging';
9
9
 
10
10
  import semver from 'semver';
11
11
 
@@ -35,7 +35,7 @@ export class AngularInitializer implements CustomInitializer {
35
35
 
36
36
  public readonly name = 'angular-cli';
37
37
  // Please keep config in sync with handbook
38
- private readonly dependencies = ['@stryker-mutator/karma-runner'];
38
+ private readonly dependencies = ['@d-es-ign/stryker-js-karma-runner'];
39
39
  private readonly config: Immutable<Partial<StrykerOptions>> = {
40
40
  mutate: [
41
41
  'src/**/*.ts',
@@ -1,5 +1,5 @@
1
- import { PartialStrykerOptions } from '@stryker-mutator/api/core';
2
- import { Immutable } from '@stryker-mutator/util';
1
+ import { PartialStrykerOptions } from '@d-es-ign/stryker-js-api/core';
2
+ import { Immutable } from '@d-es-ign/stryker-js-util';
3
3
 
4
4
  export interface CustomInitializer {
5
5
  readonly name: string;
@@ -2,8 +2,8 @@ import {
2
2
  BaseContext,
3
3
  commonTokens,
4
4
  Injector,
5
- } from '@stryker-mutator/api/plugin';
6
- import type { resolveFromCwd } from '@stryker-mutator/util';
5
+ } from '@d-es-ign/stryker-js-api/plugin';
6
+ import type { resolveFromCwd } from '@d-es-ign/stryker-js-util';
7
7
 
8
8
  import { coreTokens } from '../../di/index.js';
9
9
 
@@ -1,5 +1,5 @@
1
- import { StrykerOptions } from '@stryker-mutator/api/core';
2
- import { Immutable } from '@stryker-mutator/util';
1
+ import { StrykerOptions } from '@d-es-ign/stryker-js-api/core';
2
+ import { Immutable } from '@d-es-ign/stryker-js-util';
3
3
 
4
4
  import {
5
5
  CustomInitializer,
@@ -14,7 +14,7 @@ const guideUrl = 'https://stryker-mutator.io/docs/stryker-js/guides/react';
14
14
  */
15
15
  export class ReactInitializer implements CustomInitializer {
16
16
  public readonly name = 'create-react-app';
17
- private readonly dependencies = ['@stryker-mutator/jest-runner'];
17
+ private readonly dependencies = ['@d-es-ign/stryker-js-jest-runner'];
18
18
 
19
19
  private readonly config: Immutable<Partial<StrykerOptions>> = {
20
20
  testRunner: 'jest',
@@ -33,7 +33,7 @@ export class SvelteInitializer implements CustomInitializer {
33
33
  ...(testRunnerNodeArgs.length ? { testRunnerNodeArgs } : {}),
34
34
  reporters,
35
35
  },
36
- dependencies: [`@stryker-mutator/${testRunner}-runner`],
36
+ dependencies: [`@d-es-ign/stryker-js-${testRunner}-runner`],
37
37
  guideUrl,
38
38
  };
39
39
  }