Skip to content

Commit 310768c

Browse files
committed
feat!(dependencies): Upgrade to Angular 17
1 parent d8125e5 commit 310768c

File tree

7 files changed

+2608
-2875
lines changed

7 files changed

+2608
-2875
lines changed

Diff for: angular.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"index": "src/index.html",
1616
"main": "src/main.ts",
1717
"tsConfig": "src/tsconfig.app.json",
18-
"polyfills": "src/polyfills.ts",
18+
"polyfills": ["zone.js"],
1919
"assets": [
2020
"src/assets",
2121
"src/favicon.ico"
@@ -54,26 +54,26 @@
5454
"serve": {
5555
"builder": "@angular-devkit/build-angular:dev-server",
5656
"options": {
57-
"browserTarget": "ngx-ui-switch:build"
57+
"buildTarget": "ngx-ui-switch:build"
5858
},
5959
"configurations": {
6060
"production": {
61-
"browserTarget": "ngx-ui-switch:build:production"
61+
"buildTarget": "ngx-ui-switch:build:production"
6262
}
6363
}
6464
},
6565
"extract-i18n": {
6666
"builder": "@angular-devkit/build-angular:extract-i18n",
6767
"options": {
68-
"browserTarget": "ngx-ui-switch:build"
68+
"buildTarget": "ngx-ui-switch:build"
6969
}
7070
},
7171
"test": {
7272
"builder": "@angular-devkit/build-angular:karma",
7373
"options": {
7474
"main": "src/test.ts",
7575
"karmaConfig": "./karma.conf.js",
76-
"polyfills": "src/polyfills.ts",
76+
"polyfills": ["zone.js"],
7777
"tsConfig": "src/tsconfig.spec.json",
7878
"scripts": [],
7979
"styles": [

Diff for: package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,30 @@
3939
"cypress:run": "cypress run"
4040
},
4141
"dependencies": {
42-
"@angular/animations": "^16.0.0",
43-
"@angular/common": "^16.0.0",
44-
"@angular/compiler": "^16.0.0",
45-
"@angular/core": "^16.0.0",
46-
"@angular/forms": "^16.0.0",
47-
"@angular/platform-browser": "^16.0.0",
48-
"@angular/platform-browser-dynamic": "^16.0.0",
49-
"@angular/router": "^16.0.0",
42+
"@angular/animations": "^17.0.0",
43+
"@angular/common": "^17.0.0",
44+
"@angular/compiler": "^17.0.0",
45+
"@angular/core": "^17.0.0",
46+
"@angular/forms": "^17.0.0",
47+
"@angular/platform-browser": "^17.0.0",
48+
"@angular/platform-browser-dynamic": "^17.0.0",
49+
"@angular/router": "^17.0.0",
5050
"bootstrap": "^4.3.1",
5151
"font-awesome": "^4.7.0",
5252
"rxjs": "^7.5.5",
5353
"tslib": "^2.3.0",
54-
"zone.js": "~0.13.1"
54+
"zone.js": "~0.14.3"
5555
},
5656
"devDependencies": {
57-
"@angular-devkit/build-angular": "^16.0.0",
58-
"@angular-eslint/builder": "^16.0.0",
59-
"@angular-eslint/eslint-plugin": "^16.0.0",
60-
"@angular-eslint/eslint-plugin-template": "^16.0.0",
61-
"@angular-eslint/schematics": "^16.0.0",
62-
"@angular-eslint/template-parser": "^16.0.0",
63-
"@angular/cli": "^16.0.0",
64-
"@angular/compiler-cli": "^16.0.0",
65-
"@angular/language-service": "^16.0.0",
57+
"@angular-devkit/build-angular": "^17.0.0",
58+
"@angular-eslint/builder": "^17.0.0",
59+
"@angular-eslint/eslint-plugin": "^17.0.0",
60+
"@angular-eslint/eslint-plugin-template": "^17.0.0",
61+
"@angular-eslint/schematics": "^17.0.0",
62+
"@angular-eslint/template-parser": "^17.0.0",
63+
"@angular/cli": "^17.0.0",
64+
"@angular/compiler-cli": "^17.0.0",
65+
"@angular/language-service": "^17.0.0",
6666
"@cypress/schematic": "2.5.2",
6767
"@types/jasmine": "^4.3.0",
6868
"@types/jasminewd2": "^2.0.10",
@@ -80,11 +80,11 @@
8080
"karma-coverage-istanbul-reporter": "~3.0.2",
8181
"karma-jasmine": "~4.0.0",
8282
"karma-jasmine-html-reporter": "^1.5.0",
83-
"ng-packagr": "^16.1.0",
83+
"ng-packagr": "^17.0.0",
8484
"sass": "^1.35.1",
8585
"ts-node": "^10.9.1",
8686
"tsickle": "^0.46.3",
8787
"typedoc": "^0.14.2",
88-
"typescript": "^4.9.5"
88+
"typescript": "~5.2.0"
8989
}
9090
}

Diff for: src/polyfills.ts

-53
This file was deleted.

Diff for: src/tsconfig.app.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"types": []
77
},
88
"files": [
9-
"./main.ts",
10-
"./polyfills.ts"
9+
"./main.ts"
1110
],
1211
"include": [
1312
"./**/*.d.ts"

Diff for: src/tsconfig.spec.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
]
1010
},
1111
"files": [
12-
"test.ts",
13-
"polyfills.ts"
12+
"test.ts"
1413
],
1514
"include": [
1615
"**/*.spec.ts",

Diff for: tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
"experimentalDecorators": true,
1212
"noUnusedLocals": true,
1313
"target": "ES2022",
14+
"module": "ES2022",
1415
"skipLibCheck": true,
1516
"strictNullChecks": true,
1617
"typeRoots": [
1718
"node_modules/@types"
1819
],
1920
"lib": [
20-
"es2016",
21+
"ES2022",
2122
"dom"
2223
],
2324
"useDefineForClassFields": false

0 commit comments

Comments
 (0)