Update openvidu-angular to Angular 15

This commit is contained in:
pabloFuente 2022-12-27 13:27:16 +01:00
parent 92a00c5b83
commit 830718bfbc
7 changed files with 6995 additions and 19343 deletions

View File

@ -32,6 +32,7 @@ speed-measure-plugin*.json
.history/* .history/*
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/connect.lock /connect.lock
/coverage /coverage

View File

@ -39,7 +39,6 @@
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
@ -93,19 +92,6 @@
"scripts": [] "scripts": []
} }
}, },
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": { "e2e": {
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {
@ -119,6 +105,6 @@
} }
} }
} }
}}, }
"defaultProject": "openvidu-angular" }
} }

File diff suppressed because it is too large Load Diff

View File

@ -6,38 +6,38 @@
"start": "ng serve" "start": "ng serve"
}, },
"dependencies": { "dependencies": {
"@angular/animations": "11.2.4", "@angular/animations": "15.0.4",
"@angular/common": "11.2.4", "@angular/common": "15.0.4",
"@angular/compiler": "11.2.4", "@angular/compiler": "15.0.4",
"@angular/core": "11.2.4", "@angular/core": "15.0.4",
"@angular/forms": "11.2.4", "@angular/forms": "15.0.4",
"@angular/platform-browser": "11.2.4", "@angular/platform-browser": "15.0.4",
"@angular/platform-browser-dynamic": "11.2.4", "@angular/platform-browser-dynamic": "15.0.4",
"@angular/router": "11.2.4", "@angular/router": "15.0.4",
"openvidu-browser": "2.25.0", "openvidu-browser": "2.25.0",
"rxjs": "6.6.6", "rxjs": "7.8.0",
"tslib": "2.1.0", "tslib": "2.4.1",
"zone.js": "0.11.4" "zone.js": "0.12.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "0.1102.3", "@angular-devkit/build-angular": "15.0.4",
"@angular/cli": "11.2.3", "@angular/cli": "15.0.4",
"@angular/compiler-cli": "11.2.4", "@angular/compiler-cli": "15.0.4",
"@angular/language-service": "11.2.4", "@angular/language-service": "15.0.4",
"@types/jasmine": "3.6.6", "@types/jasmine": "4.3.1",
"@types/jasminewd2": "2.0.8", "@types/jasminewd2": "2.0.10",
"@types/node": "14.14.32", "@types/node": "18.11.18",
"codelyzer": "6.0.1", "codelyzer": "^0.0.28",
"jasmine-core": "3.6.0", "jasmine-core": "4.5.0",
"jasmine-spec-reporter": "6.0.0", "jasmine-spec-reporter": "7.0.0",
"karma": "6.1.2", "karma": "6.4.1",
"karma-chrome-launcher": "3.1.0", "karma-chrome-launcher": "3.1.1",
"karma-coverage-istanbul-reporter": "3.0.3", "karma-coverage-istanbul-reporter": "3.0.3",
"karma-jasmine": "4.0.1", "karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "1.5.4", "karma-jasmine-html-reporter": "2.0.0",
"protractor": "7.0.0", "protractor": "7.0.0",
"ts-node": "9.1.1", "ts-node": "10.9.1",
"tslint": "6.1.0", "tslint": "6.1.3",
"typescript": "4.1.5" "typescript": "4.8.4"
} }
} }

View File

@ -18,16 +18,6 @@
* BROWSER POLYFILLS * 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 * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags

View File

@ -7,19 +7,10 @@ import {
platformBrowserDynamicTesting platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing'; } from '@angular/platform-browser-dynamic/testing';
declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
keys(): string[];
<T>(id: string): T;
};
};
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

View File

@ -10,11 +10,12 @@
"module": "es2020", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "ES2022",
"lib": [ "lib": [
"es2018", "es2018",
"dom" "dom"
] ],
"useDefineForClassFields": false
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"fullTemplateTypeCheck": true, "fullTemplateTypeCheck": true,