From 3136f2e1d65cfef12af92653aa5baac38c053436 Mon Sep 17 00:00:00 2001 From: FyloZ Date: Wed, 1 Dec 2021 23:19:35 -0500 Subject: [PATCH] Update to Angular 13 --- .gitignore | 1 + package.json | 28 ++++++++++++++-------------- src/polyfills.ts | 10 ---------- src/test.ts | 4 +++- 4 files changed, 18 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 2e789dc..ccbebdb 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ speed-measure-plugin*.json .history/* # misc +/.angular/cache /.sass-cache /connect.lock /coverage diff --git a/package.json b/package.json index 060c202..77be7b3 100644 --- a/package.json +++ b/package.json @@ -11,16 +11,16 @@ }, "private": true, "dependencies": { - "@angular/animations": "~12.2.14", + "@angular/animations": "~13.0.3", "@angular/cdk": "^12.2.13", - "@angular/common": "~12.2.14", - "@angular/compiler": "~12.2.14", - "@angular/core": "~12.2.14", - "@angular/forms": "~12.2.14", + "@angular/common": "~13.0.3", + "@angular/compiler": "~13.0.3", + "@angular/core": "~13.0.3", + "@angular/forms": "~13.0.3", "@angular/material": "^12.2.13", - "@angular/platform-browser": "~12.2.14", - "@angular/platform-browser-dynamic": "~12.2.14", - "@angular/router": "~12.2.14", + "@angular/platform-browser": "~13.0.3", + "@angular/platform-browser-dynamic": "~13.0.3", + "@angular/router": "~13.0.3", "@mdi/angular-material": "^5.7.55", "bootstrap": "^4.5.2", "copy-webpack-plugin": "^6.2.1", @@ -32,15 +32,15 @@ "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "^12.2.13", + "@angular-devkit/build-angular": "^13.0.4", "@angular-eslint/builder": "13.0.1", "@angular-eslint/eslint-plugin": "13.0.1", "@angular-eslint/eslint-plugin-template": "13.0.1", "@angular-eslint/schematics": "13.0.1", "@angular-eslint/template-parser": "13.0.1", - "@angular/cli": "^12.2.13", - "@angular/compiler-cli": "~12.2.14", - "@angular/language-service": "~12.2.14", + "@angular/cli": "^13.0.4", + "@angular/compiler-cli": "~13.0.3", + "@angular/language-service": "~13.0.3", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", @@ -59,6 +59,6 @@ "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "~8.3.0", - "typescript": "~4.3.5" + "typescript": "~4.4.4" } -} +} \ No newline at end of file diff --git a/src/polyfills.ts b/src/polyfills.ts index 67581db..dcd18ea 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -18,16 +18,6 @@ * BROWSER POLYFILLS */ -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ -// import 'classlist.js'; // Run `npm install --save classlist.js`. - -/** - * Web Animations `@angular/platform-browser/animations` - * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. - * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). - */ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags diff --git a/src/test.ts b/src/test.ts index 2042356..4bf4afb 100644 --- a/src/test.ts +++ b/src/test.ts @@ -17,7 +17,9 @@ declare const require: { // First, initialize the Angular testing environment. getTestBed().initTestEnvironment( BrowserDynamicTestingModule, - platformBrowserDynamicTesting() + platformBrowserDynamicTesting(), { + teardown: { destroyAfterEach: false } +} ); // Then we find all the tests. const context = require.context('./', true, /\.spec\.ts$/);