From 8b0756ad8bec4f3ba8a3c3dde5f1503ba0426747 Mon Sep 17 00:00:00 2001 From: Arnoud <6420061+arnoud-dv@users.noreply.github.com> Date: Mon, 25 Nov 2024 18:21:06 +0100 Subject: [PATCH] chore(angular-query): update to angular 19 (#8349) --- examples/angular/basic/angular.json | 6 +- examples/angular/basic/package.json | 20 +- .../angular/basic/src/app/app.component.ts | 1 - .../src/app/components/post.component.ts | 1 - .../src/app/components/posts.component.ts | 1 - examples/angular/basic/tsconfig.json | 4 +- examples/angular/devtools-panel/angular.json | 6 +- examples/angular/devtools-panel/package.json | 22 +- .../devtools-panel/src/app/app.component.ts | 1 - .../basic-devtools-panel-example.component.ts | 1 - .../app/components/example-query.component.ts | 1 - ...y-load-devtools-panel-example.component.ts | 1 - examples/angular/devtools-panel/tsconfig.json | 4 +- .../angular.json | 6 +- .../package.json | 20 +- .../src/app/app.component.ts | 1 - .../src/app/components/example.component.ts | 1 - .../app/directives/project-style.directive.ts | 1 - .../tsconfig.json | 4 +- examples/angular/pagination/angular.json | 6 +- examples/angular/pagination/package.json | 20 +- .../pagination/src/app/app.component.ts | 1 - .../src/app/components/example.component.ts | 1 - examples/angular/pagination/tsconfig.json | 4 +- .../query-options-from-a-service/angular.json | 6 +- .../query-options-from-a-service/package.json | 22 +- .../src/app/app.component.ts | 1 - .../src/app/components/post.component.ts | 1 - .../src/app/components/posts.component.ts | 1 - .../tsconfig.json | 4 +- examples/angular/router/angular.json | 6 +- examples/angular/router/package.json | 22 +- .../angular/router/src/app/app.component.ts | 1 - .../src/app/components/post.component.ts | 1 - .../src/app/components/posts.component.ts | 1 - examples/angular/router/tsconfig.json | 4 +- examples/angular/rxjs/angular.json | 6 +- examples/angular/rxjs/package.json | 22 +- .../angular/rxjs/src/app/app.component.ts | 1 - .../src/app/components/example.component.ts | 1 - examples/angular/rxjs/tsconfig.json | 4 +- examples/angular/simple/angular.json | 6 +- examples/angular/simple/package.json | 20 +- .../angular/simple/src/app/app.component.ts | 1 - .../components/simple-example.component.ts | 1 - examples/angular/simple/tsconfig.json | 4 +- integrations/angular-cli-17/package.json | 2 + .../package.json | 4 +- .../angular-query-experimental/package.json | 8 +- .../src/__tests__/test-utils.ts | 4 - .../util/lazy-init/lazy-init.test.ts | 12 +- .../lazy-signal-initializer.test.ts | 10 +- pnpm-lock.yaml | 5097 ++++++++++++++--- 53 files changed, 4465 insertions(+), 942 deletions(-) diff --git a/examples/angular/basic/angular.json b/examples/angular/basic/angular.json index 1256bd9784..1fa5e38462 100644 --- a/examples/angular/basic/angular.json +++ b/examples/angular/basic/angular.json @@ -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", @@ -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" @@ -93,7 +93,7 @@ "defaultConfiguration": "development" }, "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", + "builder": "@angular/build:extract-i18n", "options": { "buildTarget": "basic:build" } diff --git a/examples/angular/basic/package.json b/examples/angular/basic/package.json index d022433ad1..fe1d0b8694 100644 --- a/examples/angular/basic/package.json +++ b/examples/angular/basic/package.json @@ -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" } } diff --git a/examples/angular/basic/src/app/app.component.ts b/examples/angular/basic/src/app/app.component.ts index deb2fe24b2..5958a1b5e7 100644 --- a/examples/angular/basic/src/app/app.component.ts +++ b/examples/angular/basic/src/app/app.component.ts @@ -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], }) diff --git a/examples/angular/basic/src/app/components/post.component.ts b/examples/angular/basic/src/app/components/post.component.ts index d77e707e99..9eb32807db 100644 --- a/examples/angular/basic/src/app/components/post.component.ts +++ b/examples/angular/basic/src/app/components/post.component.ts @@ -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 { diff --git a/examples/angular/basic/src/app/components/posts.component.ts b/examples/angular/basic/src/app/components/posts.component.ts index 3c8bf7c79d..2f04558e9d 100644 --- a/examples/angular/basic/src/app/components/posts.component.ts +++ b/examples/angular/basic/src/app/components/posts.component.ts @@ -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 { diff --git a/examples/angular/basic/tsconfig.json b/examples/angular/basic/tsconfig.json index 82c63d482a..d0d73c8beb 100644 --- a/examples/angular/basic/tsconfig.json +++ b/examples/angular/basic/tsconfig.json @@ -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", @@ -24,6 +25,7 @@ "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModifiers": true, + "strictStandalone": true, "strictTemplates": true } } diff --git a/examples/angular/devtools-panel/angular.json b/examples/angular/devtools-panel/angular.json index c0add710b8..16c8920343 100644 --- a/examples/angular/devtools-panel/angular.json +++ b/examples/angular/devtools-panel/angular.json @@ -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", @@ -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" @@ -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" } diff --git a/examples/angular/devtools-panel/package.json b/examples/angular/devtools-panel/package.json index 0ee95c8be6..d7892714b6 100644 --- a/examples/angular/devtools-panel/package.json +++ b/examples/angular/devtools-panel/package.json @@ -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" } } diff --git a/examples/angular/devtools-panel/src/app/app.component.ts b/examples/angular/devtools-panel/src/app/app.component.ts index 803805f860..8df17fc25b 100644 --- a/examples/angular/devtools-panel/src/app/app.component.ts +++ b/examples/angular/devtools-panel/src/app/app.component.ts @@ -5,7 +5,6 @@ import { ExampleQueryComponent } from './components/example-query.component' @Component({ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'app-root', - standalone: true, template: `