Skip to content

Commit d425288

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

File tree

5 files changed

+2618
-2821
lines changed

5 files changed

+2618
-2821
lines changed

Diff for: angular.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@
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": {

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

+14-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* file.
99
*
1010
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11-
* automatically update themselves. This includes recent versions of Safari, Chrome (including
12-
* Opera), Edge on the desktop, and iOS and Chrome on mobile.
11+
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12+
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
1313
*
1414
* Learn more in https://angular.io/guide/browser-support
1515
*/
@@ -18,14 +18,24 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21+
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
22+
// import 'classlist.js'; // Run `npm install --save classlist.js`.
23+
24+
/**
25+
* Web Animations `@angular/platform-browser/animations`
26+
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
27+
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
28+
*/
29+
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
30+
2131
/**
2232
* By default, zone.js will patch all possible macroTask and DomEvents
2333
* user can disable parts of macroTask/DomEvents patch by setting following flags
2434
* because those flags need to be set before `zone.js` being loaded, and webpack
2535
* will put import in the top of bundle, so user need to create a separate file
2636
* in this directory (for example: zone-flags.ts), and put the following flags
2737
* into that file, and then add the following code before importing zone.js.
28-
* import './zone-flags';
38+
* import './zone-flags.ts';
2939
*
3040
* The flags allowed in zone-flags.ts are listed here.
3141
*
@@ -45,8 +55,7 @@
4555
/***************************************************************************************************
4656
* Zone JS is required by default for Angular itself.
4757
*/
48-
import 'zone.js'; // Included with Angular CLI.
49-
58+
import 'zone.js'; // Included with Angular CLI.
5059

5160
/***************************************************************************************************
5261
* APPLICATION IMPORTS

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)