Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions examples/angular/auto-refetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
}
}
16 changes: 8 additions & 8 deletions examples/angular/basic-persister/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"@tanstack/angular-query-persist-client": "^5.62.7",
"@tanstack/query-async-storage-persister": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
}
}
16 changes: 8 additions & 8 deletions examples/angular/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
Comment on lines 21 to 25
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Align TypeScript with Angular 20.3.x compatibility.

Line 25 keeps typescript at 5.8.3, which falls below the @angular/[email protected] peer range (>=5.9.0 <6.0.0). This mismatch causes the Angular toolchain to abort. Please raise the version.

     "@angular/build": "^20.3.3",
     "@angular/cli": "^20.3.3",
     "@angular/compiler-cli": "^20.3.2",
-    "typescript": "5.8.3"
+    "typescript": "^5.9.3"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
"devDependencies": {
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "^5.9.3"
🤖 Prompt for AI Agents
In examples/angular/basic/package.json around lines 21 to 25 the TypeScript
devDependency is pinned to 5.8.3 which is below the @angular/[email protected]
peer requirement (>=5.9.0 <6.0.0); update the TypeScript version to a 5.9.x
release (or any >=5.9.0 <6.0.0), then reinstall/update lockfile (npm/yarn/pnpm)
and run the Angular build/tests to verify the toolchain no longer aborts.

}
}
18 changes: 9 additions & 9 deletions examples/angular/devtools-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/router": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@angular/router": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
Comment on lines 22 to 26
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Raise TypeScript to the Angular 20.3-supported band.

Line 26 leaves typescript at 5.8.3, which is outside the @angular/[email protected] peer requirement (>=5.9.0 <6.0.0). This breaks ng commands. Please upgrade.

     "@angular/build": "^20.3.3",
     "@angular/cli": "^20.3.3",
     "@angular/compiler-cli": "^20.3.2",
-    "typescript": "5.8.3"
+    "typescript": "^5.9.3"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
"devDependencies": {
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "^5.9.3"
🤖 Prompt for AI Agents
In examples/angular/devtools-panel/package.json around lines 22 to 26, the
devDependency "typescript" is pinned to 5.8.3 which is incompatible with
@angular/[email protected] (requires >=5.9.0 <6.0.0); update the typescript
version to a 5.9.x or later 5.x release (e.g. ^5.9.0) in devDependencies and
then reinstall/update lockfile (npm install or yarn install) so ng commands no
longer fail due to the peer version mismatch.

}
}
16 changes: 8 additions & 8 deletions examples/angular/infinite-query-with-max-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
}
}
18 changes: 9 additions & 9 deletions examples/angular/optimistic-updates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/forms": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/forms": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
Comment on lines +23 to 26
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Raise TypeScript to Angular 20.3’s supported range.

Angular 20.3.x (CLI/compiler-cli) requires TypeScript >= 5.9.0 < 6.0.0. Keeping 5.8.3 causes peer dependency resolution to fail and ng commands to abort. Please bump the pinned version accordingly.

-    "typescript": "5.8.3"
+    "typescript": "^5.9.0"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "^5.9.0"
🤖 Prompt for AI Agents
In examples/angular/optimistic-updates/package.json around lines 23 to 26, the
pinned TypeScript version is "5.8.3" which is outside Angular 20.3's supported
range (>=5.9.0 <6.0.0); update the TypeScript dependency to a version within
that range (for example "5.9.x" or a caret range like "^5.9.0") so peer
dependency resolution succeeds and Angular CLI/compiler-cli work correctly.

}
}
16 changes: 8 additions & 8 deletions examples/angular/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
"watch": "ng build --watch --configuration development"
},
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
}
}
18 changes: 9 additions & 9 deletions examples/angular/query-options-from-a-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/router": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@angular/router": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
Comment on lines 22 to 26
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Bump TypeScript to satisfy Angular 20.3.2 peer range.

Line 26 still pins typescript to 5.8.3, but @angular/[email protected] declares a peer dependency of typescript >=5.9.0 <6.0.0. Keeping 5.8.3 causes the CLI/build to error out. Please lift the version into the supported window.

     "@angular/build": "^20.3.3",
     "@angular/cli": "^20.3.3",
     "@angular/compiler-cli": "^20.3.2",
-    "typescript": "5.8.3"
+    "typescript": "^5.9.3"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
"devDependencies": {
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "^5.9.3"
🤖 Prompt for AI Agents
In examples/angular/query-options-from-a-service/package.json around lines 22 to
26, the devDependency pins "typescript" to 5.8.3 which is below
@angular/[email protected]'s peer requirement (>=5.9.0 <6.0.0); update the
"typescript" entry to a version in that range (for example "^5.9.0") so it
satisfies the peer dependency, then run install (npm/yarn) and verify the
project builds.

}
}
18 changes: 9 additions & 9 deletions examples/angular/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/router": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@angular/router": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
}
}
18 changes: 9 additions & 9 deletions examples/angular/rxjs/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": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/forms": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/forms": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
}
}
16 changes: 8 additions & 8 deletions examples/angular/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
},
"private": true,
"dependencies": {
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/common": "^20.3.2",
"@angular/compiler": "^20.3.2",
"@angular/core": "^20.3.2",
"@angular/platform-browser": "^20.3.2",
"@tanstack/angular-query-experimental": "^5.90.2",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "0.15.0"
"zone.js": "0.15.1"
},
"devDependencies": {
"@angular/build": "^20.0.0",
"@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^20.0.0",
"@angular/build": "^20.3.3",
"@angular/cli": "^20.3.3",
"@angular/compiler-cli": "^20.3.2",
"typescript": "5.8.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preview": "vite preview"
},
"dependencies": {
"@algolia/client-search": "5.2.1",
"@algolia/client-search": "5.38.0",
"@tanstack/react-query": "^5.90.2",
"@tanstack/react-query-devtools": "^5.90.2",
"react": "^19.0.0",
Expand All @@ -18,7 +18,7 @@
"@tanstack/eslint-plugin-query": "^5.90.1",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react": "^4.7.0",
"typescript": "5.8.3",
"vite": "^6.3.6"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/react/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"dependencies": {
"@tanstack/react-query": "^5.90.2",
"@tanstack/react-query-devtools": "^5.90.2",
"graphql": "^16.9.0",
"graphql-request": "^7.1.2",
"graphql": "^16.11.0",
"graphql-request": "^7.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react": "^4.7.0",
"vite": "^6.3.6"
}
}
2 changes: 1 addition & 1 deletion examples/react/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@tanstack/eslint-plugin-query": "^5.90.1",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react": "^4.7.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

@vitejs/plugin-react 4.7.0 requires Node ≥20.19 (or ≥22.12). Verify engines/CI.

Installs/builds will fail on Node 18. Ensure engines.node and CI images use Node ≥20.19.

Run to audit engines and CI node versions:


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

echo "Root engines:"
jq -r '.engines // {}' package.json 2>/dev/null || true
echo

echo "Examples with missing/old engines.node:"
fd -a package.json examples | while read -r f; do
  node_req=$(jq -r '.engines.node // ""' "$f")
  if [[ -z "$node_req" || "$node_req" =~ ^(>=)?1[0-9] || "$node_req" =~ ^(>=)?20(\.[0-1][0-8])?(\.|$) ]]; then
    echo "$f -> engines.node: ${node_req:-MISSING}"
  fi
done
echo

echo "Workflows node setup:"
fd -H -t f -g '.github/workflows/*.yml' | xargs -r rg -n -C2 -e 'setup-node' -e 'node-version' -e 'matrix\.node'

Length of output: 5066


Enforce Node ≥20.19 for builds

  • Add "engines": { "node": ">=20.19.0" } to root and all example package.json files.
  • Update .github/workflows setup-node steps to pin Node ≥20.19 (via node-version or matrix).
🤖 Prompt for AI Agents
In examples/react/basic/package.json around line 23, add an "engines": { "node":
">=20.19.0" } entry (and likewise add the same "engines" field to the repository
root package.json and every example package.json) so builds enforce Node
>=20.19; then update .github/workflows setup-node steps to pin Node to 20.19
(e.g., set node-version to "20.19" or "20.19.x" in the workflow or matrix) to
ensure CI uses the required minimum Node version.

"typescript": "5.8.3",
"vite": "^6.3.6"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/react/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tailwindcss/vite": "^4.0.14",
"@vitejs/plugin-react": "^4.3.4",
"tailwindcss": "^4.0.14",
"@tailwindcss/vite": "^4.1.13",
"@vitejs/plugin-react": "^4.7.0",
"tailwindcss": "^4.1.13",
Comment on lines +17 to +19
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

🧩 Analysis chain

Tailwind v4 + Vite plugin bump: verify migration (no PostCSS plugin, no v3 directives) and enforce Node version.

Upgrading to tailwindcss 4.1.x and @tailwindcss/vite 4.1.x requires:

  • Vite plugin added in vite.config (import from '@tailwindcss/vite' and included in plugins).
  • No PostCSS Tailwind plugin or legacy @tailwind base/components/utilities directives (v4 uses @import "tailwindcss").
  • Node >=18 (Vite 6 and Tailwind v4).

Run to verify and surface actionable diffs:

Recommend setting engines to prevent CI drift:

 {
   "name": "@tanstack/query-example-chat",
   "private": true,
   "type": "module",
+  "engines": {
+    "node": ">=18.18"
+  },
   "scripts": {

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Locate this example dir
DIR="$(dirname "$(rg -n -l '"name"\s*:\s*"@tanstack/query-example-chat"' -g 'examples/**/package.json' | head -n1)")"
echo "Example dir: $DIR"

echo "1) Check vite.config for @tailwindcss/vite import and usage"
rg -nC2 "from '@tailwindcss/vite'|plugins\s*:.*tailwind\s*\(" "$DIR" -g 'vite.config.*' || {
  echo "WARNING: vite.config is missing @tailwindcss/vite import or plugin usage."; }

echo "2) Ensure no PostCSS Tailwind plugin remnants"
if fd -a -g 'postcss.config.*' "$DIR" >/dev/null; then
  rg -n "tailwindcss" "$DIR"/postcss.config.* && \
    echo "WARNING: Remove Tailwind from postcss.config for v4."
fi

echo "3) Detect legacy @tailwind directives in CSS"
rg -n "@tailwind\s+(base|components|utilities)" "$DIR" -g '**/*.{css,pcss}' && \
  echo "WARNING: Replace legacy @tailwind directives with: @import \"tailwindcss\";"

echo "4) Flag legacy tailwind.config files (typically not used in v4)"
fd -a -g 'tailwind.config.*' "$DIR" || true

echo "5) Check engines.node"
jq -r '.engines?.node // "MISSING"' "$DIR/package.json"

Length of output: 691


Tailwind v4 + Vite plugin: plugin present; add Node engine constraint

  • examples/react/chat/vite.config.ts imports/uses '@tailwindcss/vite'.
  • No postcss.config found and no legacy @tailwind directives detected.
  • examples/react/chat/package.json is missing "engines.node" — add Node >=18.18 to prevent CI drift.
 {
   "name": "@tanstack/query-example-chat",
   "private": true,
   "type": "module",
+  "engines": {
+    "node": ">=18.18"
+  },
   "scripts": {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@tailwindcss/vite": "^4.1.13",
"@vitejs/plugin-react": "^4.7.0",
"tailwindcss": "^4.1.13",
{
"name": "@tanstack/query-example-chat",
"private": true,
"type": "module",
"engines": {
"node": ">=18.18"
},
"scripts": {},
"devDependencies": {
"@tailwindcss/vite": "^4.1.13",
"@vitejs/plugin-react": "^4.7.0",
"tailwindcss": "^4.1.13"
}
}
🤖 Prompt for AI Agents
examples/react/chat/package.json lines 17-19: package.json is missing an
"engines.node" field which can cause CI/node-version drift; add an "engines"
object with "node": ">=18.18" (or ">=18.18.0") to enforce Node >=18.18 for this
example, e.g. add "engines": { "node": ">=18.18" } at top-level of package.json
and commit the change.

"typescript": "5.8.3",
"vite": "^6.3.6"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react": "^4.7.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Require Node >=20.19 for @vitejs/plugin-react 4.7.0; add engines and align CI

@vitejs/plugin-react 4.7.0 raises the Node requirement; installs/builds will fail on older Nodes. Add an engines constraint and ensure CI/dev images match.

Proposed change:

 {
   "name": "@tanstack/query-example-react-default-query-function",
   "private": true,
   "type": "module",
+  "engines": {
+    "node": ">=20.19"
+  },
   "scripts": {

Quick verification script (repo root):


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail
echo "Root engines:"; jq -r '.engines // {}' package.json 2>/dev/null || true
echo
echo "Examples with missing/weak engines.node:"
fd -a package.json examples | while read -r f; do
  node_req=$(jq -r '.engines.node // ""' "$f")
  if [[ -z "$node_req" || "$node_req" =~ ^(>=)?1[0-9] ]]; then
    echo "$f -> engines.node: ${node_req:-MISSING}"
  fi
done
echo
echo "CI setup-node versions:"
fd -a -g ".github/workflows/*.yml" | xargs rg -n -C1 "setup-node|node-version|matrix\.node"

Length of output: 5752


I couldn’t detect any CI node-version settings because hidden workflow files were skipped. Let’s recheck including hidden directories:


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail
echo "CI setup-node versions:"
fd -H -t f -g '*.yml' .github/workflows | xargs -r rg -n -C2 -e "setup-node" -e "node-version" -e "matrix.node"

Length of output: 23


Enforce Node ≥ 20.19 across packages and CI

  • Add "engines": { "node": ">=20.19" } to the root package.json and all examples/**/package.json (including examples/react/default-query-function/package.json).
  • Update your GitHub Actions workflows in .github/workflows/*.yml to use actions/setup-node@v3 with node-version: "20.19".
🤖 Prompt for AI Agents
In examples/react/default-query-function/package.json around line 17, the
package.json is missing the engines field enforcing Node >= 20.19; add an
"engines": { "node": ">=20.19" } entry to this file (and mirror the change in
the root package.json and all examples/**/package.json files) to enforce Node
versioning across packages; additionally update CI workflow files
(.github/workflows/*.yml) to use actions/setup-node@v3 with node-version:
"20.19".

"typescript": "5.8.3",
"vite": "^6.3.6"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/devtools-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react": "^4.7.0",
"typescript": "5.8.3",
"vite": "^6.3.6"
Comment on lines +17 to 19
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

🧩 Analysis chain

@vitejs/plugin-react 4.7.0 upgrade looks good; verify Vite/Node engines.

Peer range includes Vite 6; ensure CI/dev Node satisfies Vite 6 engines (>=18).


🏁 Script executed:

#!/bin/bash
# Inspect peer deps and engines
curl -s https://registry.npmjs.org/%40vitejs%2Fplugin-react/4.7.0 | jq '{version, peerDependencies, engines}'
curl -s https://registry.npmjs.org/vite/6.3.6 | jq '{version, engines}'

Length of output: 249


Specify Node >=18 in engines and CI

Vite 6.3.6 requires Node ^18.0.0, so update your package.json “engines.node” to “>=18.0.0” and ensure your CI/development environments use Node 18 or higher.

🤖 Prompt for AI Agents
In examples/react/devtools-panel/package.json around lines 17 to 19, the package
uses Vite 6.3.6 which requires Node ^18.0.0; update the "engines.node" field to
">=18.0.0" in package.json and adjust any CI configuration or developer setup
scripts to use Node 18+ (for example update CI matrix or Node setup actions) so
builds run on a compatible Node version.

}
Expand Down
Loading
Loading