Skip to content

Commit e81392b

Browse files
committedDec 15, 2022
chore: update to Angular 15
update: - `@angular/*` to `^15.0.4` - `ng-packagr` to `^15.0.3` - `typescript` to `~4.8.4` - `@angular-eslint/*` to `^15.1.0` - `@typescript-eslint/*` to `^5.46.1` - `@types/jasmine` to `~4.3.1` - `@types/node` to `^16.18.9` - `eslint` to `^8.29.0` - `prettier` to `^2.8.1`
1 parent 25210f5 commit e81392b

File tree

16 files changed

+58
-133
lines changed

16 files changed

+58
-133
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
[npm-coreui-angular-badge-next]: https://img.shields.io/npm/v/@coreui/angular/next?style=flat-square&color=red
3636
[npm-coreui-angular]: https://www.npmjs.com/package/@coreui/angular
3737
[npm-coreui-angular-download]: https://img.shields.io/npm/dm/@coreui/angular.svg?style=flat-square
38-
[angular-badge]: https://img.shields.io/badge/angular-^14.2.0-lightgrey.svg?style=flat-square&logo=angular
38+
[angular-badge]: https://img.shields.io/badge/angular-^15.0.0-lightgrey.svg?style=flat-square&logo=angular
3939

4040
## Table of contents
4141

@@ -59,7 +59,7 @@
5959
Before you begin, make sure your development environment includes `Node.js®` and `npm` package manager.
6060

6161
###### Node.js
62-
[**Angular 14**](https://angular.io/guide/what-is-angular) requires `Node.js` LTS version `^14.15` or `^16.10`.
62+
[**Angular 15**](https://angular.io/guide/what-is-angular) requires `Node.js` LTS version `^14.20` or `^16.13` or `^18.10`.
6363

6464
- To check your version, run `node -v` in a terminal/console window.
6565
- To get `Node.js`, go to [nodejs.org](https://nodejs.org/).

‎angular.json

+8
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,13 @@
144144
}
145145
}
146146
}
147+
},
148+
"schematics": {
149+
"@angular-eslint/schematics:application": {
150+
"setParserOptionsProject": true
151+
},
152+
"@angular-eslint/schematics:library": {
153+
"setParserOptionsProject": true
154+
}
147155
}
148156
}

‎package.json

+29-29
Original file line numberDiff line numberDiff line change
@@ -35,50 +35,50 @@
3535
},
3636
"private": true,
3737
"dependencies": {
38-
"@angular/animations": "^14.2.12",
39-
"@angular/cdk": "^14.2.7",
40-
"@angular/common": "^14.2.12",
41-
"@angular/compiler": "^14.2.12",
42-
"@angular/core": "^14.2.12",
43-
"@angular/forms": "^14.2.12",
44-
"@angular/localize": "^14.2.12",
45-
"@angular/platform-browser": "^14.2.12",
46-
"@angular/platform-browser-dynamic": "^14.2.12",
47-
"@angular/router": "^14.2.12",
38+
"@angular/animations": "^15.0.4",
39+
"@angular/cdk": "^15.0.3",
40+
"@angular/common": "^15.0.4",
41+
"@angular/compiler": "^15.0.4",
42+
"@angular/core": "^15.0.4",
43+
"@angular/forms": "^15.0.4",
44+
"@angular/localize": "^15.0.4",
45+
"@angular/platform-browser": "^15.0.4",
46+
"@angular/platform-browser-dynamic": "^15.0.4",
47+
"@angular/router": "^15.0.4",
4848
"@coreui/chartjs": "^3.0.0",
4949
"@popperjs/core": "~2.11.6",
5050
"chart.js": "^3.9.1",
5151
"lodash-es": "^4.17.21",
5252
"rxjs": "~7.5.0",
5353
"tslib": "^2.4.1",
54-
"zone.js": "~0.11.8"
54+
"zone.js": "~0.12.0"
5555
},
5656
"devDependencies": {
57-
"@angular-devkit/build-angular": "^14.2.10",
58-
"@angular-eslint/builder": "^14.4.0",
59-
"@angular-eslint/eslint-plugin": "^14.4.0",
60-
"@angular-eslint/eslint-plugin-template": "^14.4.0",
61-
"@angular-eslint/schematics": "^14.4.0",
62-
"@angular-eslint/template-parser": "^14.4.0",
63-
"@angular/cli": "^14.2.10",
64-
"@angular/compiler-cli": "^14.2.12",
65-
"@angular/language-service": "^14.2.12",
57+
"@angular-devkit/build-angular": "^15.0.4",
58+
"@angular-eslint/builder": "^15.1.0",
59+
"@angular-eslint/eslint-plugin": "^15.1.0",
60+
"@angular-eslint/eslint-plugin-template": "^15.1.0",
61+
"@angular-eslint/schematics": "^15.1.0",
62+
"@angular-eslint/template-parser": "^15.1.0",
63+
"@angular/cli": "^15.0.4",
64+
"@angular/compiler-cli": "^15.0.4",
65+
"@angular/language-service": "^15.0.4",
6666
"@coreui/icons": "^2.1.0",
67-
"@types/jasmine": "~4.3.0",
67+
"@types/jasmine": "~4.3.1",
6868
"@types/lodash-es": "^4.17.6",
69-
"@types/node": "^16.18.4",
70-
"@typescript-eslint/eslint-plugin": "^5.45.0",
71-
"@typescript-eslint/parser": "^5.45.0",
72-
"eslint": "~8.29.0",
69+
"@types/node": "^16.18.9",
70+
"@typescript-eslint/eslint-plugin": "^5.46.1",
71+
"@typescript-eslint/parser": "^5.46.1",
72+
"eslint": "^8.29.0",
7373
"jasmine-core": "^4.5.0",
7474
"karma": "^6.4.1",
7575
"karma-chrome-launcher": "^3.1.1",
7676
"karma-coverage": "~2.2.0",
7777
"karma-jasmine": "~5.1.0",
7878
"karma-jasmine-html-reporter": "^2.0.0",
79-
"ng-packagr": "^14.2.2",
80-
"prettier": "^2.7.1",
81-
"typescript": "~4.7.4"
79+
"ng-packagr": "^15.0.3",
80+
"prettier": "^2.8.1",
81+
"typescript": "~4.8.4"
8282
},
8383
"keywords": [
8484
"angular",
@@ -104,7 +104,7 @@
104104
"version_short": "4.2"
105105
},
106106
"engines": {
107-
"node": "^14.15.0 || >=16.10.0",
107+
"node": "^14.20.0 || ^16.13.0 || ^18.10.0",
108108
"npm": ">=6"
109109
}
110110
}

‎projects/coreui-angular-chartjs/.browserslistrc

-16
This file was deleted.

‎projects/coreui-angular-chartjs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
[npm-badge-next]: https://img.shields.io/npm/v/@coreui/angular-chartjs/next?style=flat-square&color=red
3434
[npm]: https://www.npmjs.com/package/@coreui/angular-chartjs
3535
[npm-download]: https://img.shields.io/npm/dm/@coreui/angular-chartjs.svg?style=flat-square
36-
[angular-badge]: https://img.shields.io/badge/angular-^14.0.0-lightgrey.svg?style=flat-square&logo=angular
36+
[angular-badge]: https://img.shields.io/badge/angular-^15.0.0-lightgrey.svg?style=flat-square&logo=angular
3737

3838
##### install:
3939

‎projects/coreui-angular-chartjs/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
"url": "https://github.com/coreui/coreui-angular/issues"
2626
},
2727
"peerDependencies": {
28-
"@angular/cdk": "^14.0.0",
29-
"@angular/common": "^14.0.0",
30-
"@angular/core": "^14.0.0",
28+
"@angular/cdk": "^15.0.0",
29+
"@angular/common": "^15.0.0",
30+
"@angular/core": "^15.0.0",
3131
"@coreui/chartjs": "^3.0.0",
32-
"chart.js": "^3.7.1"
32+
"chart.js": "^3.9.1"
3333
},
3434
"dependencies": {
3535
"lodash-es": "^4.17.21",

‎projects/coreui-angular-chartjs/src/test.ts

-12
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,9 @@ import {
88
platformBrowserDynamicTesting
99
} from '@angular/platform-browser-dynamic/testing';
1010

11-
declare const require: {
12-
context(path: string, deep?: boolean, filter?: RegExp): {
13-
<T>(id: string): T;
14-
keys(): string[];
15-
};
16-
};
17-
1811
// First, initialize the Angular testing environment.
1912
getTestBed().initTestEnvironment(
2013
BrowserDynamicTestingModule,
2114
platformBrowserDynamicTesting(),
2215
{ teardown: { destroyAfterEach: true }},
2316
);
24-
25-
// Then we find all the tests.
26-
const context = require.context('./', true, /\.spec\.ts$/);
27-
// And load the modules.
28-
context.keys().map(context);

‎projects/coreui-angular/.browserslistrc

-16
This file was deleted.

‎projects/coreui-angular/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
[npm-coreui-angular-badge-next]: https://img.shields.io/npm/v/@coreui/angular/next?style=flat-square&color=red
3636
[npm-coreui-angular]: https://www.npmjs.com/package/@coreui/angular
3737
[npm-coreui-angular-download]: https://img.shields.io/npm/dm/@coreui/angular.svg?style=flat-square
38-
[angular-badge]: https://img.shields.io/badge/angular-^14.2.0-lightgrey.svg?style=flat-square&logo=angular
38+
[angular-badge]: https://img.shields.io/badge/angular-^15.0.0-lightgrey.svg?style=flat-square&logo=angular
3939

4040
## Table of contents
4141

@@ -59,7 +59,7 @@
5959
Before you begin, make sure your development environment includes `Node.js®` and `npm` package manager.
6060

6161
###### Node.js
62-
[**Angular 14**](https://angular.io/guide/what-is-angular) requires `Node.js` LTS version `^14.15` or `^16.10`.
62+
[**Angular 15**](https://angular.io/guide/what-is-angular) requires `Node.js` LTS version `^14.20` or `^16.13` or `^18.10`.
6363

6464
- To check your version, run `node -v` in a terminal/console window.
6565
- To get `Node.js`, go to [nodejs.org](https://nodejs.org/).

‎projects/coreui-angular/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"tslib": "^2.3.0"
2222
},
2323
"peerDependencies": {
24-
"@angular/cdk": "^14.0.0",
25-
"@angular/common": "^14.0.0",
26-
"@angular/core": "^14.0.0",
27-
"@angular/router": "^14.0.0"
24+
"@angular/cdk": "^15.0.0",
25+
"@angular/common": "^15.0.0",
26+
"@angular/core": "^15.0.0",
27+
"@angular/router": "^15.0.0"
2828
},
2929
"repository": {
3030
"type": "git",

‎projects/coreui-angular/src/test.ts

-12
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,9 @@ import {
88
platformBrowserDynamicTesting
99
} from '@angular/platform-browser-dynamic/testing';
1010

11-
declare const require: {
12-
context(path: string, deep?: boolean, filter?: RegExp): {
13-
<T>(id: string): T;
14-
keys(): string[];
15-
};
16-
};
17-
1811
// First, initialize the Angular testing environment.
1912
getTestBed().initTestEnvironment(
2013
BrowserDynamicTestingModule,
2114
platformBrowserDynamicTesting(),
2215
{ teardown: { destroyAfterEach: true }},
2316
);
24-
25-
// Then we find all the tests.
26-
const context = require.context('./', true, /\.spec\.ts$/);
27-
// And load the modules.
28-
context.keys().map(context);

‎projects/coreui-icons-angular/.browserslistrc

-16
This file was deleted.

‎projects/coreui-icons-angular/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
[coreui]: https://coreui.io/icons
3737
[coreui-angular-icons-npm]: https://www.npmjs.com/package/@coreui/icons-angular
3838
[npm-coreui-icons-angular-next]: https://img.shields.io/npm/v/@coreui/icons-angular/next.png?style=flat-square&color=red
39-
[angular-badge]: https://img.shields.io/badge/angular-^14.0.0-lightgrey.svg?style=flat-square&logo=angular
39+
[angular-badge]: https://img.shields.io/badge/angular-^15.0.0-lightgrey.svg?style=flat-square&logo=angular
4040

4141
## `cIcon` directive
4242

‎projects/coreui-icons-angular/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"url": "https://github.com/coreui/coreui-angular/issues"
2626
},
2727
"peerDependencies": {
28-
"@angular/common": "^14.0.0",
29-
"@angular/core": "^14.0.0",
28+
"@angular/common": "^15.0.0",
29+
"@angular/core": "^15.0.0",
3030
"@coreui/icons": "^2.1.0"
3131
},
3232
"dependencies": {

‎projects/coreui-icons-angular/src/test.ts

-12
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,9 @@ import {
88
platformBrowserDynamicTesting
99
} from '@angular/platform-browser-dynamic/testing';
1010

11-
declare const require: {
12-
context(path: string, deep?: boolean, filter?: RegExp): {
13-
<T>(id: string): T;
14-
keys(): string[];
15-
};
16-
};
17-
1811
// First, initialize the Angular testing environment.
1912
getTestBed().initTestEnvironment(
2013
BrowserDynamicTestingModule,
2114
platformBrowserDynamicTesting(),
2215
{ teardown: { destroyAfterEach: true }},
2316
);
24-
25-
// Then we find all the tests.
26-
const context = require.context('./', true, /\.spec\.ts$/);
27-
// And load the modules.
28-
context.keys().forEach(context);

‎tsconfig.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@
2727
"experimentalDecorators": true,
2828
"moduleResolution": "node",
2929
"importHelpers": true,
30-
"target": "es2020",
31-
"module": "es2020",
30+
"target": "ES2022",
31+
"module": "ES2022",
3232
"typeRoots": [
3333
"node_modules/@types"
3434
],
3535
"lib": [
36-
"es2020",
36+
"ES2022",
3737
"dom"
38-
]
38+
],
39+
"useDefineForClassFields": false
3940
},
4041
"angularCompilerOptions": {
4142
"enableI18nLegacyMessageIdFormat": false,

0 commit comments

Comments
 (0)
Please sign in to comment.