Commit to migrate angular version to latest '15.x'

This commit is contained in:
Tarun Jain 2023-02-23 16:20:31 +05:30
parent d9d0bd2302
commit 47f9559de0
7 changed files with 3598 additions and 5969 deletions

File diff suppressed because it is too large Load Diff

View File

@ -27,18 +27,18 @@
"lint:ts": "tslint -c tslint.json Client/**/*.ts" "lint:ts": "tslint -c tslint.json Client/**/*.ts"
}, },
"dependencies": { "dependencies": {
"@angular-devkit/schematics": "^14.2.10", "@angular-devkit/schematics": "^15.2.0",
"@angular/animations": "14.2.12", "@angular/animations": "15.2.0",
"@angular/common": "14.2.12", "@angular/common": "15.2.0",
"@angular/compiler": "14.2.12", "@angular/compiler": "15.2.0",
"@angular/core": "14.2.12", "@angular/core": "15.2.0",
"@angular/forms": "14.2.12", "@angular/forms": "15.2.0",
"@angular/platform-browser": "14.2.12", "@angular/platform-browser": "15.2.0",
"@angular/platform-browser-dynamic": "14.2.12", "@angular/platform-browser-dynamic": "15.2.0",
"@angular/platform-server": "14.2.12", "@angular/platform-server": "15.2.0",
"@angular/router": "14.2.12", "@angular/router": "15.2.0",
"@microsoft/signalr": "3.0.1", "@microsoft/signalr": "3.0.1",
"@ng-bootstrap/ng-bootstrap": "13.1.1", "@ng-bootstrap/ng-bootstrap": "14.0.1",
"@popperjs/core": "2.11.6", "@popperjs/core": "2.11.6",
"acorn": "^6.4.1", "acorn": "^6.4.1",
"acorn-dynamic-import": "4.0.0", "acorn-dynamic-import": "4.0.0",
@ -61,10 +61,10 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.2.10", "@angular-devkit/build-angular": "^15.2.0",
"@angular/cli": "14.2.10", "@angular/cli": "15.2.0",
"@angular/compiler-cli": "14.2.12", "@angular/compiler-cli": "15.2.0",
"@angular/language-service": "14.2.12", "@angular/language-service": "15.2.0",
"@types/core-js": "2.5.0", "@types/core-js": "2.5.0",
"@types/hammerjs": "2.0.35", "@types/hammerjs": "2.0.35",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
@ -91,7 +91,7 @@
"ts-node": "~7.0.1", "ts-node": "~7.0.1",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typedoc": "1.0.0-dev.4", "typedoc": "1.0.0-dev.4",
"typescript": "4.6.4", "typescript": "4.9.5",
"url-loader": "^4.1.1", "url-loader": "^4.1.1",
"webpack": "^5.75.0" "webpack": "^5.75.0"
} }

View File

@ -15,4 +15,4 @@ export const routes: Routes = [
{ path: 'order', component: OrdersNewComponent }, { path: 'order', component: OrdersNewComponent },
]; ];
export const routing = RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }); export const routing = RouterModule.forRoot(routes, {});

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 var __karma__: any; declare var __karma__: any;
declare var 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

@ -2,7 +2,6 @@
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/spec", "outDir": "../out-tsc/spec",
"target": "es2020",
"baseUrl": "", "baseUrl": "",
"types": [ "types": [
"jasmine", "jasmine",

View File

@ -7,7 +7,7 @@
"declaration": false, "declaration": false,
"moduleResolution": "node", "moduleResolution": "node",
"experimentalDecorators": true, "experimentalDecorators": true,
"target": "es2020", "target": "ES2022",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
], ],
@ -15,7 +15,8 @@
"es2016", "es2016",
"dom" "dom"
], ],
"module": "esnext" "module": "esnext",
"useDefineForClassFields": false
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": false "enableIvy": false

File diff suppressed because it is too large Load Diff