Skip to content

Commit 8b0756a

Browse files
authored
chore(angular-query): update to angular 19 (#8349)
1 parent ef0b7b2 commit 8b0756a

Some content is hidden

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

53 files changed

+4465
-942
lines changed

examples/angular/basic/angular.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"prefix": "app",
4646
"architect": {
4747
"build": {
48-
"builder": "@angular-devkit/build-angular:application",
48+
"builder": "@angular/build:application",
4949
"options": {
5050
"outputPath": "dist/basic",
5151
"index": "src/index.html",
@@ -81,7 +81,7 @@
8181
"defaultConfiguration": "production"
8282
},
8383
"serve": {
84-
"builder": "@angular-devkit/build-angular:dev-server",
84+
"builder": "@angular/build:dev-server",
8585
"configurations": {
8686
"production": {
8787
"buildTarget": "basic:build:production"
@@ -93,7 +93,7 @@
9393
"defaultConfiguration": "development"
9494
},
9595
"extract-i18n": {
96-
"builder": "@angular-devkit/build-angular:extract-i18n",
96+
"builder": "@angular/build:extract-i18n",
9797
"options": {
9898
"buildTarget": "basic:build"
9999
}

examples/angular/basic/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
},
1010
"private": true,
1111
"dependencies": {
12-
"@angular/common": "^17.3.12",
13-
"@angular/compiler": "^17.3.12",
14-
"@angular/core": "^17.3.12",
15-
"@angular/platform-browser": "^17.3.12",
16-
"@angular/platform-browser-dynamic": "^17.3.12",
12+
"@angular/common": "^19.0.0",
13+
"@angular/compiler": "^19.0.0",
14+
"@angular/core": "^19.0.0",
15+
"@angular/platform-browser": "^19.0.0",
16+
"@angular/platform-browser-dynamic": "^19.0.0",
1717
"@tanstack/angular-query-experimental": "^5.61.3",
1818
"rxjs": "^7.8.1",
1919
"tslib": "^2.6.3",
20-
"zone.js": "^0.14.8"
20+
"zone.js": "^0.15.0"
2121
},
2222
"devDependencies": {
23-
"@angular-devkit/build-angular": "^17.3.8",
24-
"@angular/cli": "^17.3.8",
25-
"@angular/compiler-cli": "^17.3.12",
26-
"typescript": "5.4.5"
23+
"@angular/build": "^19.0.1",
24+
"@angular/cli": "^19.0.1",
25+
"@angular/compiler-cli": "^19.0.0",
26+
"typescript": "5.6.3"
2727
}
2828
}

examples/angular/basic/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { PostsComponent } from './components/posts.component'
55
@Component({
66
changeDetection: ChangeDetectionStrategy.OnPush,
77
selector: 'basic-example',
8-
standalone: true,
98
templateUrl: './app.component.html',
109
imports: [PostComponent, PostsComponent],
1110
})

examples/angular/basic/src/app/components/post.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { PostsService } from '../services/posts-service'
1313
@Component({
1414
changeDetection: ChangeDetectionStrategy.OnPush,
1515
selector: 'post',
16-
standalone: true,
1716
templateUrl: './post.component.html',
1817
})
1918
export class PostComponent {

examples/angular/basic/src/app/components/posts.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { PostsService } from '../services/posts-service'
1212
@Component({
1313
changeDetection: ChangeDetectionStrategy.OnPush,
1414
selector: 'posts',
15-
standalone: true,
1615
templateUrl: './posts.component.html',
1716
})
1817
export class PostsComponent {

examples/angular/basic/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
"noImplicitReturns": true,
1010
"noFallthroughCasesInSwitch": true,
1111
"skipLibCheck": true,
12+
"isolatedModules": true,
1213
"esModuleInterop": true,
1314
"sourceMap": true,
1415
"declaration": false,
1516
"experimentalDecorators": true,
16-
"moduleResolution": "node",
17+
"moduleResolution": "bundler",
1718
"importHelpers": true,
1819
"target": "ES2022",
1920
"module": "ES2022",
@@ -24,6 +25,7 @@
2425
"enableI18nLegacyMessageIdFormat": false,
2526
"strictInjectionParameters": true,
2627
"strictInputAccessModifiers": true,
28+
"strictStandalone": true,
2729
"strictTemplates": true
2830
}
2931
}

examples/angular/devtools-panel/angular.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"prefix": "app",
4646
"architect": {
4747
"build": {
48-
"builder": "@angular-devkit/build-angular:application",
48+
"builder": "@angular/build:application",
4949
"options": {
5050
"outputPath": "dist/devtools-panel",
5151
"index": "src/index.html",
@@ -79,7 +79,7 @@
7979
"defaultConfiguration": "production"
8080
},
8181
"serve": {
82-
"builder": "@angular-devkit/build-angular:dev-server",
82+
"builder": "@angular/build:dev-server",
8383
"configurations": {
8484
"production": {
8585
"buildTarget": "devtools-panel:build:production"
@@ -91,7 +91,7 @@
9191
"defaultConfiguration": "development"
9292
},
9393
"extract-i18n": {
94-
"builder": "@angular-devkit/build-angular:extract-i18n",
94+
"builder": "@angular/build:extract-i18n",
9595
"options": {
9696
"buildTarget": "devtools-panel:build"
9797
}

examples/angular/devtools-panel/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
},
1010
"private": true,
1111
"dependencies": {
12-
"@angular/common": "^17.3.12",
13-
"@angular/compiler": "^17.3.12",
14-
"@angular/core": "^17.3.12",
15-
"@angular/platform-browser": "^17.3.12",
16-
"@angular/platform-browser-dynamic": "^17.3.12",
17-
"@angular/router": "^17.3.12",
12+
"@angular/common": "^19.0.0",
13+
"@angular/compiler": "^19.0.0",
14+
"@angular/core": "^19.0.0",
15+
"@angular/platform-browser": "^19.0.0",
16+
"@angular/platform-browser-dynamic": "^19.0.0",
17+
"@angular/router": "^19.0.0",
1818
"@tanstack/angular-query-devtools-experimental": "^5.61.3",
1919
"@tanstack/angular-query-experimental": "^5.61.3",
2020
"rxjs": "^7.8.1",
2121
"tslib": "^2.6.3",
22-
"zone.js": "^0.14.8"
22+
"zone.js": "^0.15.0"
2323
},
2424
"devDependencies": {
25-
"@angular-devkit/build-angular": "^17.3.8",
26-
"@angular/cli": "^17.3.8",
27-
"@angular/compiler-cli": "^17.3.12",
28-
"typescript": "5.4.5"
25+
"@angular/build": "^19.0.1",
26+
"@angular/cli": "^19.0.1",
27+
"@angular/compiler-cli": "^19.0.0",
28+
"typescript": "5.6.3"
2929
}
3030
}

examples/angular/devtools-panel/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { ExampleQueryComponent } from './components/example-query.component'
55
@Component({
66
changeDetection: ChangeDetectionStrategy.OnPush,
77
selector: 'app-root',
8-
standalone: true,
98
template: `
109
<ul>
1110
<li>

examples/angular/devtools-panel/src/app/components/basic-devtools-panel-example.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { ExampleQueryComponent } from './example-query.component'
44
import type { ElementRef } from '@angular/core'
55

66
@Component({
7-
standalone: true,
87
selector: 'basic-devtools-panel-example',
98
changeDetection: ChangeDetectionStrategy.OnPush,
109
template: `

0 commit comments

Comments
 (0)