Skip to content

Commit 86040a7

Browse files
committed
chore: upgrade Angular from v18 to v19
1 parent a4c398c commit 86040a7

File tree

8 files changed

+40
-35
lines changed

8 files changed

+40
-35
lines changed

angular.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
"prefix": "app",
1919
"architect": {
2020
"build": {
21-
"builder": "@angular-devkit/build-angular:browser",
21+
"builder": "@angular-devkit/build-angular:application",
2222
"options": {
23-
"outputPath": "dist",
23+
"outputPath": {
24+
"base": "dist"
25+
},
2426
"index": "src/index.html",
25-
"main": "src/main.ts",
26-
"polyfills": "src/polyfills.ts",
27+
"polyfills": [
28+
"src/polyfills.ts"
29+
],
2730
"tsConfig": "src/tsconfig.app.json",
2831
"inlineStyleLanguage": "scss",
2932
"assets": [
@@ -33,7 +36,8 @@
3336
"styles": [
3437
"src/styles.scss"
3538
],
36-
"scripts": []
39+
"scripts": [],
40+
"browser": "src/main.ts"
3741
},
3842
"configurations": {
3943
"development": {
@@ -43,8 +47,6 @@
4347
"namedChunks": false,
4448
"aot": true,
4549
"extractLicenses": true,
46-
"vendorChunk": false,
47-
"buildOptimizer": false,
4850
"fileReplacements": [
4951
{
5052
"replace": "src/environments/environment.ts",
@@ -59,8 +61,6 @@
5961
"namedChunks": false,
6062
"aot": true,
6163
"extractLicenses": true,
62-
"vendorChunk": false,
63-
"buildOptimizer": true,
6464
"fileReplacements": [
6565
{
6666
"replace": "src/environments/environment.ts",

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,28 @@
1818
},
1919
"private": true,
2020
"dependencies": {
21-
"@angular/common": "18.2.7",
22-
"@angular/compiler": "18.2.7",
23-
"@angular/core": "18.2.7",
24-
"@angular/forms": "18.2.7",
25-
"@angular/language-service": "18.2.7",
26-
"@angular/platform-browser": "18.2.7",
27-
"@angular/platform-browser-dynamic": "18.2.7",
28-
"@angular/router": "18.2.7",
21+
"@angular/common": "19.2.14",
22+
"@angular/compiler": "19.2.14",
23+
"@angular/core": "19.2.14",
24+
"@angular/forms": "19.2.14",
25+
"@angular/language-service": "19.2.14",
26+
"@angular/platform-browser": "19.2.14",
27+
"@angular/platform-browser-dynamic": "19.2.14",
28+
"@angular/router": "19.2.14",
2929
"@tauri-apps/api": "1.6.0",
3030
"rxjs": "7.8.1",
3131
"tslib": "2.7.0",
32-
"zone.js": "~0.14.10"
32+
"zone.js": "~0.15.1"
3333
},
3434
"devDependencies": {
35-
"@angular-devkit/build-angular": "18.2.7",
35+
"@angular-devkit/build-angular": "19.2.15",
3636
"@angular-eslint/builder": "18.3.1",
3737
"@angular-eslint/eslint-plugin": "18.3.1",
3838
"@angular-eslint/eslint-plugin-template": "18.3.1",
3939
"@angular-eslint/schematics": "18.3.1",
4040
"@angular-eslint/template-parser": "18.3.1",
41-
"@angular/cli": "18.2.7",
42-
"@angular/compiler-cli": "18.2.7",
41+
"@angular/cli": "19.2.15",
42+
"@angular/compiler-cli": "19.2.14",
4343
"@ngx-translate/core": "15.0.0",
4444
"@ngx-translate/http-loader": "8.0.0",
4545
"@tauri-apps/cli": "2.0.1",

src/app/app.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { APP_CONFIG } from '../environments/environment';
44
import {TauriService} from './core/services';
55

66
@Component({
7-
selector: 'app-root',
8-
templateUrl: './app.component.html',
9-
styleUrls: ['./app.component.scss']
7+
selector: 'app-root',
8+
templateUrl: './app.component.html',
9+
styleUrls: ['./app.component.scss'],
10+
standalone: false
1011
})
1112
export class AppComponent {
1213
constructor(

src/app/detail/detail.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, OnInit } from '@angular/core';
22

33
@Component({
4-
selector: 'app-detail',
5-
templateUrl: './detail.component.html',
6-
styleUrls: ['./detail.component.scss']
4+
selector: 'app-detail',
5+
templateUrl: './detail.component.html',
6+
styleUrls: ['./detail.component.scss'],
7+
standalone: false
78
})
89
export class DetailComponent implements OnInit {
910

src/app/home/home.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Component, OnInit } from '@angular/core';
22
import { Router } from '@angular/router';
33

44
@Component({
5-
selector: 'app-home',
6-
templateUrl: './home.component.html',
7-
styleUrls: ['./home.component.scss']
5+
selector: 'app-home',
6+
templateUrl: './home.component.html',
7+
styleUrls: ['./home.component.scss'],
8+
standalone: false
89
})
910
export class HomeComponent implements OnInit {
1011

src/app/shared/components/page-not-found/page-not-found.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, OnInit } from '@angular/core';
22

33
@Component({
4-
selector: 'app-page-not-found',
5-
templateUrl: './page-not-found.component.html',
6-
styleUrls: ['./page-not-found.component.scss']
4+
selector: 'app-page-not-found',
5+
templateUrl: './page-not-found.component.html',
6+
styleUrls: ['./page-not-found.component.scss'],
7+
standalone: false
78
})
89
export class PageNotFoundComponent implements OnInit {
910
constructor() {}

src/app/shared/directives/webview/webview.directive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Directive } from '@angular/core';
22

33
@Directive({
4-
selector: 'webview'
4+
selector: 'webview',
5+
standalone: false
56
})
67
export class WebviewDirective {
78
constructor() { }

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"baseUrl": "./",
55
"outDir": "./dist/out-tsc",
66
"forceConsistentCasingInFileNames": true,
7+
"esModuleInterop": true,
78
"strict": true,
89
"noImplicitReturns": true,
910
"noFallthroughCasesInSwitch": true,
1011
"sourceMap": true,
1112
"declaration": false,
12-
"downlevelIteration": true,
1313
"experimentalDecorators": true,
1414
"moduleResolution": "node",
1515
"importHelpers": true,

0 commit comments

Comments
 (0)