Skip to content

Commit

Permalink
feat(factories): remove deprecated factories (#1381)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removed the Factory (and children) from the stryker-api package. Use DI to ensure classes are created. For more information, see https://github.com/stryker-mutator/stryker-handbook/blob/master/stryker/api/plugins.md#dependency-injection
  • Loading branch information
simondel authored and nicojs committed Feb 12, 2019
1 parent 2034a67 commit df2fcdf
Show file tree
Hide file tree
Showing 22 changed files with 5 additions and 421 deletions.
1 change: 0 additions & 1 deletion packages/stryker-api/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { default as Config } from './src/config/Config';
export { default as ConfigEditor } from './src/config/ConfigEditor';
export { default as ConfigEditorFactory } from './src/config/ConfigEditorFactory';
1 change: 0 additions & 1 deletion packages/stryker-api/core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export { default as StrykerOptions } from './src/core/StrykerOptions';
export { default as Factory } from './src/core/Factory';
export { default as File } from './src/core/File';
export { default as Position } from './src/core/Position';
export { default as Location } from './src/core/Location';
Expand Down
1 change: 0 additions & 1 deletion packages/stryker-api/mutant.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { default as Mutant } from './src/mutant/Mutant';
export { default as Mutator } from './src/mutant/Mutator';
export { default as MutatorFactory } from './src/mutant/MutatorFactory';
1 change: 0 additions & 1 deletion packages/stryker-api/report.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export { default as Reporter } from './src/report/Reporter';
export { default as MutantResult } from './src/report/MutantResult';
export { default as MutantStatus } from './src/report/MutantStatus';
export { default as ReporterFactory } from './src/report/ReporterFactory';
export { default as SourceFile } from './src/report/SourceFile';
export { default as MatchedMutant } from './src/report/MatchedMutant';
export { default as ScoreResult } from './src/report/ScoreResult';
26 changes: 0 additions & 26 deletions packages/stryker-api/src/config/ConfigEditorFactory.ts

This file was deleted.

57 changes: 0 additions & 57 deletions packages/stryker-api/src/core/Factory.ts

This file was deleted.

36 changes: 0 additions & 36 deletions packages/stryker-api/src/mutant/MutatorFactory.ts

This file was deleted.

34 changes: 0 additions & 34 deletions packages/stryker-api/src/report/ReporterFactory.ts

This file was deleted.

24 changes: 0 additions & 24 deletions packages/stryker-api/src/test_framework/TestFrameworkFactory.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/stryker-api/src/test_framework/TestFrameworkSettings.ts

This file was deleted.

19 changes: 0 additions & 19 deletions packages/stryker-api/src/test_runner/RunnerOptions.ts

This file was deleted.

35 changes: 0 additions & 35 deletions packages/stryker-api/src/test_runner/TestRunnerFactory.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/stryker-api/src/transpile/TranspilerFactory.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/stryker-api/src/transpile/TranspilerOptions.ts

This file was deleted.

40 changes: 0 additions & 40 deletions packages/stryker-api/test/unit/core/FactorySpec.ts

This file was deleted.

26 changes: 0 additions & 26 deletions packages/stryker-api/test/unit/mutant/MutantFactorySpec.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/stryker-api/test_framework.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
export { default as TestFramework } from './src/test_framework/TestFramework';
export { default as TestSelection } from './src/test_framework/TestSelection';
export { default as TestFrameworkFactory } from './src/test_framework/TestFrameworkFactory';
export { default as TestFrameworkSettings } from './src/test_framework/TestFrameworkSettings';
2 changes: 0 additions & 2 deletions packages/stryker-api/test_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ export * from './src/test_runner/Coverage';
export { default as TestResult } from './src/test_runner/TestResult';
export { default as TestRunner } from './src/test_runner/TestRunner';
export { default as TestStatus } from './src/test_runner/TestStatus';
export { default as RunnerOptions } from './src/test_runner/RunnerOptions';
export { default as RunResult } from './src/test_runner/RunResult';
export { default as RunOptions } from './src/test_runner/RunOptions';
export { default as RunStatus } from './src/test_runner/RunStatus';
export { default as TestRunnerFactory } from './src/test_runner/TestRunnerFactory';
2 changes: 0 additions & 2 deletions packages/stryker-api/transpile.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export { default as Transpiler } from './src/transpile/Transpiler';
export { default as TranspilerFactory } from './src/transpile/TranspilerFactory';
export { default as TranspilerOptions } from './src/transpile/TranspilerOptions';
Loading

0 comments on commit df2fcdf

Please sign in to comment.