Updated angular to v15

This commit is contained in:
Isaac Abadi
2022-11-24 15:58:31 -05:00
parent 790db77832
commit 6d5a108cb6
5 changed files with 944 additions and 1372 deletions

2274
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -21,18 +21,18 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular-devkit/core": "^14.2.10", "@angular-devkit/core": "^15.0.1",
"@angular/animations": "^14.2.12", "@angular/animations": "^15.0.1",
"@angular/cdk": "^14.2.7", "@angular/cdk": "^14.2.7",
"@angular/common": "^14.2.12", "@angular/common": "^15.0.1",
"@angular/compiler": "^14.2.12", "@angular/compiler": "^15.0.1",
"@angular/core": "^14.2.12", "@angular/core": "^15.0.1",
"@angular/forms": "^14.2.12", "@angular/forms": "^15.0.1",
"@angular/localize": "^14.2.12", "@angular/localize": "^15.0.1",
"@angular/material": "^14.2.7", "@angular/material": "^14.2.7",
"@angular/platform-browser": "^14.2.12", "@angular/platform-browser": "^15.0.1",
"@angular/platform-browser-dynamic": "^14.2.12", "@angular/platform-browser-dynamic": "^15.0.1",
"@angular/router": "^14.2.12", "@angular/router": "^15.0.1",
"@fontsource/material-icons": "^4.5.4", "@fontsource/material-icons": "^4.5.4",
"@ngneat/content-loader": "^5.0.0", "@ngneat/content-loader": "^5.0.0",
"@videogular/ngx-videogular": "^5.0.1", "@videogular/ngx-videogular": "^5.0.1",
@@ -50,15 +50,15 @@
"rxjs": "^6.6.3", "rxjs": "^6.6.3",
"rxjs-compat": "^6.0.0-rc.0", "rxjs-compat": "^6.0.0-rc.0",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"typescript": "~4.6.3", "typescript": "~4.8.4",
"xliff-to-json": "^1.0.4", "xliff-to-json": "^1.0.4",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.2.10", "@angular-devkit/build-angular": "^15.0.1",
"@angular/cli": "^14.2.10", "@angular/cli": "^15.0.1",
"@angular/compiler-cli": "^14.2.12", "@angular/compiler-cli": "^15.0.1",
"@angular/language-service": "^14.2.12", "@angular/language-service": "^15.0.1",
"@types/core-js": "^2.5.2", "@types/core-js": "^2.5.2",
"@types/file-saver": "^2.0.1", "@types/file-saver": "^2.0.1",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",

View File

@@ -23,7 +23,7 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports: [RouterModule.forRoot(routes, { useHash: true, relativeLinkResolution: 'legacy' })], imports: [RouterModule.forRoot(routes, { useHash: true })],
exports: [RouterModule] exports: [RouterModule]
}) })
export class AppRoutingModule { } export class AppRoutingModule { }

View File

@@ -14,7 +14,6 @@ import {
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
declare const __karma__: any; declare const __karma__: any;
declare const require: any;
// Prevent Karma from running prematurely. // Prevent Karma from running prematurely.
__karma__.loaded = function () {}; __karma__.loaded = function () {};
@@ -26,9 +25,5 @@ getTestBed().initTestEnvironment(
teardown: { destroyAfterEach: false } teardown: { destroyAfterEach: false }
} }
); );
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
// Finally, start Karma to run the tests. // Finally, start Karma to run the tests.
__karma__.start(); __karma__.start();

View File

@@ -10,7 +10,7 @@
"moduleResolution": "node", "moduleResolution": "node",
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"target": "es2020", "target": "ES2022",
"resolveJsonModule": true, "resolveJsonModule": true,
"esModuleInterop": true, "esModuleInterop": true,
"typeRoots": [ "typeRoots": [
@@ -20,7 +20,8 @@
"es2019", "es2019",
"dom" "dom"
], ],
"module": "es2020" "module": "es2020",
"useDefineForClassFields": false
}, },
"exclude": [ "exclude": [
"assets/default.json" "assets/default.json"