Skip to content

Commit bdd90e8

Browse files
authored
Merge pull request #682 from keymanapp/chore/ng-upgrade
chore: upgrade Angular to v22.0
2 parents 62cdbea + 7b13484 commit bdd90e8

42 files changed

Lines changed: 4276 additions & 5763 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/master_com-keyman-status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Node.js version
2020
uses: actions/setup-node@v1
2121
with:
22-
node-version: '20.x'
22+
node-version: '24.x'
2323

2424
- name: npm install, build, and test
2525
run: |

.github/workflows/staging_com-keyman-staging-status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Node.js version
2020
uses: actions/setup-node@v1
2121
with:
22-
node-version: '22.x'
22+
node-version: '24.x'
2323

2424
- name: npm ci + build - public
2525
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Node.js version
2626
uses: actions/setup-node@v1
2727
with:
28-
node-version: '20.x'
28+
node-version: '24.x'
2929

3030
- name: npm install, build, and test
3131
run: |

public/package-lock.json

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

public/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "^21.1.6",
15-
"@angular/common": "^21.1.6",
16-
"@angular/compiler": "^21.1.6",
17-
"@angular/core": "^21.1.6",
18-
"@angular/forms": "^21.1.6",
19-
"@angular/platform-browser": "^21.1.6",
20-
"@angular/platform-browser-dynamic": "^21.1.6",
21-
"@angular/router": "^21.1.6",
14+
"@angular/animations": "^22.0.2",
15+
"@angular/common": "^22.0.2",
16+
"@angular/compiler": "^22.0.2",
17+
"@angular/core": "^22.0.2",
18+
"@angular/forms": "^22.0.2",
19+
"@angular/platform-browser": "^22.0.2",
20+
"@angular/platform-browser-dynamic": "^22.0.2",
21+
"@angular/router": "^22.0.2",
2222
"@sentry/angular": "^10.36.0",
2323
"@sentry/tracing": "^6.2.3",
2424
"bootstrap": "^5.3.8",
@@ -31,15 +31,16 @@
3131
"zone.js": "~0.15.0"
3232
},
3333
"devDependencies": {
34-
"@angular/build": "^21.1.6",
35-
"@angular/cli": "^21.1.6",
36-
"@angular/compiler-cli": "^21.1.6",
37-
"@angular/language-service": "^21.1.6",
34+
"@angular/build": "^22.0.3",
35+
"@angular/cli": "^22.0.3",
36+
"@angular/compiler-cli": "^22.0.2",
37+
"@angular/language-service": "^22.0.2",
3838
"@types/jasmine": "~3.3.8",
3939
"@types/jasminewd2": "^2.0.8",
40-
"@types/node": "^12.11.1",
40+
"@types/node": "^26.0.0",
4141
"angular-eslint": "20.2.0",
4242
"eslint": "^9.33.0",
43+
"istanbul-lib-instrument": "^6.0.3",
4344
"jasmine-core": "~5.6.0",
4445
"jasmine-spec-reporter": "~7.0.0",
4546
"karma": "~6.4.4",
@@ -48,7 +49,6 @@
4849
"karma-jasmine": "~5.1.0",
4950
"karma-jasmine-html-reporter": "^2.1.0",
5051
"ts-node": "~7.0.0",
51-
"typescript": "~5.9.3",
52-
"typescript-eslint": "8.40.0"
52+
"typescript": "~6.0.3"
5353
}
5454
}

public/src/app/agent-detail/agent-detail.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Input, OnInit } from '@angular/core';
1+
import { Component, Input, OnInit, ChangeDetectionStrategy } from '@angular/core';
22
import { platforms, PlatformSpec } from '../../../../shared/platforms';
33
import { PopupCoordinatorService } from '../popup-coordinator.service';
44
import { PopupComponent } from '../popup/popup.component';
@@ -9,6 +9,7 @@ import { Status } from '../status/status.interface';
99
selector: 'app-agent-detail',
1010
templateUrl: './agent-detail.component.html',
1111
styleUrls: ['./agent-detail.component.css'],
12+
changeDetection: ChangeDetectionStrategy.Eager,
1213
standalone: false
1314
})
1415
export class AgentDetailComponent extends PopupComponent implements OnInit {

public/src/app/app.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Component } from '@angular/core';
1+
import { Component, ChangeDetectionStrategy } from '@angular/core';
22

33
@Component({
44
selector: 'app-root',
55
templateUrl: './app.component.html',
66
styleUrls: ['./app.component.css'],
7+
changeDetection: ChangeDetectionStrategy.Eager,
78
standalone: false
89
})
910
export class AppComponent {

public/src/app/app.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { BrowserModule } from "@angular/platform-browser";
22
import {
33
provideHttpClient,
44
withInterceptorsFromDi,
5+
withXhr
56
} from "@angular/common/http";
67
import { ErrorHandler, NgModule } from "@angular/core";
78
import { RouterModule } from "@angular/router";
@@ -83,7 +84,7 @@ import { ServiceStatePopupComponent } from "./service-state-popup/service-state-
8384
],
8485
providers: [
8586
VisibilityService,
86-
provideHttpClient(withInterceptorsFromDi()),
87+
provideHttpClient(withXhr(), withInterceptorsFromDi()),
8788

8889
// Enable Sentry error reporting
8990
{

public/src/app/assigned-issues/assigned-issues.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Input } from '@angular/core';
1+
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
22
import { DomSanitizer } from '@angular/platform-browser';
33
import { getAuthorAvatarUrl } from '../../../../shared/users';
44
import { issueLabelScopes } from "../../../../shared/issue-labels";
@@ -12,6 +12,7 @@ import { dataModel } from '../data/data.model';
1212
selector: 'app-assigned-issues',
1313
templateUrl: './assigned-issues.component.html',
1414
styleUrls: ['./assigned-issues.component.css'],
15+
changeDetection: ChangeDetectionStrategy.Eager,
1516
standalone: false
1617
})
1718
export class AssignedIssuesComponent {

public/src/app/box-pr-author/box-pr-author.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { Component, Input, OnInit } from '@angular/core';
1+
import { Component, Input, OnInit, ChangeDetectionStrategy } from '@angular/core';
22
import { getAuthorAvatarUrl } from '../../../../shared/users';
33

44
@Component({
55
selector: 'app-box-pr-author',
66
templateUrl: './box-pr-author.component.html',
77
styleUrls: ['./box-pr-author.component.css'],
8+
changeDetection: ChangeDetectionStrategy.Eager,
89
standalone: false
910
})
1011
export class BoxPrAuthorComponent implements OnInit {

0 commit comments

Comments
 (0)