Skip to content

Commit 5b57420

Browse files
committed
chore(ng11): @angular/* migration
1 parent ef3edd5 commit 5b57420

File tree

9 files changed

+1240
-1312
lines changed

9 files changed

+1240
-1312
lines changed

.browserslistrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ last 2 Edge major versions
1414
last 2 Safari major versions
1515
last 2 iOS major versions
1616
Firefox ESR
17-
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
1817
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## v9.0.0
4+
- Added angular 11 support.
5+
36
## v8.0.0
47
- Added angular 10 support.
58

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ The HTTP interceptor listens to all HTTP requests and shows a spinner / loader i
3737
| >=3.2.0 <5.1.0 | ^7.0.0 |
3838
| >=6.0.0 <7.0.0 | ^8.0.0 |
3939
| >=7.0.0 <8.0.0 | ^9.0.0 |
40-
| >=8.0.0 | ^10.0.0 |
40+
| >=8.0.0 <9.0.0 | ^10.0.0 |
41+
| >=9.0.0 | ^11.0.0 |
4142

4243
If you experience errors like below, **please double check the version you use.**
4344

angular.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
"schematics": {
1010
"@schematics/angular:component": {
1111
"style": "scss"
12+
},
13+
"@schematics/angular:application": {
14+
"strict": true
1215
}
1316
},
1417
"architect": {
1518
"build": {
16-
"builder": "@angular-devkit/build-ng-packagr:build",
19+
"builder": "@angular-devkit/build-angular:ng-packagr",
1720
"options": {
1821
"tsConfig": "./tsconfig.lib.json",
1922
"project": "./ng-package.json"

karma.conf.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,20 @@ module.exports = function (config) {
1313
require('karma-chrome-launcher'),
1414
require('karma-firefox-launcher'),
1515
require('karma-jasmine-html-reporter'),
16-
require('karma-coverage-istanbul-reporter'),
16+
require('karma-coverage'),
1717
require('@angular-devkit/build-angular/plugins/karma')
1818
],
1919
client: {
2020
clearContext: false // leave Jasmine Spec Runner output visible in browser
2121
},
22-
coverageIstanbulReporter: {
22+
coverageReporter: {
2323
dir: require('path').join(__dirname, 'coverage'),
24-
reports: ['html', 'lcovonly', 'text-summary'],
25-
fixWebpackSourcePaths: true
24+
subdir: '.',
25+
reporters: [
26+
{ type: 'html' },
27+
{ type: 'lcovonly' },
28+
{ type: 'text-summary' }
29+
],
2630
},
2731
reporters: ['progress', 'kjhtml'],
2832
port: 9876,

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"ng7",
2828
"ng8",
2929
"ng9",
30+
"ng10",
31+
"ng11",
3032
"loader",
3133
"progressbar",
3234
"spinner",
@@ -41,34 +43,32 @@
4143
"tslib": "^2.0.0"
4244
},
4345
"peerDependencies": {
44-
"@angular/common": "^10.1.0",
45-
"@angular/core": "^10.1.0",
46+
"@angular/common": "^11.0.0",
47+
"@angular/core": "^11.0.0",
4648
"rxjs": "^6.6.0"
4749
},
4850
"devDependencies": {
49-
"@angular-devkit/build-angular": "~0.1001.0",
50-
"@angular-devkit/build-ng-packagr": "~0.1001.0",
51-
"@angular/cli": "^10.1.0",
52-
"@angular/common": "^10.1.0",
53-
"@angular/compiler": "^10.1.0",
54-
"@angular/compiler-cli": "^10.1.0",
55-
"@angular/core": "^10.1.0",
56-
"@angular/platform-browser": "^10.1.0",
57-
"@angular/platform-browser-dynamic": "^10.1.0",
58-
"@types/jasmine": "~3.5.0",
59-
"@types/jasminewd2": "~2.0.3",
51+
"@angular-devkit/build-angular": "~0.1100.0",
52+
"@angular/cli": "^11.0.0",
53+
"@angular/common": "^11.0.0",
54+
"@angular/compiler": "^11.0.0",
55+
"@angular/compiler-cli": "^11.0.0",
56+
"@angular/core": "^11.0.0",
57+
"@angular/platform-browser": "^11.0.0",
58+
"@angular/platform-browser-dynamic": "^11.0.0",
59+
"@types/jasmine": "~3.6.0",
6060
"@types/node": "^12.11.1",
6161
"codelyzer": "^6.0.0",
6262
"coveralls": "^3.0.1",
6363
"jasmine-core": "~3.6.0",
6464
"jasmine-spec-reporter": "~5.0.0",
65-
"karma": "~5.0.0",
65+
"karma": "~5.1.0",
6666
"karma-chrome-launcher": "~3.1.0",
67-
"karma-coverage-istanbul-reporter": "~3.0.2",
67+
"karma-coverage": "~2.0.3",
6868
"karma-firefox-launcher": "^1.1.0",
6969
"karma-jasmine": "~4.0.0",
7070
"karma-jasmine-html-reporter": "^1.5.0",
71-
"ng-packagr": "^10.1.0",
71+
"ng-packagr": "^11.0.0",
7272
"puppeteer": "^5.1.0",
7373
"rxjs": "^6.6.0",
7474
"rxjs-tslint-rules": "^4.13.0",

polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
21+
/** IE11 requires the following for NgClass support on SVG elements */
2222
// import 'classlist.js'; // Run `npm install --save classlist.js`.
2323

2424
/**

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
]
2222
},
2323
"angularCompilerOptions": {
24-
"strictTemplates": true,
25-
"strictInjectionParameters": true
24+
"strictInjectionParameters": true,
25+
"strictInputAccessModifiers": true,
26+
"strictTemplates": true
2627
}
2728
}

0 commit comments

Comments
 (0)