Skip to content

Commit 0a1cd58

Browse files
alan-agius4dgp1130
authored andcommitted
refactor(@angular-devkit/build-angular): remove deprecated showCircularDependencies browser and server builder option
BREAKING CHANGE: The deprecated `showCircularDependencies` browser and server builder option has been removed. The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tools.
1 parent d23a168 commit 0a1cd58

File tree

13 files changed

+115
-113
lines changed

13 files changed

+115
-113
lines changed

goldens/public-api/angular_devkit/build_angular/src/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ export interface BrowserBuilderOptions {
6161
resourcesOutputPath?: string;
6262
scripts?: ScriptElement[];
6363
serviceWorker?: boolean;
64-
// @deprecated
65-
showCircularDependencies?: boolean;
6664
sourceMap?: SourceMapUnion;
6765
statsJson?: boolean;
6866
stylePreprocessorOptions?: StylePreprocessorOptions;
@@ -263,8 +261,6 @@ export interface ServerBuilderOptions {
263261
preserveSymlinks?: boolean;
264262
progress?: boolean;
265263
resourcesOutputPath?: string;
266-
// @deprecated
267-
showCircularDependencies?: boolean;
268264
sourceMap?: SourceMapUnion_3;
269265
statsJson?: boolean;
270266
stylePreprocessorOptions?: StylePreprocessorOptions_3;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"browserslist": "^4.9.1",
129129
"cacache": "15.3.0",
130130
"chokidar": "^3.5.2",
131-
"circular-dependency-plugin": "5.2.2",
132131
"common-tags": "^1.8.0",
133132
"conventional-commits-parser": "^3.0.0",
134133
"copy-webpack-plugin": "10.2.1",

packages/angular_devkit/build_angular/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ ts_library(
130130
"@npm//babel-plugin-istanbul",
131131
"@npm//browserslist",
132132
"@npm//cacache",
133-
"@npm//circular-dependency-plugin",
134133
"@npm//copy-webpack-plugin",
135134
"@npm//core-js",
136135
"@npm//critters",

packages/angular_devkit/build_angular/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"babel-plugin-istanbul": "6.1.1",
2727
"browserslist": "^4.9.1",
2828
"cacache": "15.3.0",
29-
"circular-dependency-plugin": "5.2.2",
3029
"copy-webpack-plugin": "10.2.1",
3130
"core-js": "3.20.3",
3231
"critters": "0.0.16",

packages/angular_devkit/build_angular/src/builders/browser/schema.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,6 @@
329329
"description": "Extract all licenses in a separate file.",
330330
"default": true
331331
},
332-
"showCircularDependencies": {
333-
"type": "boolean",
334-
"description": "Show circular dependency warnings on builds.",
335-
"default": false,
336-
"x-deprecated": "The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tooling."
337-
},
338332
"buildOptimizer": {
339333
"type": "boolean",
340334
"description": "Enables advanced build optimizations when using the 'aot' option.",

packages/angular_devkit/build_angular/src/builders/browser/tests/options/show-circular-dependencies_spec.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

packages/angular_devkit/build_angular/src/builders/server/schema.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,6 @@
177177
"description": "Extract all licenses in a separate file, in the case of production builds only.",
178178
"default": true
179179
},
180-
"showCircularDependencies": {
181-
"type": "boolean",
182-
"description": "Show circular dependency warnings on builds.",
183-
"default": false,
184-
"x-deprecated": "The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tooling."
185-
},
186180
"namedChunks": {
187181
"type": "boolean",
188182
"description": "Use file name for lazy loaded chunks.",

packages/angular_devkit/build_angular/src/utils/build-options.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export interface BuildOptions {
4949
deleteOutputPath?: boolean;
5050
preserveSymlinks?: boolean;
5151
extractLicenses?: boolean;
52-
showCircularDependencies?: boolean;
5352
buildOptimizer?: boolean;
5453
namedChunks?: boolean;
5554
crossOrigin?: CrossOrigin;

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,6 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
173173
);
174174
}
175175

176-
if (buildOptions.showCircularDependencies) {
177-
const CircularDependencyPlugin = require('circular-dependency-plugin');
178-
extraPlugins.push(
179-
new CircularDependencyPlugin({
180-
exclude: /[\\/]node_modules[\\/]/,
181-
}),
182-
);
183-
}
184-
185176
if (buildOptions.extractLicenses) {
186177
const LicenseWebpackPlugin = require('license-webpack-plugin').LicenseWebpackPlugin;
187178
extraPlugins.push(

packages/schematics/angular/migrations/migration-collection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"version": "14.0.0",
1010
"factory": "./update-14/update-tsconfig-target",
1111
"description": "Update TypeScript compilation target to 'ES2020'."
12+
},
13+
"remove-show-circular-dependencies-option": {
14+
"version": "14.0.0",
15+
"factory": "./update-14/remove-show-circular-dependencies-option",
16+
"description": "Remove 'showCircularDependencies' option from browser and server builders."
1217
}
1318
}
1419
}

0 commit comments

Comments
 (0)