Angular 22 upgrade
All checks were successful
Deploy dzanan.net / deploy (push) Successful in 52s

This commit is contained in:
amar.dzanan
2026-09-06 20:16:55 +02:00
parent e64239fbae
commit 886292aca9
6 changed files with 2736 additions and 2873 deletions

View File

5472
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,56 +1,57 @@
{ {
"name": "dzanan.net", "name": "dzanan.net",
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development", "watch": "ng build --watch --configuration development",
"test": "ng test", "test": "ng test",
"serve:ssr:dzanan.net": "node dist/dzanan.net/server/server.mjs" "serve:ssr:dzanan.net": "node dist/dzanan.net/server/server.mjs"
}, },
"prettier": { "prettier": {
"overrides": [ "overrides": [
{ {
"files": "*.html", "files": "*.html",
"options": { "options": {
"parser": "angular" "parser": "angular"
} }
} }
] ]
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/cdk": "^21.2.11", "@angular/cdk": "^22.1.5",
"@angular/common": "^21.2.13", "@angular/common": "^22.1.5",
"@angular/compiler": "^21.2.13", "@angular/compiler": "^22.1.5",
"@angular/core": "^21.2.13", "@angular/core": "^22.1.5",
"@angular/forms": "^21.2.13", "@angular/forms": "^22.1.5",
"@angular/platform-browser": "^21.2.13", "@angular/platform-browser": "^22.1.5",
"@angular/platform-server": "^21.2.13", "@angular/platform-server": "^22.1.5",
"@angular/router": "^21.2.13", "@angular/router": "^22.1.5",
"@angular/ssr": "^21.2.11", "@angular/ssr": "^22.1.7",
"@tailwindcss/postcss": "^4.1.17", "@tailwindcss/postcss": "^4.1.17",
"express": "^5.1.0", "express": "^5.1.0",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tailwindcss": "^4.1.17", "tailwindcss": "^4.1.17",
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },
"devDependencies": { "devDependencies": {
"@angular/build": "^21.2.11", "@angular/build": "^22.1.7",
"@angular/cli": "^21.2.11", "@angular/cli": "^22.1.7",
"@angular/compiler-cli": "^21.2.13", "@angular/compiler-cli": "^22.1.5",
"@types/express": "^5.0.1", "@types/express": "^5.0.1",
"@types/jasmine": "~5.1.0", "@types/jasmine": "~5.1.0",
"@types/node": "^20.17.19", "@types/node": "^20.17.19",
"jasmine-core": "~5.8.0", "istanbul-lib-instrument": "^6.0.3",
"karma": "~6.4.0", "jasmine-core": "~5.8.0",
"karma-chrome-launcher": "~3.2.0", "karma": "~6.4.0",
"karma-coverage": "~2.2.0", "karma-chrome-launcher": "~3.2.0",
"karma-jasmine": "~5.1.0", "karma-coverage": "~2.2.0",
"karma-jasmine-html-reporter": "~2.1.0", "karma-jasmine": "~5.1.0",
"postcss": "^8.5.3", "karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.9.3" "postcss": "^8.5.3",
} "typescript": "~6.0.3"
} }
}

View File

@@ -2,7 +2,7 @@ import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZonelessC
import { provideRouter, withInMemoryScrolling } from '@angular/router'; import { provideRouter, withInMemoryScrolling } from '@angular/router';
import { routes } from './app.routes'; import { routes } from './app.routes';
import { provideClientHydration, withEventReplay } from '@angular/platform-browser'; import { provideClientHydration, withEventReplay, withNoIncrementalHydration } from '@angular/platform-browser';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
@@ -14,6 +14,6 @@ export const appConfig: ApplicationConfig = {
scrollPositionRestoration: 'enabled' scrollPositionRestoration: 'enabled'
}) })
), ),
provideClientHydration(withEventReplay()) provideClientHydration(withEventReplay(), withNoIncrementalHydration())
] ]
}; };

View File

@@ -13,5 +13,13 @@
], ],
"exclude": [ "exclude": [
"src/**/*.spec.ts" "src/**/*.spec.ts"
] ],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
} }

View File

@@ -10,5 +10,13 @@
}, },
"include": [ "include": [
"src/**/*.ts" "src/**/*.ts"
] ],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
} }