chore: updates angular to v17

This commit is contained in:
2025-10-31 18:23:59 -03:00
parent 238b158073
commit 872b8fac3a
4 changed files with 19120 additions and 19461 deletions

View File

@@ -80,10 +80,10 @@
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "frontend-hideyoshi.com:build:production" "buildTarget": "frontend-hideyoshi.com:build:production"
}, },
"development": { "development": {
"browserTarget": "frontend-hideyoshi.com:build:development" "buildTarget": "frontend-hideyoshi.com:build:development"
} }
}, },
"defaultConfiguration": "development" "defaultConfiguration": "development"
@@ -91,7 +91,7 @@
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "frontend-hideyoshi.com:build" "buildTarget": "frontend-hideyoshi.com:build"
} }
}, },
"test": { "test": {

4851
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -16,17 +16,17 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^16.2.2", "@angular/animations": "^17.3.12",
"@angular/cdk": "^16.2.1", "@angular/cdk": "^16.2.1",
"@angular/common": "^16.2.2", "@angular/common": "^17.3.12",
"@angular/compiler": "^16.2.2", "@angular/compiler": "^17.3.12",
"@angular/core": "^16.2.2", "@angular/core": "^17.3.12",
"@angular/forms": "^16.2.2", "@angular/forms": "^17.3.12",
"@angular/material": "^16.2.1", "@angular/material": "^16.2.1",
"@angular/platform-browser": "^16.2.2", "@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^16.2.2", "@angular/platform-browser-dynamic": "^17.3.12",
"@angular/router": "^16.2.2", "@angular/router": "^17.3.12",
"@angular/service-worker": "^16.2.2", "@angular/service-worker": "^17.3.12",
"@fortawesome/angular-fontawesome": "^0.13.0", "@fortawesome/angular-fontawesome": "^0.13.0",
"@fortawesome/fontawesome-svg-core": "^6.1.1", "@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1", "@fortawesome/free-brands-svg-icons": "^6.1.1",
@@ -49,17 +49,17 @@
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"ts-interface-checker": "^1.0.2", "ts-interface-checker": "^1.0.2",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.13.1" "zone.js": "~0.14.10"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^16.1.1", "@angular-devkit/build-angular": "^17.3.17",
"@angular-eslint/builder": "^16.1.1", "@angular-eslint/builder": "^16.1.1",
"@angular-eslint/eslint-plugin": "16.1.1", "@angular-eslint/eslint-plugin": "16.1.1",
"@angular-eslint/eslint-plugin-template": "16.1.1", "@angular-eslint/eslint-plugin-template": "16.1.1",
"@angular-eslint/schematics": "^20.5.0", "@angular-eslint/schematics": "^20.5.0",
"@angular-eslint/template-parser": "16.1.1", "@angular-eslint/template-parser": "16.1.1",
"@angular/cli": "^16.1.1", "@angular/cli": "^17.3.17",
"@angular/compiler-cli": "^16.2.2", "@angular/compiler-cli": "^17.3.12",
"@types/jasmine": "~4.0.0", "@types/jasmine": "~4.0.0",
"@types/node": "^18.11.19", "@types/node": "^18.11.19",
"@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -76,6 +76,6 @@
"prettier": "^3.0.3", "prettier": "^3.0.3",
"prettier-eslint": "^16.1.1", "prettier-eslint": "^16.1.1",
"ts-interface-builder": "^0.3.3", "ts-interface-builder": "^0.3.3",
"typescript": "~5.1.6" "typescript": "~5.4.5"
} }
} }

View File

@@ -17,7 +17,11 @@ export class UpdateService {
} }
public checkForUpdates(): void { public checkForUpdates(): void {
this.swUpdate.available.subscribe((event) => this.promptUser()); this.swUpdate.versionUpdates.subscribe(versionUpdate => {
if (versionUpdate.type === 'VERSION_READY') {
this.promptUser();
}
})
} }
private promptUser(): void { private promptUser(): void {