Skip to content

Commit 8baddb5

Browse files
authored
feat(angular): support angular 17.3.0 (#22202)
1 parent d058c8c commit 8baddb5

File tree

35 files changed

+2840
-802
lines changed

35 files changed

+2840
-802
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
"type": "string",
6767
"description": "The full path for the TypeScript configuration file, relative to the current workspace."
6868
},
69+
"deployUrl": {
70+
"type": "string",
71+
"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_."
72+
},
6973
"scripts": {
7074
"description": "Global scripts to be included in the build.",
7175
"type": "array",
@@ -252,9 +256,9 @@
252256
"properties": {
253257
"replace": {
254258
"type": "string",
255-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
259+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
256260
},
257-
"with": { "type": "string", "pattern": "\\.(([cm]?j|t)sx?|json)$" }
261+
"with": { "type": "string", "pattern": "\\.(([cm]?[jt])sx?|json)$" }
258262
},
259263
"additionalProperties": false,
260264
"required": ["replace", "with"]
@@ -673,9 +677,9 @@
673677
"properties": {
674678
"replace": {
675679
"type": "string",
676-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
680+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
677681
},
678-
"with": { "type": "string", "pattern": "\\.(([cm]?j|t)sx?|json)$" }
682+
"with": { "type": "string", "pattern": "\\.(([cm]?[jt])sx?|json)$" }
679683
},
680684
"additionalProperties": false,
681685
"required": ["replace", "with"]

docs/generated/packages/angular/executors/browser-esbuild.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@
235235
"properties": {
236236
"replace": {
237237
"type": "string",
238-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
238+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
239239
},
240-
"with": { "type": "string", "pattern": "\\.(([cm]?j|t)sx?|json)$" }
240+
"with": { "type": "string", "pattern": "\\.(([cm]?[jt])sx?|json)$" }
241241
},
242242
"additionalProperties": false,
243243
"required": ["replace", "with"]
@@ -307,8 +307,7 @@
307307
},
308308
"deployUrl": {
309309
"type": "string",
310-
"description": "URL where files will be deployed.",
311-
"x-deprecated": "Use \"baseHref\" option, \"APP_BASE_HREF\" DI token or a combination of both instead. For more information, see https://angular.io/guide/deployment#the-deploy-url."
310+
"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."
312311
},
313312
"verbose": {
314313
"type": "boolean",
@@ -587,9 +586,9 @@
587586
"properties": {
588587
"replace": {
589588
"type": "string",
590-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
589+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
591590
},
592-
"with": { "type": "string", "pattern": "\\.(([cm]?j|t)sx?|json)$" }
591+
"with": { "type": "string", "pattern": "\\.(([cm]?[jt])sx?|json)$" }
593592
},
594593
"additionalProperties": false,
595594
"required": ["replace", "with"]

docs/generated/packages/angular/executors/webpack-browser.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@
251251
"properties": {
252252
"src": {
253253
"type": "string",
254-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
254+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
255255
},
256256
"replaceWith": {
257257
"type": "string",
258-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
258+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
259259
}
260260
},
261261
"additionalProperties": false,
@@ -266,11 +266,11 @@
266266
"properties": {
267267
"replace": {
268268
"type": "string",
269-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
269+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
270270
},
271271
"with": {
272272
"type": "string",
273-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
273+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
274274
}
275275
},
276276
"additionalProperties": false,
@@ -344,8 +344,7 @@
344344
},
345345
"deployUrl": {
346346
"type": "string",
347-
"description": "URL where files will be deployed.",
348-
"x-deprecated": "Use `baseHref` option, `APP_BASE_HREF` DI token or a combination of both instead. For more information, see https://angular.io/guide/deployment#the-deploy-url."
347+
"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."
349348
},
350349
"verbose": {
351350
"type": "boolean",
@@ -609,11 +608,11 @@
609608
"properties": {
610609
"src": {
611610
"type": "string",
612-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
611+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
613612
},
614613
"replaceWith": {
615614
"type": "string",
616-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
615+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
617616
}
618617
},
619618
"additionalProperties": false,
@@ -624,11 +623,11 @@
624623
"properties": {
625624
"replace": {
626625
"type": "string",
627-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
626+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
628627
},
629628
"with": {
630629
"type": "string",
631-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
630+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
632631
}
633632
},
634633
"additionalProperties": false,

docs/generated/packages/angular/executors/webpack-server.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@
110110
"properties": {
111111
"src": {
112112
"type": "string",
113-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
113+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
114114
},
115115
"replaceWith": {
116116
"type": "string",
117-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
117+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
118118
}
119119
},
120120
"additionalProperties": false,
@@ -125,11 +125,11 @@
125125
"properties": {
126126
"replace": {
127127
"type": "string",
128-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
128+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
129129
},
130130
"with": {
131131
"type": "string",
132-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
132+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
133133
}
134134
},
135135
"additionalProperties": false,
@@ -182,8 +182,7 @@
182182
},
183183
"deployUrl": {
184184
"type": "string",
185-
"description": "URL where files will be deployed.",
186-
"x-deprecated": "Use \"baseHref\" browser builder option, \"APP_BASE_HREF\" DI token or a combination of both instead. For more information, see https://angular.io/guide/deployment#the-deploy-url."
185+
"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."
187186
},
188187
"vendorChunk": {
189188
"type": "boolean",
@@ -340,11 +339,11 @@
340339
"properties": {
341340
"src": {
342341
"type": "string",
343-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
342+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
344343
},
345344
"replaceWith": {
346345
"type": "string",
347-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
346+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
348347
}
349348
},
350349
"additionalProperties": false,
@@ -355,11 +354,11 @@
355354
"properties": {
356355
"replace": {
357356
"type": "string",
358-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
357+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
359358
},
360359
"with": {
361360
"type": "string",
362-
"pattern": "\\.(([cm]?j|t)sx?|json)$"
361+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
363362
}
364363
},
365364
"additionalProperties": false,

package.json

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@
2626
},
2727
"devDependencies": {
2828
"@actions/core": "^1.10.0",
29-
"@angular-devkit/architect": "0.1702.0",
30-
"@angular-devkit/build-angular": "17.2.0",
31-
"@angular-devkit/core": "17.2.0",
32-
"@angular-devkit/schematics": "17.2.0",
33-
"@angular-eslint/eslint-plugin": "17.0.1",
34-
"@angular-eslint/eslint-plugin-template": "17.0.1",
35-
"@angular-eslint/template-parser": "17.0.1",
36-
"@angular/cli": "~17.2.0",
37-
"@angular/common": "17.2.1",
38-
"@angular/compiler": "17.2.1",
39-
"@angular/compiler-cli": "17.2.1",
40-
"@angular/core": "17.2.1",
41-
"@angular/router": "17.2.1",
29+
"@angular-devkit/architect": "~0.1703.0",
30+
"@angular-devkit/build-angular": "~17.3.0",
31+
"@angular-devkit/core": "~17.3.0",
32+
"@angular-devkit/schematics": "~17.3.0",
33+
"@angular-eslint/eslint-plugin": "~17.3.0",
34+
"@angular-eslint/eslint-plugin-template": "~17.3.0",
35+
"@angular-eslint/template-parser": "~17.3.0",
36+
"@angular/cli": "~17.3.0",
37+
"@angular/common": "~17.3.0",
38+
"@angular/compiler": "~17.3.0",
39+
"@angular/compiler-cli": "~17.3.0",
40+
"@angular/core": "~17.3.0",
41+
"@angular/router": "~17.3.0",
4242
"@babel/core": "^7.23.2",
4343
"@babel/helper-create-regexp-features-plugin": "^7.22.9",
4444
"@babel/plugin-transform-runtime": "^7.23.2",
@@ -93,7 +93,7 @@
9393
"@rollup/plugin-json": "^4.1.0",
9494
"@rollup/plugin-node-resolve": "^13.0.4",
9595
"@rollup/plugin-url": "^7.0.0",
96-
"@schematics/angular": "17.2.0",
96+
"@schematics/angular": "~17.3.0",
9797
"@side/jest-runtime": "^1.1.0",
9898
"@storybook/addon-essentials": "7.5.3",
9999
"@storybook/core-server": "7.5.3",
@@ -132,10 +132,10 @@
132132
"@types/tmp": "^0.2.0",
133133
"@types/yargs": "^17.0.10",
134134
"@types/yarnpkg__lockfile": "^1.1.5",
135-
"@typescript-eslint/eslint-plugin": "6.18.1",
136-
"@typescript-eslint/parser": "6.18.1",
137-
"@typescript-eslint/type-utils": "6.18.1",
138-
"@typescript-eslint/utils": "6.18.1",
135+
"@typescript-eslint/eslint-plugin": "^7.3.0",
136+
"@typescript-eslint/parser": "^7.3.0",
137+
"@typescript-eslint/type-utils": "^7.3.0",
138+
"@typescript-eslint/utils": "^7.3.0",
139139
"@xstate/immer": "0.3.1",
140140
"@xstate/inspect": "0.7.0",
141141
"@xstate/react": "3.0.1",
@@ -167,7 +167,7 @@
167167
"ejs": "^3.1.7",
168168
"enhanced-resolve": "^5.8.3",
169169
"esbuild": "0.19.5",
170-
"eslint": "8.48.0",
170+
"eslint": "~8.57.0",
171171
"eslint-config-next": "14.0.4",
172172
"eslint-config-prettier": "9.0.0",
173173
"eslint-plugin-cypress": "2.14.0",
@@ -228,7 +228,7 @@
228228
"mini-css-extract-plugin": "~2.4.7",
229229
"minimatch": "9.0.3",
230230
"next-sitemap": "^3.1.10",
231-
"ng-packagr": "17.2.0",
231+
"ng-packagr": "~17.3.0",
232232
"node-fetch": "^2.6.7",
233233
"npm-package-arg": "11.0.1",
234234
"nuxt": "^3.10.0",
@@ -239,7 +239,7 @@
239239
"ora": "5.3.0",
240240
"parse-markdown-links": "^1.0.4",
241241
"parse5": "4.0.0",
242-
"piscina": "^4.2.1",
242+
"piscina": "^4.4.0",
243243
"postcss": "8.4.19",
244244
"postcss-import": "~14.1.0",
245245
"postcss-preset-env": "~7.5.0",
@@ -283,7 +283,7 @@
283283
"tsconfig-paths-webpack-plugin": "4.0.0",
284284
"typedoc": "0.25.12",
285285
"typedoc-plugin-markdown": "3.17.1",
286-
"typescript": "~5.3.2",
286+
"typescript": "~5.4.2",
287287
"unist-builder": "^4.0.0",
288288
"unzipper": "^0.10.11",
289289
"url-loader": "^4.1.1",
@@ -374,4 +374,3 @@
374374
]
375375
}
376376
}
377-

packages/angular/migrations.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,15 @@
377377
"version": "18.1.1-beta.0",
378378
"description": "Ensure targetDefaults inputs for task hashing when '@nx/angular:webpack-browser' is used are correct for Module Federation.",
379379
"factory": "./src/migrations/update-18-1-1/fix-target-defaults-inputs"
380+
},
381+
"update-angular-cli-version-17-3-0": {
382+
"cli": "nx",
383+
"version": "18.2.0-beta.0",
384+
"requires": {
385+
"@angular/core": ">=17.3.0"
386+
},
387+
"description": "Update the @angular/cli package version to ~17.3.0.",
388+
"factory": "./src/migrations/update-18-2-0/update-angular-cli"
380389
}
381390
},
382391
"packageJsonUpdates": {
@@ -1718,6 +1727,84 @@
17181727
"alwaysAddToPackageJson": false
17191728
}
17201729
}
1730+
},
1731+
"18.2.0": {
1732+
"version": "18.2.0-beta.0",
1733+
"x-prompt": "Do you want to update the Angular version to v17.3?",
1734+
"requires": {
1735+
"@angular/core": ">=17.2.0 <17.3.0"
1736+
},
1737+
"packages": {
1738+
"@angular-devkit/build-angular": {
1739+
"version": "~17.3.0",
1740+
"alwaysAddToPackageJson": false
1741+
},
1742+
"@angular-devkit/core": {
1743+
"version": "~17.3.0",
1744+
"alwaysAddToPackageJson": false
1745+
},
1746+
"@angular-devkit/schematics": {
1747+
"version": "~17.3.0",
1748+
"alwaysAddToPackageJson": false
1749+
},
1750+
"@angular/pwa": {
1751+
"version": "~17.3.0",
1752+
"alwaysAddToPackageJson": false
1753+
},
1754+
"@angular/ssr": {
1755+
"version": "~17.3.0",
1756+
"alwaysAddToPackageJson": false
1757+
},
1758+
"@schematics/angular": {
1759+
"version": "~17.3.0",
1760+
"alwaysAddToPackageJson": false
1761+
},
1762+
"@angular-devkit/architect": {
1763+
"version": "~0.1703.0",
1764+
"alwaysAddToPackageJson": false
1765+
},
1766+
"@angular-devkit/build-webpack": {
1767+
"version": "~0.1703.0",
1768+
"alwaysAddToPackageJson": false
1769+
},
1770+
"@angular/core": {
1771+
"version": "~17.3.0",
1772+
"alwaysAddToPackageJson": true
1773+
},
1774+
"@angular/material": {
1775+
"version": "~17.3.0",
1776+
"alwaysAddToPackageJson": false
1777+
},
1778+
"@angular/cdk": {
1779+
"version": "~17.3.0",
1780+
"alwaysAddToPackageJson": false
1781+
},
1782+
"ng-packagr": {
1783+
"version": "~17.3.0",
1784+
"alwaysAddToPackageJson": false
1785+
}
1786+
}
1787+
},
1788+
"18.2.0-angular-eslint": {
1789+
"version": "18.2.0-beta.0",
1790+
"requires": {
1791+
"eslint": "^7.20.0 || ^8.0.0",
1792+
"@angular/core": ">= 17.0.0 < 18.0.0"
1793+
},
1794+
"packages": {
1795+
"@angular-eslint/eslint-plugin": {
1796+
"version": "~17.3.0",
1797+
"alwaysAddToPackageJson": false
1798+
},
1799+
"@angular-eslint/eslint-plugin-template": {
1800+
"version": "~17.3.0",
1801+
"alwaysAddToPackageJson": false
1802+
},
1803+
"@angular-eslint/template-parser": {
1804+
"version": "~17.3.0",
1805+
"alwaysAddToPackageJson": false
1806+
}
1807+
}
17211808
}
17221809
}
17231810
}

0 commit comments

Comments
 (0)