Skip to content

chore: upgrade TanStack Query to v5 and tRPC to v11 - #521

Merged
Miablo merged 2 commits into
github-community-projects:mainfrom
Miablo:deps/tanstack-v5-trpc-v11
Nov 21, 2026
Merged

Miablo merged 2 commits into
github-community-projects:mainfrom
Miablo:deps/tanstack-v5-trpc-v11

Conversation

@Miablo

@Miablo Miablo commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

This PR upgrades @tanstack/react-query 4.36.1 → 5.108.2 and @trpc/client / @trpc/react-query / @trpc/server 10.45.3 → 11.28.5.

These ship together because tRPC v11 requires React Query v5, and this unblocks React 19 (React Query v4 only supports React ≤18).

Part of #412.

UI Manual Testing (create/update/delete -- PASS)

Screenshot 2026-11-21 at 11 45 01 AM Screenshot 2026-11-21 at 11 44 49 AM Screenshot 2026-11-21 at 11 44 10 AM

Note: Enhancement to come in a follow up PR to provide a 'success' message when a mirror was successfully deleted similar to the other success msgs

Changes

  • tRPC v11: transformer moves from the client onto httpBatchLink; middleware reads input with await getRawInput() instead of rawInput
  • React Query v5: isLoading → isPending for queries and mutations. For queries, v5's isPending matches v4's isLoading; v5's isLoading is narrower and would briefly show the "no mirrors" blankslate while listMirrors waits on fork data
  • Removes the unused serverTrpc client from src/utils/trpc.ts
  • Adds test/utils/trpc-middleware.test.ts covering raw input forwarding in verifyAuth / verifyGitHubAppAuth, since nothing previously asserted it

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • run npm run format and fix any formatting issues that have been introduced
  • run npm run lint and fix any linting issues that have been introduced
  • run npm run test and run tests

@Miablo Miablo self-assigned this Nov 21, 2026
@Miablo
Miablo requested review from a team as code owners November 21, 2026 16:53
@Miablo
Miablo merged commit 12c6b86 into github-community-projects:main Nov 21, 2026
8 checks passed
@Miablo Miablo mentioned this pull request Nov 21, 2026
3 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants