Skip to content

chore(deps): bump @tanstack/* query packages repo-wide - #7761

Merged
KATT merged 1 commit into
cursor/tanstack-packages-minor-1504from
cursor/tanstack-repo-upgrade-1504
Oct 31, 2026
Merged

KATT merged 1 commit into
cursor/tanstack-packages-minor-1504from
cursor/tanstack-repo-upgrade-1504

Conversation

@KATT

@KATT KATT commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Why

  • Stacked on feat(react-query,tanstack-react-query): support @tanstack/react-query 5.105 types #7760, which builds and tests packages/ against TanStack Query 5.105 but keeps the ^5.80.3 range for @tanstack/react-query, because manypkg wants one range repo-wide.
  • This PR moves every range to ^5.105.0.
  • The SSE chat example works around the old mismatch with an npm: alias, a Vite dedupe and a tsconfig path, to avoid two copies of @tanstack/react-query.

What

  • Bump TanStack Query ranges to ^5.105.0 in packages/ (dev dependencies only), examples and www:

    Package From To
    @tanstack/react-query ^5.80.3 ^5.105.0
    @tanstack/react-query-devtools ^5.80.3 ^5.105.0
    @tanstack/query-core (www) ^5.90.20 ^5.105.0
  • Peer ranges are unchanged.

  • SSE chat example (examples/tanstack-start-sse-chat): drop the npm: alias, the Vite dedupe and the tsconfig path for @tanstack/react-query.

  • Lockfile: specifier updates only. Resolved versions are the same as in feat(react-query,tanstack-react-query): support @tanstack/react-query 5.105 types #7760.

  • Router and Start packages are already at latest.

Links

  • SSE chat home: pending
    • Channel list is server-rendered with a single copy of @tanstack/react-query.
  • SSE chat channel /channels/<id>: pending
    • Posts are server-rendered and hydrated.

Alternatives considered

  • Keep the npm: alias in the example: works, but leaves mismatched ranges and needs workarounds in the example.

Testing

  • pnpm install --frozen-lockfile and pnpm manypkg check pass.
  • pnpm build and pnpm typecheck-packages pass.
  • pnpm test --watch false packages/react-query packages/tanstack-react-query: 64 files, 292 tests pass. The full suite runs on feat(react-query,tanstack-react-query): support @tanstack/react-query 5.105 types #7760 with the same resolved versions.
  • pnpm turbo typecheck --filter="./examples/**" --filter=www: www and the TanStack Query examples pass.
    • The Lambda examples fail locally on global type clashes in node_modules type declarations.
    • The Prisma examples pass once prisma generate has run for each.
  • SSE chat example without the alias: typechecks, and vite build succeeds.
Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Chores
    • Updated React Query versions across examples, documentation, and package development environments.
    • Refreshed the chat example’s dependency configuration and build setup. No user-facing functionality changes are included.

@KATT
KATT requested review from a team as code owners October 31, 2026 22:23
@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
examples-todomvc Ready Ready Preview Oct 31, 2026 11:11pm UTC
next-prisma-starter Ready Ready Preview Oct 31, 2026 11:11pm UTC
next-prisma-websockets-starter Ready Ready Preview Oct 31, 2026 11:11pm UTC
next-sse-chat Building Building Preview Oct 31, 2026 11:11pm UTC
tanstack-start-sse-chat Ready Ready Preview Oct 31, 2026 11:11pm UTC
trpc-next-app-dir Ready Ready Preview Oct 31, 2026 11:11pm UTC
www Ready Ready Preview Oct 31, 2026 11:11pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
og-image Skipped Skipped Oct 31, 2026 11:11pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 53978d4 and 425e06f.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between a77c398 and 53978d4.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 8
  • examples/tanstack-start-sse-chat/package.json
  • examples/tanstack-start-sse-chat/tsconfig.json
  • examples/tanstack-start-sse-chat/vite.config.ts
  • packages/next/package.json
  • packages/react-query/package.json
  • packages/server/package.json
  • packages/tanstack-react-query/package.json
  • packages/upgrade/package.json
Files with no reviewable changes: 1
  • examples/tanstack-start-sse-chat/vite.config.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Walkthrough

TanStack Query dependency ranges changed from ^5.80.3 to ^5.105.0 in example, package, and website manifests. The SSE chat example now declares direct package versions and removes its React Query TypeScript path alias and Vite deduplication setting.

Changes: TanStack Query dependency updates

Layer / File(s) Summary
Dependency version updates
examples/**/package.json, packages/*/package.json, www/package.json
Manifests now specify ^5.105.0 for TanStack Query dependencies that previously used ^5.80.3. The website also updates @tanstack/query-core from ^5.90.20 to ^5.105.0.
SSE chat dependency resolution
examples/tanstack-start-sse-chat/package.json, examples/tanstack-start-sse-chat/tsconfig.json, examples/tanstack-start-sse-chat/vite.config.ts
The package manifest uses direct version specifications instead of npm aliases. The TypeScript path alias and Vite deduplication setting for @tanstack/react-query were removed.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related PRs

  • trpc/trpc#7758: Makes the same TanStack Query version updates and SSE chat dependency-resolution changes.
  • trpc/trpc#7760: Adds TanStack Query 5.105 type support and updates package dependencies.
  • trpc/trpc#7755: Migrates the SSE chat example to TanStack Start and changes its TanStack Query integration.

Suggested reviewers: nick-lucas

Merge Risk: Minimal · previous review 53978

No actionable merge-blocking risk remains in this dependency-only update.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the repo-wide dependency updates. It matches the primary changes to the TanStack Query packages.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (7 skipped: 7 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

trpc-bot
trpc-bot previously approved these changes Oct 31, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/@trpc/client@7761

@trpc/next

npm i https://pkg.pr.new/@trpc/next@7761

@trpc/openapi

npm i https://pkg.pr.new/@trpc/openapi@7761

@trpc/react-query

npm i https://pkg.pr.new/@trpc/react-query@7761

@trpc/server

npm i https://pkg.pr.new/@trpc/server@7761

@trpc/tanstack-react-query

npm i https://pkg.pr.new/@trpc/tanstack-react-query@7761

@trpc/upgrade

npm i https://pkg.pr.new/@trpc/upgrade@7761

commit: 425e06f

Bump examples, www and the lockfile to ^5.105.0 and drop the SSE chat
example's npm: alias, Vite dedupe and tsconfig path for
@tanstack/react-query.

Co-authored-by: alexander <[email protected]>
@KATT
KATT added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 9880a8b Oct 31, 2026
52 checks passed
@KATT
KATT deleted the cursor/tanstack-repo-upgrade-1504 branch October 31, 2026 23:24
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-trpc__trpc that referenced this pull request Oct 31, 2026
… 5.105 types (trpc#7760)

<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Why

- tRPC's packages build and test against `@tanstack/react-query` 5.80.
Newer TanStack Query types break a few of our types.
- This is the library half of trpc#7758. The repo-wide upgrade (examples,
`www`, SSE example alias) is stacked on top in trpc#7761.

## What

- Build and test `packages/` against TanStack Query 5.105:
- The lockfile resolves every TanStack Query package to a single
`5.105.0`. The existing `^5.80.3` ranges already allow it.
- `@trpc/react-query` dev dependencies
`@tanstack/react-query-persist-client` and
`@tanstack/query-sync-storage-persister` move to `^5.105.0`.
- The `@tanstack/react-query` dev dependency range stays `^5.80.3` here.
`manypkg` (run by autofix CI) wants one range repo-wide, and examples
still use `^5.80.3`. trpc#7761 moves every range to `^5.105.0`.
- Peer ranges are unchanged: `@trpc/react-query` and
`@trpc/tanstack-react-query` keep `^5.80.3`, `@trpc/next` keeps
`^5.59.15`.
- Widen the `onSuccess` mutation override in both `UseMutationOverride`
(`@trpc/react-query`) and `MutationOptionsOverride`
(`@trpc/tanstack-react-query`), matching TanStack's own `onSuccess`.
Existing overrides still type-check.

  ```ts
  // before
onSuccess: (opts: { originalFn: () => MaybePromise<void>; ... }) =>
MaybePromise<void>;
  // after
onSuccess: (opts: { originalFn: () => MaybePromise<unknown>; ... }) =>
MaybePromise<unknown>;
  ```

- Type-only fixes in `@trpc/react-query`. Runtime is unchanged:
- `usePrefetchQuery` / `usePrefetchInfiniteQuery`: cast the `skipToken`
branch of `queryFn`, which TanStack's types now exclude.
  - SSR `retryOnMount` helper accepts the function form.
- Tests:
- The `cancelQuery()` test now asserts that the cancelled `fetch()`
rejects; it was an unhandled rejection.
  - A `mutationFn` call passes the new context argument.
- Lockfile: only TanStack Query entries change.

## Release

- Ship as a **minor**. The repo has no changesets: choose `minor` for
`version_bump` when running the Release Packages workflow. Lerna uses
fixed versioning with `--force-publish`, so every published `@trpc/*`
package moves together (11.22.1 → 11.23.0).

## Links

None. No docs or example changes in this PR.

## Alternatives considered

- Bump examples and `www` in the same PR (trpc#7758): split out so the
library change ships as its own minor.
- Raise the peer ranges to `^5.105.0`: not needed, since the fixes are
type-only and still compile against 5.80.

## Testing

- `pnpm install --frozen-lockfile`, `pnpm manypkg check`, `pnpm build`,
`pnpm typecheck-packages` pass.
- `pnpm test --watch false`: 191 files, 1361 tests pass.
- `pnpm turbo typecheck --filter="./examples/**" --filter=www`: `www`
and the TanStack Query examples pass.
- The Lambda examples fail locally on global type clashes in
`node_modules` type declarations.
  - The Prisma examples pass once `prisma generate` has run for each.
- SSE chat example (still on its `npm:` alias here) typechecks and `vite
build` succeeds.
<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-c41566ba-7b11-5a92-a7b8-2411c0751504?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-c41566ba-7b11-5a92-a7b8-2411c0751504&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/trpc/codesmith/trpc/pr/7760?autoLogin=true&ref=codesmith_pr_footer"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png"
width="162" height="28"></picture></a> <a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1796077414&installation_model_id=443568&pr_number=7760&ref=codesmith_pr_footer&repository=trpc%2Ftrpc&return_to=https%3A%2F%2Fgithub.com%2Ftrpc%2Ftrpc%2Fpull%2F7760&signature=ec1b1614bc53dab60e7a0e2142952f2dab6cf8f0b497f5c650d085a751bc7688"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png"
width="190" height="28"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Mutation success callbacks can now return values in addition to
promises that resolve without a value.
* Server-rendered query options accept a wider range of `retryOnMount`
values.
* Preview URLs can be generated from a branch name, with support for
fork branches and long names.
* Pull request guidance now includes WebSockets and TanStack Start SSE
chat examples, plus branch-based preview links.
* **Tests**
* Updated query cancellation and mutation-default tests to check
expected promise behavior and provide mutation context.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Cursor Agent <[email protected]>
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 2, 2026

This branch was successfully deployed

4 active and 1 inactive deployments
Preview – www — 425e06f6 Deployed Oct 31, 2026 by vercel[bot]
Preview – examples-todomvc — 425e06f6 Deployed Oct 31, 2026 by vercel[bot]
Preview – next-prisma-starter — 425e06f6 Deployed Oct 31, 2026 by vercel[bot]
Preview – trpc-next-app-dir — 425e06f6 Deployed Oct 31, 2026 by vercel[bot]
Preview – og-image — 425e06f6 Deployed Oct 31, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants