Skip to content

Commit

Permalink
chore(angular-query): update to angular 19 (#8349)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoud-dv authored Nov 25, 2024
1 parent ef0b7b2 commit 8b0756a
Show file tree
Hide file tree
Showing 53 changed files with 4,465 additions and 942 deletions.
6 changes: 3 additions & 3 deletions examples/angular/basic/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular/build:application",
"options": {
"outputPath": "dist/basic",
"index": "src/index.html",
Expand Down Expand Up @@ -81,7 +81,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "basic:build:production"
Expand All @@ -93,7 +93,7 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular/build:extract-i18n",
"options": {
"buildTarget": "basic:build"
}
Expand Down
20 changes: 10 additions & 10 deletions examples/angular/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^17.3.12",
"@angular/compiler": "^17.3.12",
"@angular/core": "^17.3.12",
"@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^17.3.12",
"@angular/common": "^19.0.0",
"@angular/compiler": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/platform-browser-dynamic": "^19.0.0",
"@tanstack/angular-query-experimental": "^5.61.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.3",
"zone.js": "^0.14.8"
"zone.js": "^0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.12",
"typescript": "5.4.5"
"@angular/build": "^19.0.1",
"@angular/cli": "^19.0.1",
"@angular/compiler-cli": "^19.0.0",
"typescript": "5.6.3"
}
}
1 change: 0 additions & 1 deletion examples/angular/basic/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { PostsComponent } from './components/posts.component'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'basic-example',
standalone: true,
templateUrl: './app.component.html',
imports: [PostComponent, PostsComponent],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { PostsService } from '../services/posts-service'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'post',
standalone: true,
templateUrl: './post.component.html',
})
export class PostComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { PostsService } from '../services/posts-service'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'posts',
standalone: true,
templateUrl: './posts.component.html',
})
export class PostsComponent {
Expand Down
4 changes: 3 additions & 1 deletion examples/angular/basic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"isolatedModules": true,
"esModuleInterop": true,
"sourceMap": true,
"declaration": false,
"experimentalDecorators": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"importHelpers": true,
"target": "ES2022",
"module": "ES2022",
Expand All @@ -24,6 +25,7 @@
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictStandalone": true,
"strictTemplates": true
}
}
6 changes: 3 additions & 3 deletions examples/angular/devtools-panel/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular/build:application",
"options": {
"outputPath": "dist/devtools-panel",
"index": "src/index.html",
Expand Down Expand Up @@ -79,7 +79,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "devtools-panel:build:production"
Expand All @@ -91,7 +91,7 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular/build:extract-i18n",
"options": {
"buildTarget": "devtools-panel:build"
}
Expand Down
22 changes: 11 additions & 11 deletions examples/angular/devtools-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
},
"private": true,
"dependencies": {
"@angular/common": "^17.3.12",
"@angular/compiler": "^17.3.12",
"@angular/core": "^17.3.12",
"@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^17.3.12",
"@angular/router": "^17.3.12",
"@angular/common": "^19.0.0",
"@angular/compiler": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/platform-browser-dynamic": "^19.0.0",
"@angular/router": "^19.0.0",
"@tanstack/angular-query-devtools-experimental": "^5.61.3",
"@tanstack/angular-query-experimental": "^5.61.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.3",
"zone.js": "^0.14.8"
"zone.js": "^0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.12",
"typescript": "5.4.5"
"@angular/build": "^19.0.1",
"@angular/cli": "^19.0.1",
"@angular/compiler-cli": "^19.0.0",
"typescript": "5.6.3"
}
}
1 change: 0 additions & 1 deletion examples/angular/devtools-panel/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { ExampleQueryComponent } from './components/example-query.component'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
standalone: true,
template: `
<ul>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ExampleQueryComponent } from './example-query.component'
import type { ElementRef } from '@angular/core'

@Component({
standalone: true,
selector: 'basic-devtools-panel-example',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ interface Response {
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'example-query',
standalone: true,
template: `
<div style="padding-bottom: 20px">
@if (query.isPending()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import type { ElementRef } from '@angular/core'
import type { DevtoolsPanelRef } from '@tanstack/angular-query-devtools-experimental'

@Component({
standalone: true,
selector: 'lazy-load-devtools-panel-example',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
Expand Down
4 changes: 3 additions & 1 deletion examples/angular/devtools-panel/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"isolatedModules": true,
"esModuleInterop": true,
"sourceMap": true,
"declaration": false,
"experimentalDecorators": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"importHelpers": true,
"target": "ES2022",
"module": "ES2022",
Expand All @@ -24,6 +25,7 @@
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictStandalone": true,
"strictTemplates": true
}
}
6 changes: 3 additions & 3 deletions examples/angular/infinite-query-with-max-pages/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular/build:application",
"options": {
"outputPath": "dist/infinite-query-with-max-pages",
"index": "src/index.html",
Expand Down Expand Up @@ -81,7 +81,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "infinite-query-with-max-pages:build:production"
Expand All @@ -93,7 +93,7 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular/build:extract-i18n",
"options": {
"buildTarget": "infinite-query-with-max-pages:build"
}
Expand Down
20 changes: 10 additions & 10 deletions examples/angular/infinite-query-with-max-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/common": "^17.3.12",
"@angular/compiler": "^17.3.12",
"@angular/core": "^17.3.12",
"@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^17.3.12",
"@angular/common": "^19.0.0",
"@angular/compiler": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/platform-browser-dynamic": "^19.0.0",
"@tanstack/angular-query-experimental": "^5.61.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.3",
"zone.js": "^0.14.8"
"zone.js": "^0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.12",
"typescript": "5.4.5"
"@angular/build": "^19.0.1",
"@angular/cli": "^19.0.1",
"@angular/compiler-cli": "^19.0.0",
"typescript": "5.6.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ExampleComponent } from './components/example.component'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
standalone: true,
template: `<example />`,
imports: [ExampleComponent],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { ProjectsService } from '../services/projects.service'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'example',
standalone: true,
templateUrl: './example.component.html',
imports: [ProjectStyleDirective],
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Directive, HostBinding, Input } from '@angular/core'

@Directive({
standalone: true,
selector: '[projectStyle]',
})
export class ProjectStyleDirective {
Expand Down
4 changes: 3 additions & 1 deletion examples/angular/infinite-query-with-max-pages/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"isolatedModules": true,
"esModuleInterop": true,
"sourceMap": true,
"declaration": false,
"experimentalDecorators": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"importHelpers": true,
"target": "ES2022",
"module": "ES2022",
Expand All @@ -24,6 +25,7 @@
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictStandalone": true,
"strictTemplates": true
}
}
6 changes: 3 additions & 3 deletions examples/angular/pagination/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular/build:application",
"options": {
"outputPath": "dist/pagination",
"index": "src/index.html",
Expand Down Expand Up @@ -81,7 +81,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "pagination:build:production"
Expand All @@ -93,7 +93,7 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular/build:extract-i18n",
"options": {
"buildTarget": "pagination:build"
}
Expand Down
20 changes: 10 additions & 10 deletions examples/angular/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/common": "^17.3.12",
"@angular/compiler": "^17.3.12",
"@angular/core": "^17.3.12",
"@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^17.3.12",
"@angular/common": "^19.0.0",
"@angular/compiler": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/platform-browser-dynamic": "^19.0.0",
"@tanstack/angular-query-experimental": "^5.61.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.3",
"zone.js": "^0.14.8"
"zone.js": "^0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.12",
"typescript": "5.4.5"
"@angular/build": "^19.0.1",
"@angular/cli": "^19.0.1",
"@angular/compiler-cli": "^19.0.0",
"typescript": "5.6.3"
}
}
1 change: 0 additions & 1 deletion examples/angular/pagination/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ExampleComponent } from './components/example.component'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
standalone: true,
template: `<example />`,
imports: [ExampleComponent],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { ProjectsService } from '../services/projects.service'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'example',
standalone: true,
templateUrl: './example.component.html',
})
export class ExampleComponent {
Expand Down
Loading

0 comments on commit 8b0756a

Please sign in to comment.