Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.

Commit 183c969

Browse files
committedApr 5, 2022
feat: upgrade to angular 13
BREAKING CHANGE: requires angular 13
1 parent 0fb3ce5 commit 183c969

10 files changed

+14909
-21441
lines changed
 

‎.browserslistrc

-1
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.

‎.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2.1
22
orbs:
3-
browser-tools: circleci/browser-tools@1.1.0
3+
browser-tools: circleci/browser-tools@1
44
jobs:
55
test:
66
docker:

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
!.vscode/extensions.json
2626

2727
# misc
28+
/.angular/cache
2829
/.sass-cache
2930
/connect.lock
3031
/coverage

‎README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ npm install ngx-trend
4040

4141
Latest version available for each version of Angular
4242

43-
| ngx-trend | Angular |
44-
| --------- | ------- |
45-
| 3.4.3 | 6.x 7.x |
46-
| 4.0.2 | 8.x |
47-
| 5.0.1 | 9.x |
48-
| 6.1.1 | >= 10.x |
49-
| current | >= 12.x |
43+
| ngx-trend | Angular |
44+
| --------- | --------- |
45+
| 3.4.3 | 6.x 7.x |
46+
| 4.0.2 | 8.x |
47+
| 5.0.1 | 9.x |
48+
| 6.1.1 | 10.x 11.x |
49+
| 7.0.0 | 12.x |
50+
| current | >= 13.x |
5051

5152
### Quickstart
5253

‎angular.json

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"optimization": true,
5252
"outputHashing": "all",
5353
"sourceMap": false,
54-
"extractCss": true,
5554
"namedChunks": false,
5655
"extractLicenses": true,
5756
"vendorChunk": false,

‎package-lock.json

+14,854-21,378
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+39-39
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,48 @@
1818
"homepage": "https://ngx-trend.vercel.app",
1919
"repository": "scttcper/ngx-trend",
2020
"devDependencies": {
21-
"@angular-devkit/build-angular": "12.0.2",
22-
"@angular-eslint/builder": "12.1.0",
23-
"@angular-eslint/eslint-plugin": "12.1.0",
24-
"@angular-eslint/eslint-plugin-template": "12.1.0",
25-
"@angular-eslint/schematics": "12.1.0",
26-
"@angular-eslint/template-parser": "12.1.0",
27-
"@angular/animations": "12.0.2",
28-
"@angular/cdk": "12.0.2",
29-
"@angular/cli": "12.0.2",
30-
"@angular/common": "12.0.2",
31-
"@angular/compiler": "12.0.2",
32-
"@angular/compiler-cli": "12.0.2",
33-
"@angular/core": "12.0.2",
34-
"@angular/forms": "12.0.2",
35-
"@angular/language-service": "12.0.2",
36-
"@angular/material": "12.0.2",
37-
"@angular/platform-browser": "12.0.2",
38-
"@angular/platform-browser-dynamic": "12.0.2",
39-
"@angular/router": "12.0.2",
40-
"@ctrl/ngx-github-buttons": "6.2.0",
41-
"@types/jasmine": "3.7.6",
42-
"@types/node": "15.6.1",
43-
"@typescript-eslint/eslint-plugin": "4.23.0",
44-
"@typescript-eslint/parser": "4.23.0",
45-
"core-js": "3.13.1",
46-
"del-cli": "3.0.1",
47-
"eslint": "7.26.0",
48-
"jasmine-core": "3.7.1",
49-
"karma": "6.3.2",
50-
"karma-chrome-launcher": "3.1.0",
21+
"@angular-devkit/build-angular": "13.3.1",
22+
"@angular-eslint/builder": "13.2.0",
23+
"@angular-eslint/eslint-plugin": "13.2.0",
24+
"@angular-eslint/eslint-plugin-template": "13.2.0",
25+
"@angular-eslint/schematics": "13.2.0",
26+
"@angular-eslint/template-parser": "13.2.0",
27+
"@angular/animations": "13.3.1",
28+
"@angular/cdk": "13.3.2",
29+
"@angular/cli": "13.3.1",
30+
"@angular/common": "13.3.1",
31+
"@angular/compiler": "13.3.1",
32+
"@angular/compiler-cli": "13.3.1",
33+
"@angular/core": "13.3.1",
34+
"@angular/forms": "13.3.1",
35+
"@angular/language-service": "13.3.1",
36+
"@angular/material": "13.3.2",
37+
"@angular/platform-browser": "13.3.1",
38+
"@angular/platform-browser-dynamic": "13.3.1",
39+
"@angular/router": "13.3.1",
40+
"@ctrl/ngx-github-buttons": "7.1.0",
41+
"@types/jasmine": "4.0.2",
42+
"@types/node": "17.0.23",
43+
"@typescript-eslint/eslint-plugin": "5.18.0",
44+
"@typescript-eslint/parser": "5.18.0",
45+
"core-js": "3.21.1",
46+
"del-cli": "4.0.1",
47+
"eslint": "8.12.0",
48+
"jasmine-core": "4.0.1",
49+
"karma": "6.3.17",
50+
"karma-chrome-launcher": "3.1.1",
5151
"karma-cli": "2.0.0",
5252
"karma-coverage-istanbul-reporter": "3.0.3",
53-
"karma-jasmine": "4.0.1",
54-
"karma-jasmine-html-reporter": "1.6.0",
55-
"ng-packagr": "12.0.2",
56-
"rxjs": "6.6.7",
57-
"ts-node": "10.0.0",
58-
"tslib": "2.2.0",
59-
"typescript": "4.2.4",
60-
"zone.js": "0.11.4"
53+
"karma-jasmine": "4.0.2",
54+
"karma-jasmine-html-reporter": "1.7.0",
55+
"ng-packagr": "13.3.0",
56+
"rxjs": "7.5.5",
57+
"ts-node": "10.7.0",
58+
"tslib": "2.3.1",
59+
"typescript": "4.6.3",
60+
"zone.js": "0.11.5"
6161
},
6262
"release": {
6363
"branch": "master"
6464
}
65-
}
65+
}

‎src/lib/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.0.0-placeholder",
44
"description": "ngx-trend Angular component",
55
"peerDependencies": {
6-
"@angular/animations": ">=12.0.0-0",
7-
"@angular/common": ">=12.0.0-0",
8-
"@angular/core": ">=12.0.0-0"
6+
"@angular/animations": ">=13.0.0-0",
7+
"@angular/common": ">=13.0.0-0",
8+
"@angular/core": ">=13.0.0-0"
99
},
1010
"repository": "scttcper/ngx-trend",
1111
"homepage": "https://github.com/scttcper/ngx-trend",

‎src/polyfills.ts

-10
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
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-
3121
/**
3222
* By default, zone.js will patch all possible macroTask and DomEvents
3323
* user can disable parts of macroTask/DomEvents patch by setting following flags

‎src/test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ declare const require: any;
1111
// First, initialize the Angular testing environment.
1212
getTestBed().initTestEnvironment(
1313
BrowserDynamicTestingModule,
14-
platformBrowserDynamicTesting(),
14+
platformBrowserDynamicTesting(), {
15+
teardown: { destroyAfterEach: false }
16+
},
1517
);
1618
// Then we find all the tests.
1719
const context = require.context('./', true, /\.spec\.ts$/);

0 commit comments

Comments
 (0)
This repository has been archived.