update angular to 22
CI / build-static (push) Failing after 46s
CI / build (map[arch:amd64 deps:gcc goarch:amd64 os:linux prefix:]) (push) Has been skipped
CI / build (map[arch:arm64 deps:gcc-aarch64-linux-gnu libc6-dev-arm64-cross goarch:arm64 os:linux prefix:aarch64-linux-gnu]) (push) Has been skipped
CI / build (map[arch:armhf deps:gcc-arm-linux-gnueabihf libc6-dev-armhf-cross goarch:arm os:linux prefix:arm-linux-gnueabihf]) (push) Has been skipped

Signed-off-by: kaedwen <kaedwen@heinrich.blue>
This commit is contained in:
kaedwen
2026-06-14 20:09:38 +02:00
parent 2770262dcd
commit 3d0d743c8b
9 changed files with 1723 additions and 1205 deletions
+12 -16
View File
@@ -57,6 +57,15 @@
"optimization": false,
"extractLicenses": false,
"sourceMap": true
},
"testing": {
"aot": false,
"optimization": false,
"extractLicenses": false,
"polyfills": [
"zone.js",
"zone.js/testing"
]
}
},
"defaultConfiguration": "production"
@@ -77,24 +86,11 @@
"builder": "@angular/build:extract-i18n"
},
"test": {
"builder": "@angular/build:karma",
"builder": "@angular/build:unit-test",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.scss"
],
"scripts": []
"buildTarget": ":build:testing",
"runner": "vitest"
}
}
}
+1669 -1167
View File
File diff suppressed because it is too large Load Diff
+16 -14
View File
@@ -10,32 +10,34 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^21.2.17",
"@angular/common": "^21.2.17",
"@angular/compiler": "^21.2.17",
"@angular/core": "^21.2.17",
"@angular/forms": "^21.2.17",
"@angular/platform-browser": "^21.2.17",
"@angular/platform-browser-dynamic": "^21.2.17",
"@angular/router": "^21.2.17",
"@angular/service-worker": "^21.2.17",
"@angular/animations": "^22.0.1",
"@angular/common": "^22.0.1",
"@angular/compiler": "^22.0.1",
"@angular/core": "^22.0.1",
"@angular/forms": "^22.0.1",
"@angular/platform-browser": "^22.0.1",
"@angular/platform-browser-dynamic": "^22.0.1",
"@angular/router": "^22.0.1",
"@angular/service-worker": "^22.0.1",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"uuid": "^14.0.0",
"zone.js": "~0.15.1"
},
"devDependencies": {
"@angular/build": "^21.2.15",
"@angular/cli": "~21.2.15",
"@angular/compiler-cli": "^21.2.17",
"@angular/build": "^22.0.1",
"@angular/cli": "~22.0.1",
"@angular/compiler-cli": "^22.0.1",
"@types/jasmine": "~4.0.0",
"@types/uuid": "^9.0.1",
"istanbul-lib-instrument": "^6.0.3",
"jasmine-core": "~4.3.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"typescript": "~5.9.3"
"typescript": "~6.0.3",
"vitest": "^4.0.8"
}
}
}
+2 -1
View File
@@ -1,4 +1,4 @@
import { Component, ComponentRef, HostListener, OnInit, ViewChild, ViewContainerRef } from '@angular/core';
import { Component, ComponentRef, HostListener, OnInit, ViewChild, ViewContainerRef, ChangeDetectionStrategy } from '@angular/core';
import { VideoComponent } from './components/video/video.component';
import { AudioComponent } from './components/audio/audio.component';
import { SignalingService } from './services/signaling.service';
@@ -8,6 +8,7 @@ import { IsAnswer, IsIceCandidate, IsOffer } from './model';
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
changeDetection: ChangeDetectionStrategy.Eager,
standalone: true
})
export class AppComponent implements OnInit {
@@ -1,9 +1,10 @@
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { Component, ElementRef, OnInit, ViewChild, ChangeDetectionStrategy } from '@angular/core';
@Component({
selector: 'app-audio',
template: '<audio #audio></audio>',
styleUrls: ['./audio.component.scss'],
changeDetection: ChangeDetectionStrategy.Eager,
standalone: false
})
export class AudioComponent implements OnInit {
@@ -1,9 +1,10 @@
import { Component, ElementRef, ViewChild } from '@angular/core';
import { Component, ElementRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';
@Component({
selector: 'app-video',
template: '<video #video></video>',
styleUrls: ['./video.component.scss'],
changeDetection: ChangeDetectionStrategy.Eager,
standalone: false
})
export class VideoComponent {
+9 -1
View File
@@ -11,5 +11,13 @@
],
"include": [
"src/**/*.d.ts"
]
],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
+1 -2
View File
@@ -2,7 +2,6 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
@@ -17,7 +16,7 @@
"moduleResolution": "bundler",
"importHelpers": true,
"target": "ES2022",
"module": "es2020",
"module": "ES2022",
"useDefineForClassFields": false
},
"angularCompilerOptions": {
+10 -2
View File
@@ -4,7 +4,7 @@
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": [
"jasmine"
"vitest/globals"
]
},
"files": [
@@ -14,5 +14,13 @@
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
]
],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}