Skip to content

Commit f9bd87b

Browse files
committed
chore(deps): @angular/* ^13 support
1 parent 233c05d commit f9bd87b

File tree

9 files changed

+1223
-3216
lines changed

9 files changed

+1223
-3216
lines changed

.browserslistrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ last 2 Edge major versions
1414
last 2 Safari major versions
1515
last 2 iOS major versions
1616
Firefox ESR
17-
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v11.0.0
4+
- Added angular 13 support.
5+
- Drop RxJS 6 support.
6+
37
## v10.1.0
48
- Add minimal RxJS 7 support.
59

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ The HTTP interceptor listens to all HTTP requests and shows a spinner / loader i
4040
| >=8.0.0 <9.0.0 | ^10.0.0 |
4141
| >=9.0.0 | ^11.0.0 |
4242
| >=10.0.0 | ^12.0.0 |
43+
| >=11.0.0 | ^13.0.0 |
4344

4445
If you experience errors like below, **please double check the version you use.**
4546

@@ -120,7 +121,7 @@ import { Spinkit } from 'ng-http-loader'; // <============
120121
styleUrls: ['./app.component.css'],
121122
})
122123
export class AppComponent {
123-
spinkit = Spinkit; // <============
124+
public spinkit = Spinkit; // <============
124125
}
125126
```
126127
The different spinners available are referenced in [this file](src/lib/spinkits.ts).

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,36 +47,36 @@
4747
"rxjs": "^6.6.0 || ^7.0.0"
4848
},
4949
"devDependencies": {
50-
"@angular-devkit/build-angular": "^12.0.0",
51-
"@angular-eslint/builder": "12.6.1",
52-
"@angular-eslint/eslint-plugin": "12.6.1",
53-
"@angular-eslint/eslint-plugin-template": "12.6.1",
54-
"@angular-eslint/schematics": "12.6.1",
55-
"@angular-eslint/template-parser": "12.6.1",
56-
"@angular/cli": "^12.0.0",
57-
"@angular/common": "^12.0.0",
58-
"@angular/compiler": "^12.0.0",
59-
"@angular/compiler-cli": "^12.0.0",
60-
"@angular/core": "^12.0.0",
61-
"@angular/platform-browser": "^12.0.0",
62-
"@angular/platform-browser-dynamic": "^12.0.0",
63-
"@types/jasmine": "~3.8.0",
50+
"@angular-devkit/build-angular": "^13.0.0",
51+
"@angular-eslint/builder": "^12.6.1",
52+
"@angular-eslint/eslint-plugin": "^12.6.1",
53+
"@angular-eslint/eslint-plugin-template": "^12.6.1",
54+
"@angular-eslint/schematics": "^12.6.1",
55+
"@angular-eslint/template-parser": "^12.6.1",
56+
"@angular/cli": "^13.0.0",
57+
"@angular/common": "^13.0.0",
58+
"@angular/compiler": "^13.0.0",
59+
"@angular/compiler-cli": "^13.0.0",
60+
"@angular/core": "^13.0.0",
61+
"@angular/platform-browser": "^13.0.0",
62+
"@angular/platform-browser-dynamic": "^13.0.0",
63+
"@types/jasmine": "~3.10.0",
6464
"@types/node": "^12.11.1",
6565
"@typescript-eslint/eslint-plugin": "4.28.2",
6666
"@typescript-eslint/parser": "4.28.2",
6767
"eslint": "^7.26.0",
6868
"eslint-plugin-rxjs": "^4.0.1",
69-
"jasmine-core": "~3.8.0",
69+
"jasmine-core": "~3.10.0",
7070
"karma": "~6.3.2",
7171
"karma-chrome-launcher": "~3.1.0",
7272
"karma-coverage": "~2.0.3",
7373
"karma-firefox-launcher": "^1.1.0",
7474
"karma-jasmine": "~4.0.0",
7575
"karma-jasmine-html-reporter": "~1.7.0",
76-
"ng-packagr": "^12.0.0",
77-
"puppeteer": "^10.0.0",
78-
"rxjs": "^6.6.0",
79-
"typescript": "~4.3.5",
76+
"ng-packagr": "^13.0.0",
77+
"puppeteer": "^11.0.0",
78+
"rxjs": "^7.4.0",
79+
"typescript": "~4.4.3",
8080
"zone.js": "~0.11.4"
8181
}
8282
}

polyfills.ts

Lines changed: 2 additions & 14 deletions
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 Safari >= 10, Chrome >= 55 (including Opera),
12-
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
11+
* automatically update themselves. This includes recent versions of Safari, Chrome (including
12+
* Opera), Edge on the desktop, and iOS and Chrome on mobile.
1313
*
1414
* Learn more in https://angular.io/guide/browser-support
1515
*/
@@ -18,18 +18,6 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/**
22-
* IE11 requires the following for NgClass support on SVG elements
23-
*/
24-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
25-
26-
/**
27-
* Web Animations `@angular/platform-browser/animations`
28-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
29-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
30-
*/
31-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
32-
3321
/**
3422
* By default, zone.js will patch all possible macroTask and DomEvents
3523
* user can disable parts of macroTask/DomEvents patch by setting following flags

src/test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ declare const require: {
1717
// First, initialize the Angular testing environment.
1818
getTestBed().initTestEnvironment(
1919
BrowserDynamicTestingModule,
20-
platformBrowserDynamicTesting(),
21-
{ teardown: { destroyAfterEach: true }}
20+
platformBrowserDynamicTesting()
2221
);
2322

2423
// Then we find all the tests.

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"outDir": "./dist/out-tsc",
66
"forceConsistentCasingInFileNames": true,
77
"strict": true,
8+
"noImplicitOverride": true,
9+
"noPropertyAccessFromIndexSignature": true,
810
"noImplicitReturns": true,
911
"noFallthroughCasesInSwitch": true,
1012
"sourceMap": true,
@@ -16,7 +18,7 @@
1618
"target": "es2017",
1719
"module": "es2020",
1820
"lib": [
19-
"es2018",
21+
"es2020",
2022
"dom"
2123
]
2224
},

tsconfig.lib.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
"declaration": true,
88
"declarationMap": true,
99
"inlineSources": true,
10-
"types": [],
11-
"lib": [
12-
"dom",
13-
"es2018"
14-
]
10+
"types": []
1511
},
1612
"exclude": [
1713
"./src/test.ts",

0 commit comments

Comments
 (0)