Skip to content

Commit 752d418

Browse files
authored
feat(angular): support angular cli v20.0.0-rc.3 (#30715)
Add support for the Angular CLI **20.0.0-rc.3** version.
1 parent 07baaaf commit 752d418

File tree

366 files changed

+13862
-6586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

366 files changed

+13862
-6586
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ CODEOWNERS
5151
/.nx/workflows/dynamic-changesets.yaml
5252
_files
5353
_solution
54+
55+
# this file uses TS import attributes which the current prettier version does not support
56+
tools/documentation/create-embeddings/src/main.mts

docs/generated/manifests/nx-api.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,66 @@
444444
}
445445
},
446446
"migrations": {
447+
"/nx-api/angular/migrations/update-angular-cli-version-20-0-0-rc-3": {
448+
"description": "Update the @angular/cli package version to 20.0.0-rc.3.",
449+
"file": "generated/packages/angular/migrations/update-angular-cli-version-20-0-0-rc-3.json",
450+
"hidden": false,
451+
"name": "update-angular-cli-version-20-0-0-rc-3",
452+
"version": "21.2.0-beta.0",
453+
"originalFilePath": "/packages/angular",
454+
"path": "/nx-api/angular/migrations/update-angular-cli-version-20-0-0-rc-3",
455+
"type": "migration"
456+
},
457+
"/nx-api/angular/migrations/migrate-provide-server-rendering-import": {
458+
"description": "Migrate imports of `provideServerRendering` from `@angular/platform-server` to `@angular/ssr`.",
459+
"file": "generated/packages/angular/migrations/migrate-provide-server-rendering-import.json",
460+
"hidden": false,
461+
"name": "migrate-provide-server-rendering-import",
462+
"version": "21.2.0-beta.0",
463+
"originalFilePath": "/packages/angular",
464+
"path": "/nx-api/angular/migrations/migrate-provide-server-rendering-import",
465+
"type": "migration"
466+
},
467+
"/nx-api/angular/migrations/replace-provide-server-routing": {
468+
"description": "Replace `provideServerRouting` with `provideServerRendering` using `withRoutes`.",
469+
"file": "generated/packages/angular/migrations/replace-provide-server-routing.json",
470+
"hidden": false,
471+
"name": "replace-provide-server-routing",
472+
"version": "21.2.0-beta.0",
473+
"originalFilePath": "/packages/angular",
474+
"path": "/nx-api/angular/migrations/replace-provide-server-routing",
475+
"type": "migration"
476+
},
477+
"/nx-api/angular/migrations/set-generator-defaults-for-previous-style-guide": {
478+
"description": "Update the generator defaults to maintain the previous style guide behavior.",
479+
"file": "generated/packages/angular/migrations/set-generator-defaults-for-previous-style-guide.json",
480+
"hidden": false,
481+
"name": "set-generator-defaults-for-previous-style-guide",
482+
"version": "21.2.0-beta.0",
483+
"originalFilePath": "/packages/angular",
484+
"path": "/nx-api/angular/migrations/set-generator-defaults-for-previous-style-guide",
485+
"type": "migration"
486+
},
487+
"/nx-api/angular/migrations/update-module-resolution": {
488+
"description": "Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this here: https://www.typescriptlang.org/tsconfig/#moduleResolution.",
489+
"file": "generated/packages/angular/migrations/update-module-resolution.json",
490+
"hidden": false,
491+
"name": "update-module-resolution",
492+
"version": "21.2.0-beta.0",
493+
"originalFilePath": "/packages/angular",
494+
"path": "/nx-api/angular/migrations/update-module-resolution",
495+
"type": "migration"
496+
},
497+
"/nx-api/angular/migrations/21.2.0-package-updates": {
498+
"description": "",
499+
"file": "generated/packages/angular/migrations/21.2.0-package-updates.json",
500+
"hidden": false,
501+
"name": "21.2.0-package-updates",
502+
"version": "21.2.0-beta.0",
503+
"originalFilePath": "/packages/angular",
504+
"path": "/nx-api/angular/migrations/21.2.0-package-updates",
505+
"type": "migration"
506+
},
447507
"/nx-api/angular/migrations/21.1.0-package-updates": {
448508
"description": "",
449509
"file": "generated/packages/angular/migrations/21.1.0-package-updates.json",
@@ -1687,6 +1747,26 @@
16871747
}
16881748
},
16891749
"migrations": {
1750+
"/nx-api/eslint/migrations/21.2.0-typescript-eslint-package-updates": {
1751+
"description": "",
1752+
"file": "generated/packages/eslint/migrations/21.2.0-typescript-eslint-package-updates.json",
1753+
"hidden": false,
1754+
"name": "21.2.0-typescript-eslint-package-updates",
1755+
"version": "21.2.0-beta.0",
1756+
"originalFilePath": "/packages/eslint",
1757+
"path": "/nx-api/eslint/migrations/21.2.0-typescript-eslint-package-updates",
1758+
"type": "migration"
1759+
},
1760+
"/nx-api/eslint/migrations/21.2.0-@typescript-eslint-package-updates": {
1761+
"description": "",
1762+
"file": "generated/packages/eslint/migrations/21.2.0-@typescript-eslint-package-updates.json",
1763+
"hidden": false,
1764+
"name": "21.2.0-@typescript-eslint-package-updates",
1765+
"version": "21.2.0-beta.0",
1766+
"originalFilePath": "/packages/eslint",
1767+
"path": "/nx-api/eslint/migrations/21.2.0-@typescript-eslint-package-updates",
1768+
"type": "migration"
1769+
},
16901770
"/nx-api/eslint/migrations/20.7.0-package-updates": {
16911771
"description": "",
16921772
"file": "generated/packages/eslint/migrations/20.7.0-package-updates.json",
@@ -2454,6 +2534,16 @@
24542534
}
24552535
},
24562536
"migrations": {
2537+
"/nx-api/js/migrations/21.2.0-package-updates": {
2538+
"description": "",
2539+
"file": "generated/packages/js/migrations/21.2.0-package-updates.json",
2540+
"hidden": false,
2541+
"name": "21.2.0-package-updates",
2542+
"version": "21.2.0-beta.0",
2543+
"originalFilePath": "/packages/js",
2544+
"path": "/nx-api/js/migrations/21.2.0-package-updates",
2545+
"type": "migration"
2546+
},
24572547
"/nx-api/js/migrations/20.7.1-beta.0-package-updates": {
24582548
"description": "",
24592549
"file": "generated/packages/js/migrations/20.7.1-beta.0-package-updates.json",
@@ -5724,6 +5814,16 @@
57245814
}
57255815
},
57265816
"migrations": {
5817+
"/nx-api/workspace/migrations/21.2.0-package-updates": {
5818+
"description": "",
5819+
"file": "generated/packages/workspace/migrations/21.2.0-package-updates.json",
5820+
"hidden": false,
5821+
"name": "21.2.0-package-updates",
5822+
"version": "21.2.0-beta.0",
5823+
"originalFilePath": "/packages/workspace",
5824+
"path": "/nx-api/workspace/migrations/21.2.0-package-updates",
5825+
"type": "migration"
5826+
},
57275827
"/nx-api/workspace/migrations/20.4.0-package-updates": {
57285828
"description": "",
57295829
"file": "generated/packages/workspace/migrations/20.4.0-package-updates.json",

docs/generated/packages-metadata.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,66 @@
439439
}
440440
],
441441
"migrations": [
442+
{
443+
"description": "Update the @angular/cli package version to 20.0.0-rc.3.",
444+
"file": "generated/packages/angular/migrations/update-angular-cli-version-20-0-0-rc-3.json",
445+
"hidden": false,
446+
"name": "update-angular-cli-version-20-0-0-rc-3",
447+
"version": "21.2.0-beta.0",
448+
"originalFilePath": "/packages/angular",
449+
"path": "angular/migrations/update-angular-cli-version-20-0-0-rc-3",
450+
"type": "migration"
451+
},
452+
{
453+
"description": "Migrate imports of `provideServerRendering` from `@angular/platform-server` to `@angular/ssr`.",
454+
"file": "generated/packages/angular/migrations/migrate-provide-server-rendering-import.json",
455+
"hidden": false,
456+
"name": "migrate-provide-server-rendering-import",
457+
"version": "21.2.0-beta.0",
458+
"originalFilePath": "/packages/angular",
459+
"path": "angular/migrations/migrate-provide-server-rendering-import",
460+
"type": "migration"
461+
},
462+
{
463+
"description": "Replace `provideServerRouting` with `provideServerRendering` using `withRoutes`.",
464+
"file": "generated/packages/angular/migrations/replace-provide-server-routing.json",
465+
"hidden": false,
466+
"name": "replace-provide-server-routing",
467+
"version": "21.2.0-beta.0",
468+
"originalFilePath": "/packages/angular",
469+
"path": "angular/migrations/replace-provide-server-routing",
470+
"type": "migration"
471+
},
472+
{
473+
"description": "Update the generator defaults to maintain the previous style guide behavior.",
474+
"file": "generated/packages/angular/migrations/set-generator-defaults-for-previous-style-guide.json",
475+
"hidden": false,
476+
"name": "set-generator-defaults-for-previous-style-guide",
477+
"version": "21.2.0-beta.0",
478+
"originalFilePath": "/packages/angular",
479+
"path": "angular/migrations/set-generator-defaults-for-previous-style-guide",
480+
"type": "migration"
481+
},
482+
{
483+
"description": "Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this here: https://www.typescriptlang.org/tsconfig/#moduleResolution.",
484+
"file": "generated/packages/angular/migrations/update-module-resolution.json",
485+
"hidden": false,
486+
"name": "update-module-resolution",
487+
"version": "21.2.0-beta.0",
488+
"originalFilePath": "/packages/angular",
489+
"path": "angular/migrations/update-module-resolution",
490+
"type": "migration"
491+
},
492+
{
493+
"description": "",
494+
"file": "generated/packages/angular/migrations/21.2.0-package-updates.json",
495+
"hidden": false,
496+
"name": "21.2.0-package-updates",
497+
"version": "21.2.0-beta.0",
498+
"originalFilePath": "/packages/angular",
499+
"path": "angular/migrations/21.2.0-package-updates",
500+
"type": "migration"
501+
},
442502
{
443503
"description": "",
444504
"file": "generated/packages/angular/migrations/21.1.0-package-updates.json",
@@ -1675,6 +1735,26 @@
16751735
}
16761736
],
16771737
"migrations": [
1738+
{
1739+
"description": "",
1740+
"file": "generated/packages/eslint/migrations/21.2.0-typescript-eslint-package-updates.json",
1741+
"hidden": false,
1742+
"name": "21.2.0-typescript-eslint-package-updates",
1743+
"version": "21.2.0-beta.0",
1744+
"originalFilePath": "/packages/eslint",
1745+
"path": "eslint/migrations/21.2.0-typescript-eslint-package-updates",
1746+
"type": "migration"
1747+
},
1748+
{
1749+
"description": "",
1750+
"file": "generated/packages/eslint/migrations/21.2.0-@typescript-eslint-package-updates.json",
1751+
"hidden": false,
1752+
"name": "21.2.0-@typescript-eslint-package-updates",
1753+
"version": "21.2.0-beta.0",
1754+
"originalFilePath": "/packages/eslint",
1755+
"path": "eslint/migrations/21.2.0-@typescript-eslint-package-updates",
1756+
"type": "migration"
1757+
},
16781758
{
16791759
"description": "",
16801760
"file": "generated/packages/eslint/migrations/20.7.0-package-updates.json",
@@ -2436,6 +2516,16 @@
24362516
}
24372517
],
24382518
"migrations": [
2519+
{
2520+
"description": "",
2521+
"file": "generated/packages/js/migrations/21.2.0-package-updates.json",
2522+
"hidden": false,
2523+
"name": "21.2.0-package-updates",
2524+
"version": "21.2.0-beta.0",
2525+
"originalFilePath": "/packages/js",
2526+
"path": "js/migrations/21.2.0-package-updates",
2527+
"type": "migration"
2528+
},
24392529
{
24402530
"description": "",
24412531
"file": "generated/packages/js/migrations/20.7.1-beta.0-package-updates.json",
@@ -5686,6 +5776,16 @@
56865776
}
56875777
],
56885778
"migrations": [
5779+
{
5780+
"description": "",
5781+
"file": "generated/packages/workspace/migrations/21.2.0-package-updates.json",
5782+
"hidden": false,
5783+
"name": "21.2.0-package-updates",
5784+
"version": "21.2.0-beta.0",
5785+
"originalFilePath": "/packages/workspace",
5786+
"path": "workspace/migrations/21.2.0-package-updates",
5787+
"type": "migration"
5788+
},
56895789
{
56905790
"description": "",
56915791
"file": "generated/packages/workspace/migrations/20.4.0-package-updates.json",

docs/generated/packages/angular/executors/application.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"description": "The full path for the browser entry point to the application, relative to the current workspace."
5555
},
5656
"server": {
57-
"type": "string",
5857
"description": "The full path for the server entry point to the application, relative to the current workspace.",
5958
"oneOf": [
6059
{
@@ -80,7 +79,7 @@
8079
},
8180
"deployUrl": {
8281
"type": "string",
83-
"description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations. _Note: this is only supported in Angular versions >= 17.3.0_."
82+
"description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
8483
},
8584
"security": {
8685
"description": "Security features to protect against XSS and other common attacks. _Note: this is only supported in Angular versions >= 19.0.0_.",
@@ -226,7 +225,7 @@
226225
"clearScreen": {
227226
"type": "boolean",
228227
"default": false,
229-
"description": "Automatically clear the terminal screen during rebuilds. _Note: this is only supported in Angular versions >= 17.2.0_."
228+
"description": "Automatically clear the terminal screen during rebuilds."
230229
},
231230
"optimization": {
232231
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
@@ -259,7 +258,7 @@
259258
},
260259
"removeSpecialComments": {
261260
"type": "boolean",
262-
"description": "Remove comments in global CSS that contains '@license' or '@preserve' or that starts with '//!' or '/*!'. _Note: this is only supported in Angular versions >= 17.1.0_.",
261+
"description": "Remove comments in global CSS that contains '@license' or '@preserve' or that starts with '//!' or '/*!'.",
263262
"default": true
264263
}
265264
},
@@ -293,17 +292,22 @@
293292
]
294293
},
295294
"loader": {
296-
"description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `empty` considers the content to be empty and not include it in bundles. _Note: this is only supported in Angular versions >= 17.1.0_.",
295+
"description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `empty` considers the content to be empty and not include it in bundles.",
297296
"type": "object",
298297
"patternProperties": {
299298
"^\\.\\S+$": { "enum": ["text", "binary", "file", "empty"] }
300299
}
301300
},
302301
"define": {
303-
"description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced. _Note: this is only supported in Angular versions >= 17.2.0_.",
302+
"description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.",
304303
"type": "object",
305304
"additionalProperties": { "type": "string" }
306305
},
306+
"conditions": {
307+
"description": "Custom package resolution conditions used to resolve conditional exports/imports. Defaults to ['module', 'development'/'production']. The following special conditions are always present if the requirements are satisfied: 'default', 'import', 'require', 'browser', 'node'. _Note: this is only supported in Angular versions >= 20.0.0_.",
308+
"type": "array",
309+
"items": { "type": "string" }
310+
},
307311
"fileReplacements": {
308312
"description": "Replace compilation source files with other compilation source files in the build.",
309313
"type": "array",
@@ -322,7 +326,7 @@
322326
"default": []
323327
},
324328
"outputPath": {
325-
"description": "Specify the output path relative to workspace root. _Note: the object notation is only supported in Angular versions >= 17.1.0_.",
329+
"description": "Specify the output path relative to workspace root.",
326330
"oneOf": [
327331
{
328332
"type": "object",
@@ -387,6 +391,11 @@
387391
"type": "boolean",
388392
"description": "Resolve vendor packages source maps.",
389393
"default": false
394+
},
395+
"sourcesContent": {
396+
"type": "boolean",
397+
"description": "Output original source content for files within the source map. _Note: this is only supported in Angular versions >= 20.0.0_.",
398+
"default": true
390399
}
391400
},
392401
"additionalProperties": false
@@ -511,7 +520,7 @@
511520
"preloadInitial": {
512521
"type": "boolean",
513522
"default": true,
514-
"description": "Generates 'preload', 'modulepreload', and 'preconnect' link elements for initial application files and resources. _Note: this is only supported in Angular versions >= 17.1.0_."
523+
"description": "Generates 'preload', 'modulepreload', and 'preconnect' link elements for initial application files and resources."
515524
}
516525
},
517526
"required": ["input"]
@@ -694,12 +703,12 @@
694703
}
695704
},
696705
"indexHtmlTransformer": {
697-
"description": "Path to a file exposing a default function to transform the `index.html` file. _Note: this is only supported in Angular versions >= 17.1.0_.",
706+
"description": "Path to a file exposing a default function to transform the `index.html` file.",
698707
"type": "string"
699708
}
700709
},
701710
"additionalProperties": false,
702-
"required": ["outputPath", "index", "browser", "tsConfig"],
711+
"required": ["outputPath", "tsConfig"],
703712
"definitions": {
704713
"assetPattern": {
705714
"oneOf": [

0 commit comments

Comments
 (0)