Skip to content

Commit 053c8b7

Browse files
authored
Chore: Angular v20 support (#1002)
* Updated packages and peer dependencies to angular v20 * Update typescript version test project to v5.8 * fix for packages of standalone test project * updated standalone test project to v20 * Updated standalone test project to v20 * updated modules base test project to v20 * updated downstream-projects file with the new test projects. * adjusted dependencies to pass the dependency check task. * fix for typescript configuration.
1 parent dc6f516 commit 053c8b7

Some content is hidden

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

49 files changed

+2918
-2807
lines changed

downstream_projects.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"packageDir": "./dist",
33
"projects": {
44
"sample-app-angular": "https://github.com/ui-router/sample-app-angular.git",
5-
"angular19": "./test-angular-versions/v19",
6-
"angular19standalone": "./test-angular-versions/v19-standalone",
7-
"typescript56": "./test-typescript-versions/typescript5.6"
5+
"angular20": "./test-angular-versions/v20",
6+
"angular20standalone": "./test-angular-versions/v20-standalone",
7+
"typescript58": "./test-typescript-versions/typescript5.8"
88
}
99
}

package.json

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,41 +43,43 @@
4343
"license": "MIT",
4444
"distDir": "dist",
4545
"peerDependencies": {
46-
"@angular/common": "^19.0.0",
47-
"@angular/core": "^19.0.0",
46+
"@angular/common": "^20.0.0",
47+
"@angular/core": "^20.0.0",
4848
"@uirouter/core": "^6.1.1",
4949
"@uirouter/rx": "^1.0.0"
5050
},
5151
"devDependencies": {
52-
"@angular-devkit/build-angular": "^19.0.6",
53-
"@angular/animations": "^19.0.5",
54-
"@angular/common": "^19.0.5",
55-
"@angular/compiler": "^19.0.5",
56-
"@angular/compiler-cli": "^19.0.5",
57-
"@angular/core": "^19.0.5",
58-
"@angular/platform-browser": "^19.0.5",
59-
"@angular/platform-browser-dynamic": "^19.0.5",
60-
"@types/jest": "^29.5.14",
61-
"@types/node": "^20.17.10",
52+
"@angular-devkit/build-angular": "^20.1.5",
53+
"@angular/common": "^20.1.6",
54+
"@angular/compiler": "^20.1.6",
55+
"@angular/compiler-cli": "^20.1.6",
56+
"@angular/core": "^20.1.6",
57+
"@angular/platform-browser": "^20.1.6",
58+
"@angular/platform-browser-dynamic": "^20.1.6",
59+
"@types/jest": "^30.0.0",
60+
"@types/node": "^24.1.0",
6261
"@uirouter/core": "^6.1.1",
63-
"@uirouter/publish-scripts": "2.6.2",
62+
"@uirouter/publish-scripts": "2.6.3",
6463
"@uirouter/rx": "^1.0.0",
6564
"husky": "^7.0.4",
6665
"jest": "^29.7.0",
67-
"jest-preset-angular": "^14.4.2",
68-
"ng-packagr": "^19.0.1",
69-
"postcss": "^8.4.49",
66+
"jest-environment-jsdom": "^29.7.0",
67+
"jest-preset-angular": "^14.6.1",
68+
"jsdom": "^26.1.0",
69+
"ng-packagr": "^20.1.0",
70+
"picomatch": "4.0.3",
71+
"postcss": "^8.5.6",
7072
"prettier": "^2.8.8",
7173
"pretty-quick": "^3.3.1",
72-
"rxjs": "~7.8.0",
74+
"rxjs": "~7.8.2",
7375
"rxjs-compat": "^6.5.4",
74-
"schema-utils": "^4.3.0",
76+
"schema-utils": "^4.3.2",
7577
"ts-node": "10.9.2",
7678
"tslib": "^2.8.1",
7779
"tslint": "^6.1.0",
78-
"typescript": "~5.6.3",
79-
"vite": "^5.1.8",
80-
"zone.js": "~0.15.0"
80+
"typescript": "~5.8.3",
81+
"vite": "7.1.1",
82+
"zone.js": "~0.15.1"
8183
},
8284
"jest": {
8385
"preset": "jest-preset-angular",
@@ -87,7 +89,8 @@
8789
},
8890
"checkPeerDependencies": {
8991
"ignore": [
90-
"ajv"
92+
"ajv",
93+
"terser"
9194
]
9295
},
9396
"husky": {

test-angular-versions/v19-standalone/README.md renamed to test-angular-versions/v20-standalone/README.md

Lines changed: 2 additions & 2 deletions

test-angular-versions/v19-standalone/angular.json renamed to test-angular-versions/v20-standalone/angular.json

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"newProjectRoot": "projects",
88
"projects": {
9-
"v19-standalone": {
9+
"v20-standalone": {
1010
"projectType": "application",
1111
"schematics": {
1212
"@schematics/angular:class": {
@@ -39,9 +39,9 @@
3939
"prefix": "app",
4040
"architect": {
4141
"build": {
42-
"builder": "@angular-devkit/build-angular:application",
42+
"builder": "@angular/build:application",
4343
"options": {
44-
"outputPath": "dist/v19-standalone",
44+
"outputPath": "dist/v20-standalone",
4545
"index": "src/index.html",
4646
"browser": "src/main.ts",
4747
"polyfills": [
@@ -84,22 +84,22 @@
8484
"defaultConfiguration": "production"
8585
},
8686
"serve": {
87-
"builder": "@angular-devkit/build-angular:dev-server",
87+
"builder": "@angular/build:dev-server",
8888
"configurations": {
8989
"production": {
90-
"buildTarget": "v19-standalone:build:production"
90+
"buildTarget": "v20-standalone:build:production"
9191
},
9292
"development": {
93-
"buildTarget": "v19-standalone:build:development"
93+
"buildTarget": "v20-standalone:build:development"
9494
}
9595
},
9696
"defaultConfiguration": "development"
9797
},
9898
"extract-i18n": {
99-
"builder": "@angular-devkit/build-angular:extract-i18n"
99+
"builder": "@angular/build:extract-i18n"
100100
},
101101
"test": {
102-
"builder": "@angular-devkit/build-angular:karma",
102+
"builder": "@angular/build:karma",
103103
"options": {
104104
"polyfills": [
105105
"zone.js",
@@ -120,5 +120,31 @@
120120
}
121121
}
122122
}
123+
},
124+
"schematics": {
125+
"@schematics/angular:component": {
126+
"type": "component"
127+
},
128+
"@schematics/angular:directive": {
129+
"type": "directive"
130+
},
131+
"@schematics/angular:service": {
132+
"type": "service"
133+
},
134+
"@schematics/angular:guard": {
135+
"typeSeparator": "."
136+
},
137+
"@schematics/angular:interceptor": {
138+
"typeSeparator": "."
139+
},
140+
"@schematics/angular:module": {
141+
"typeSeparator": "."
142+
},
143+
"@schematics/angular:pipe": {
144+
"typeSeparator": "."
145+
},
146+
"@schematics/angular:resolver": {
147+
"typeSeparator": "."
148+
}
123149
}
124150
}

test-angular-versions/v19-standalone/package.json renamed to test-angular-versions/v20-standalone/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"name": "v19-standalone",
2+
"name": "v20-standalone",
33
"version": "0.0.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
88
"watch": "ng build --watch --configuration development",
99
"test": "npm run test:dev && npm run test:prod",
10-
"test:dev": "ng build --configuration development && cypress-runner run --path dist/v19-standalone/browser",
11-
"test:prod": "ng build --configuration production && cypress-runner run --path dist/v19-standalone/browser"
10+
"test:dev": "ng build --configuration development && cypress-runner run --path dist/v20-standalone/browser",
11+
"test:prod": "ng build --configuration production && cypress-runner run --path dist/v20-standalone/browser"
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/animations": "^19.0.5",
16-
"@angular/common": "^19.0.5",
17-
"@angular/compiler": "^19.0.5",
18-
"@angular/core": "^19.0.5",
19-
"@angular/forms": "^19.0.5",
20-
"@angular/platform-browser": "^19.0.5",
21-
"@angular/platform-browser-dynamic": "^19.0.5",
22-
"@angular/router": "^19.0.5",
15+
"@angular/animations": "^20.1.6",
16+
"@angular/common": "^20.1.6",
17+
"@angular/compiler": "^20.1.6",
18+
"@angular/core": "^20.1.6",
19+
"@angular/forms": "^20.1.6",
20+
"@angular/platform-browser": "^20.1.6",
21+
"@angular/platform-browser-dynamic": "^20.1.6",
22+
"@angular/router": "^20.1.6",
2323
"rxjs": "~7.8.0",
2424
"tslib": "^2.3.0",
2525
"zone.js": "~0.15.0",
@@ -29,17 +29,17 @@
2929
"@uirouter/rx": "*"
3030
},
3131
"devDependencies": {
32-
"@angular-devkit/build-angular": "^19.0.6",
33-
"@angular/cli": "^19.0.6",
34-
"@angular/compiler-cli": "^19.0.5",
32+
"@angular/build": "^20.1.5",
33+
"@angular/cli": "^20.1.5",
34+
"@angular/compiler-cli": "^20.1.6",
3535
"@types/jasmine": "~5.1.0",
3636
"jasmine-core": "~5.1.0",
3737
"karma": "~6.4.0",
3838
"karma-chrome-launcher": "~3.2.0",
3939
"karma-coverage": "~2.2.0",
4040
"karma-jasmine": "~5.1.0",
4141
"karma-jasmine-html-reporter": "~2.1.0",
42-
"typescript": "~5.6.3"
42+
"typescript": "~5.8.3"
4343
},
4444
"checkPeerDependencies": {
4545
"ignore": [

0 commit comments

Comments
 (0)