Skip to content

Commit db96be5

Browse files
committed
Angular v19 upgrades and more
1 parent 2bf23f1 commit db96be5

29 files changed

+5374
-5117
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up pnpm
3333
uses: pnpm/action-setup@v4
3434
with:
35-
version: 9
35+
version: 10
3636

3737
- name: Set up Node.js
3838
uses: actions/setup-node@v4

app/.postcssrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"@tailwindcss/postcss": {}
4+
}
5+
}

app/angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"routesFile": "prerendered-routes.txt"
6565
},
6666
"ssr": {
67-
"entry": "server.ts"
67+
"entry": "src/server.ts"
6868
}
6969
},
7070
"configurations": {
@@ -119,6 +119,7 @@
119119
"test": {
120120
"builder": "@angular-devkit/build-angular:karma",
121121
"options": {
122+
"builderMode": "application",
122123
"polyfills": ["zone.js", "zone.js/testing"],
123124
"tsConfig": "tsconfig.spec.json",
124125
"inlineStyleLanguage": "scss",

app/ngsw-config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
33
"index": "/index.csr.html",
4+
"applicationMaxAge": "30d",
45
"assetGroups": [
56
{
67
"name": "app",

app/package.json

Lines changed: 51 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -15,58 +15,69 @@
1515
},
1616
"engines": {
1717
"node": "20",
18-
"pnpm": "9"
18+
"pnpm": "10"
1919
},
20+
"packageManager": "pnpm@10.2.1",
2021
"private": true,
2122
"dependencies": {
22-
"@angular/animations": "^18.2.12",
23-
"@angular/cdk": "18.2.13",
24-
"@angular/common": "^18.2.12",
25-
"@angular/compiler": "^18.2.12",
26-
"@angular/core": "^18.2.12",
27-
"@angular/forms": "^18.2.12",
28-
"@angular/material": "18.2.13",
29-
"@angular/platform-browser": "^18.2.12",
30-
"@angular/platform-browser-dynamic": "^18.2.12",
31-
"@angular/platform-server": "^18.2.12",
32-
"@angular/router": "^18.2.12",
33-
"@angular/service-worker": "^18.2.12",
34-
"@angular/ssr": "^18.2.12",
35-
"@ngrx/operators": "^18.1.1",
36-
"@ngrx/signals": "^18.1.1",
37-
"consola": "^3.2.3",
38-
"express": "^4.21.1",
39-
"firebase": "^11.0.2",
40-
"ngxtension": "^4.1.0",
41-
"rxfire": "^6.0.6-canary.5cfad21",
23+
"@angular/animations": "^19.1.5",
24+
"@angular/cdk": "19.1.3",
25+
"@angular/common": "^19.1.5",
26+
"@angular/compiler": "^19.1.5",
27+
"@angular/core": "^19.1.5",
28+
"@angular/forms": "^19.1.5",
29+
"@angular/material": "19.1.3",
30+
"@angular/platform-browser": "^19.1.5",
31+
"@angular/platform-browser-dynamic": "^19.1.5",
32+
"@angular/platform-server": "^19.1.5",
33+
"@angular/router": "^19.1.5",
34+
"@angular/service-worker": "^19.1.5",
35+
"@angular/ssr": "^19.1.6",
36+
"@ngrx/operators": "^19.0.1",
37+
"@ngrx/signals": "^19.0.1",
38+
"consola": "^3.4.0",
39+
"express": "^4.21.2",
40+
"firebase": "^11.3.0",
41+
"ngxtension": "^4.3.2",
42+
"rxfire": "^6.1.0",
4243
"rxjs": "~7.8.0",
4344
"tslib": "^2.8.1",
44-
"zone.js": "~0.14.10"
45+
"zone.js": "~0.15.0"
4546
},
4647
"devDependencies": {
47-
"@angular-devkit/build-angular": "^18.2.12",
48-
"@angular/cli": "^18.2.12",
49-
"@angular/compiler-cli": "^18.2.12",
50-
"@ngrx/eslint-plugin": "^18.1.1",
51-
"@types/express": "^4.17.17",
52-
"@types/jasmine": "~5.1.0",
53-
"@types/node": "^22.9.0",
54-
"angular-eslint": "18.4.1",
55-
"autoprefixer": "^10.4.20",
56-
"eslint": "^9.15.0",
57-
"eslint-config-prettier": "^9.1.0",
58-
"jasmine-core": "~5.4.0",
48+
"@angular-devkit/build-angular": "^19.1.6",
49+
"@angular/cli": "^19.1.6",
50+
"@angular/compiler-cli": "^19.1.5",
51+
"@ngrx/eslint-plugin": "^19.0.1",
52+
"@tailwindcss/postcss": "^4.0.0",
53+
"@types/express": "^5.0.0",
54+
"@types/jasmine": "~5.1.5",
55+
"@types/node": "^22.13.1",
56+
"angular-eslint": "^19.0.2",
57+
"eslint": "^9.19.0",
58+
"eslint-config-prettier": "^10.0.1",
59+
"jasmine-core": "~5.5.0",
5960
"karma": "~6.4.4",
6061
"karma-chrome-launcher": "~3.2.0",
6162
"karma-coverage": "~2.2.0",
6263
"karma-jasmine": "~5.1.0",
6364
"karma-jasmine-html-reporter": "~2.1.0",
64-
"ng-mocks": "^14.13.1",
65+
"ng-mocks": "^14.13.2",
6566
"postcss": "^8.4.49",
66-
"prettier": "^3.3.3",
67-
"prettier-plugin-tailwindcss": "^0.6.8",
68-
"tailwindcss": "^3.4.15",
69-
"typescript": "~5.5.4",
70-
"typescript-eslint": "^8.15.0"
67+
"prettier": "^3.4.2",
68+
"prettier-plugin-tailwindcss": "^0.6.11",
69+
"tailwindcss": "^4.0.0",
70+
"typescript": "~5.7.3",
71+
"typescript-eslint": "^8.23.0"
72+
},
73+
"pnpm": {
74+
"onlyBuiltDependencies": [
75+
"protobufjs",
76+
"nx",
77+
"@parcel/watcher",
78+
"esbuild",
79+
"msgpackr-extract",
80+
"lmdb"
81+
]
7182
}
7283
}

app/pnpm-lock.yaml

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

app/server.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

app/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const logger = createLogger('AppComponent');
1010

1111
@Component({
1212
selector: 'app-root',
13-
standalone: true,
1413
imports: [RouterOutlet, MatSnackBarModule],
1514
template: ` <router-outlet /> `,
1615
styles: [],

app/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ApplicationConfig, isDevMode, provideZoneChangeDetection } from '@angular/core';
22
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
3-
import { provideClientHydration } from '@angular/platform-browser';
3+
import { provideClientHydration, withEventReplay } from '@angular/platform-browser';
44
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
55
import { provideRouter, withComponentInputBinding, withRouterConfig } from '@angular/router';
66
import { provideServiceWorker } from '@angular/service-worker';
@@ -14,7 +14,7 @@ export const appConfig: ApplicationConfig = {
1414
withComponentInputBinding(),
1515
withRouterConfig({ paramsInheritanceStrategy: 'always' }),
1616
),
17-
provideClientHydration(),
17+
provideClientHydration(withEventReplay()),
1818
provideAnimationsAsync(),
1919
provideServiceWorker('ngsw-worker.js', {
2020
enabled: !isDevMode(),

app/src/app/login/feature/login-flow.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { LoginFlowStore } from './login-flow.store';
88

99
@Component({
1010
selector: 'app-login-flow',
11-
standalone: true,
1211
imports: [RouterLink, MatButtonModule, MatIconModule, MatSnackBarModule, LoginFormComponent],
1312
providers: [LoginFlowStore],
1413
template: `
@@ -20,7 +19,7 @@ import { LoginFlowStore } from './login-flow.store';
2019
</div>
2120
<div class="mt-6 w-[360px]">
2221
@if (status() === 'error') {
23-
<div class="my-2 rounded bg-red-100 px-3 py-2 text-center text-sm text-red-700">
22+
<div class="my-2 rounded-sm bg-red-100 px-3 py-2 text-center text-sm text-red-700">
2423
{{ error() }}
2524
</div>
2625
}

0 commit comments

Comments
 (0)