Skip to content

Commit 0dbdfb0

Browse files
dependabot[bot]kyasbalgemini-code-assist[bot]
authored
Bump @angular/compiler from 20.0.4 to 20.3.15 in /web (#385)
* Bump @angular/compiler from 20.0.4 to 20.3.15 in /web Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 20.0.4 to 20.3.15. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/20.3.15/packages/compiler) --- updated-dependencies: - dependency-name: "@angular/compiler" dependency-version: 20.3.15 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Updated package-lock.json & fixed several compile errors due to updates (#403) * Updated package-lock.json & fixed several compile errors due to updates * Update web/src/app/common/misc-util.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> --------- Signed-off-by: kyasbal <kyasbal1994@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: kyasbal <ikakeru@google.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1ce8cda commit 0dbdfb0

8 files changed

Lines changed: 2623 additions & 1877 deletions

File tree

web/package-lock.json

Lines changed: 2561 additions & 1842 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@angular/animations": "^20.0.4",
88
"@angular/cdk": "^20.0.3",
99
"@angular/common": "^20.0.4",
10-
"@angular/compiler": "^20.0.4",
10+
"@angular/compiler": "^20.3.15",
1111
"@angular/core": "^20.0.4",
1212
"@angular/forms": "^20.0.4",
1313
"@angular/material": "^20.0.3",

web/src/app/common/misc-util.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* Asserts that the given value is never.
19+
*
20+
* This function is used for making sure the code is unreachable with Typescript type check.
21+
* Example:
22+
* let a: "A" | "B";
23+
* switch (a) {
24+
* case "A":
25+
* break;
26+
* case "B":
27+
* break;
28+
* default:
29+
* unreachable(a); // this won't be an error.
30+
* }
31+
*
32+
* switch(a) {
33+
* case "A":
34+
* break;
35+
* default:
36+
* unreachable(a); // this will be an error because the 'a' is "B" and not never.
37+
* }
38+
* @param v The value to assert.
39+
*/
40+
export function unreachable(v: never): never {
41+
console.error('unreachable code reached', v);
42+
throw new Error(`unreachable code reached with value: ${JSON.stringify(v)}`);
43+
}

web/src/app/common/schema/graph-schema.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ export interface GraphNode extends LabeledGraphElement, GraphResourceData {
7575
}
7676

7777
export interface PodGraphData
78-
extends LabeledGraphElement,
79-
NamespacedArchGraphResource,
80-
GraphResourceData {
78+
extends LabeledGraphElement, NamespacedArchGraphResource, GraphResourceData {
8179
containers: ContainerGraphData[];
8280
podIP: string;
8381
conditions: ArchGraphCondition[];
@@ -98,9 +96,7 @@ export interface ContainerGraphData {
9896
}
9997

10098
export interface ServiceGraphData
101-
extends NamespacedArchGraphResource,
102-
LabeledGraphElement,
103-
GraphResourceData {
99+
extends NamespacedArchGraphResource, LabeledGraphElement, GraphResourceData {
104100
type: string;
105101
clusterIp: string;
106102
connectedPods: PodConnectionGraphData[];
@@ -116,9 +112,7 @@ export interface PodOwnerConnectionGraphData {
116112
}
117113

118114
export interface GraphPodOwnerBase
119-
extends NamespacedArchGraphResource,
120-
LabeledGraphElement,
121-
GraphResourceData {
115+
extends NamespacedArchGraphResource, LabeledGraphElement, GraphResourceData {
122116
status: { [key: string]: unknown };
123117
}
124118

web/src/app/dialogs/new-inspection/components/service/file-uploader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
BackendAPI,
2323
} from 'src/app/services/api/backend-api-interface';
2424
import { HttpEventType } from '@angular/common/http';
25+
import { unreachable } from 'src/app/common/misc-util';
2526

2627
/**
2728
* Type for the status reported from the uploader.
@@ -110,7 +111,7 @@ export class KHIServerFileUploader implements FileUploader {
110111
};
111112
}
112113
default:
113-
throw new Error('unknown event type' + status.type);
114+
unreachable(status);
114115
}
115116
}),
116117
);

web/src/app/services/filter/chain.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ export interface FilterChainElement<T> {
3131
* that filters items based on whether a specified property of the item
3232
* is present within a given set of properties.
3333
*/
34-
export class PropertyMatchSetFilterChainElement<T, P>
35-
implements FilterChainElement<T>
36-
{
34+
export class PropertyMatchSetFilterChainElement<
35+
T,
36+
P,
37+
> implements FilterChainElement<T> {
3738
/**
3839
* Creates a new PropertyMatchSetFilterChainElement.
3940
* @param propertyReader A function that extracts the property value from an item.
@@ -62,9 +63,9 @@ export class PropertyMatchSetFilterChainElement<T, P>
6263
/**
6364
* PropertyMatchRegexFilterChainElement is a FilterChainElement implementation that filters items based on whether a specified property of the item matches any of the given regular expressions.
6465
*/
65-
export class PropertyMatchRegexFilterChainElement<T>
66-
implements FilterChainElement<T>
67-
{
66+
export class PropertyMatchRegexFilterChainElement<
67+
T,
68+
> implements FilterChainElement<T> {
6869
/**
6970
* Creates a new PropertyMatchRegexFilterChainElement.
7071
* @param propertyReader A function that extracts the property value from an item.

web/src/app/services/filter/timeline-filter-chain.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ import { combineLatestWith, map, Observable } from 'rxjs';
2121
/**
2222
* FilterNamepaceOrKindWithoutResource removes TimelineEntry without any name layer timeline in its children.
2323
*/
24-
export class FilterNamepaceOrKindWithoutResource
25-
implements FilterChainElement<ResourceTimeline>
26-
{
24+
export class FilterNamepaceOrKindWithoutResource implements FilterChainElement<ResourceTimeline> {
2725
chain(items: Observable<ResourceTimeline[]>): Observable<ResourceTimeline[]> {
2826
return items.pipe(
2927
map((timelines) => {
@@ -58,9 +56,7 @@ export class FilterNamepaceOrKindWithoutResource
5856
/**
5957
* FilterSubresourceWithoutParent removes subresource timelines when its parent resource is filtered out already.
6058
*/
61-
export class FilterSubresourceWithoutParent
62-
implements FilterChainElement<ResourceTimeline>
63-
{
59+
export class FilterSubresourceWithoutParent implements FilterChainElement<ResourceTimeline> {
6460
chain(items: Observable<ResourceTimeline[]>): Observable<ResourceTimeline[]> {
6561
return items.pipe(
6662
map((timelines) => {
@@ -90,9 +86,7 @@ export class FilterSubresourceWithoutParent
9086
/**
9187
* FilterTimelinesOnlyWithFilteredLogs removes timelines that don't have any logs that are not filtered out.
9288
*/
93-
export class FilterTimelinesOnlyWithFilteredLogs
94-
implements FilterChainElement<ResourceTimeline>
95-
{
89+
export class FilterTimelinesOnlyWithFilteredLogs implements FilterChainElement<ResourceTimeline> {
9690
constructor(
9791
private readonly filteredOut: Observable<Set<number>>,
9892
private readonly hideFilteredOut: Observable<boolean>,
@@ -117,9 +111,7 @@ export class FilterTimelinesOnlyWithFilteredLogs
117111
/**
118112
* FilterTimelinesOnlyWithFilteredLogs removes subresource layer timelines that don't have any logs that are not filtered out.
119113
*/
120-
export class FilterSubresourceTimelinesOnlyWithFilteredLogs
121-
implements FilterChainElement<ResourceTimeline>
122-
{
114+
export class FilterSubresourceTimelinesOnlyWithFilteredLogs implements FilterChainElement<ResourceTimeline> {
123115
constructor(
124116
private readonly filteredOut: Observable<Set<number>>,
125117
private readonly hideFilteredOut: Observable<boolean>,

web/src/app/services/frame-connection/window-connection-provider.service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ interface BroadcastChannelPacketWrap {
3434
/**
3535
* WindowConnectionProvider using BroadcastChannel
3636
*/
37-
export class BroadcastChannelWindowConnectionProvider
38-
implements WindowConnectionProvider
39-
{
37+
export class BroadcastChannelWindowConnectionProvider implements WindowConnectionProvider {
4038
private readonly channel: BroadcastChannel;
4139

4240
private readonly messageReceiver: Subject<BroadcastChannelPacketWrap> =
@@ -71,9 +69,7 @@ export class BroadcastChannelWindowConnectionProvider
7169
* WindowConnectionProvider used for tests.
7270
* This connection provider allows connecting to the other in the same frame
7371
*/
74-
export class InMemoryWindowConnectionProvider
75-
implements WindowConnectionProvider
76-
{
72+
export class InMemoryWindowConnectionProvider implements WindowConnectionProvider {
7773
private readonly messageReceiver: Subject<KHIWindowPacket<unknown>> =
7874
new Subject();
7975

0 commit comments

Comments
 (0)