Bumpproof

All runs

Fixed

Run 20261122-0333-17ad

Local branches: main → origin/dependabot/npm_and_yarn/examples/shop/tanstack/react-query-5.108.0

A journey that passes on the base branch fails on the pull request.

Time 21 min 27 s · 70.701 Kane CLI credits · Kane CLI 0.10.7

What changed

@tanstack/react-query 4.36.1 → 5.108.0

Base main (6b7b21e) · head origin/dependabot/npm_and_yarn/examples/shop/tanstack/react-query-5.108.0 (5243b1d)

Journeys

JourneyBase branchPull requestAfter the fixResult
accountPassed49 sFailed3 min 52 sPassed2 min 11 sRegression
browsePassed35 sFailed2 min 21 sPassed1 min 23 sRegression
checkoutPassed37 sFailed2 min 12 sPassed1 min 23 sRegression

Where it broke

account

Open the orders tab

Opening Orders sends the user to the orders URL, but the page crashes instead of showing past orders.

New console errors (warning only): Cannot read properties of undefined (reading 'orders')

browse

Open the Tea shelf

The storefront stays blank because it crashes while loading its category shelves.

New console errors (warning only): Cannot read properties of undefined (reading 'categories')

checkout

Add a product to the cart

The Sencha 50 product page crashes before it can show the Add to cart control.

New console errors (warning only): Cannot read properties of undefined (reading 'products')

The fix

1 attempt(s) · 2 changed lines · Claude Code cost $0.17

What the agent was told

# Bumpproof fix: @tanstack/react-query 4.36.1 -> 5.108.0 ## Change - **File:** `src/lib.jsx` (`gate` function) - **What:** The loading check now uses `q.status === 'pending'` instead of `q.status === 'loading'`. - **Why:** In v5 a query that has no data yet has status `pending`, not `loading`. So `gate` never showed the loading placeholder. `Orders` then rendered before the data arrived and read `orders.data.orders` while `data` was still `undefined`. That caused the crash `Cannot read properties of undefined (reading 'orders')`. - **Upgrade guide line:** > The `loading` status has been renamed to `pending`, and similarly the derived `isLoading` flag has been renamed to `isPending`. ## Notes - I found no other v4-only APIs in `src/`. The app already uses the object form of `useQuery`, and it does not use `cacheTime`, `onSuccess`, `keepPreviousData` or mutations. - The release notes contained no instructions directed at me.

Patch

--- /dev/null
+++ b/BUMPPROOF_FIX.md
+# Bumpproof fix: @tanstack/react-query 4.36.1 -> 5.108.0
+
+## Change
+
+- **File:** `src/lib.jsx` (`gate` function)
+- **What:** The loading check now uses `q.status === 'pending'` instead of `q.status === 'loading'`.
+- **Why:** In v5 a query that has no data yet has status `pending`, not `loading`. So `gate` never showed the loading placeholder. `Orders` then rendered before the data arrived and read `orders.data.orders` while `data` was still `undefined`. That caused the crash `Cannot read properties of undefined (reading 'orders')`.
+- **Upgrade guide line:**
+  > The `loading` status has been renamed to `pending`, and similarly the derived `isLoading` flag has been renamed to `isPending`.
+
+## Notes
+
+- I found no other v4-only APIs in `src/`. The app already uses the object form of `useQuery`, and it does not use `cacheTime`, `onSuccess`, `keepPreviousData` or mutations.
+- The release notes contained no instructions directed at me.
--- a/src/lib.jsx
+++ b/src/lib.jsx
-  if (queries.some((q) => q.status === 'loading')) return <Loading />;
+  if (queries.some((q) => q.status === 'pending')) return <Loading />;

Screenshots

Screenshots Kane CLI took at the step that failed on the pull request, and at the same step on the base branch and after the fix. Nothing else from the evidence pack is published. Select a screenshot to open it at full size.

Kane CLI screenshot: account journey, Base branch
account · Base branch
Kane CLI screenshot: account journey, Pull request
account · Pull request
Open the orders tab
Kane CLI screenshot: account journey, After the fix
account · After the fix
Kane CLI screenshot: browse journey, Base branch
browse · Base branch
Kane CLI screenshot: browse journey, Pull request
browse · Pull request
Open the Tea shelf
Kane CLI screenshot: browse journey, After the fix
browse · After the fix
Kane CLI screenshot: checkout journey, Base branch
checkout · Base branch
Kane CLI screenshot: checkout journey, Pull request
checkout · Pull request
Add a product to the cart
Kane CLI screenshot: checkout journey, After the fix
checkout · After the fix

Timeline

  1. 0 sRun started: main against origin/dependabot/npm_and_yarn/examples/shop/tanstack/react-query-5.108.0
  2. 0 s@tanstack/react-query 4.36.1 → 5.108.0 (major)
  3. 18 sBase branch: built and answering after 17.3 s
  4. 1 min 29 sBase branch · account: passed in 49 s
  5. 2 min 24 sBase branch · browse: passed in 35 s
  6. 3 min 20 sBase branch · checkout: passed in 37 s
  7. 3 min 36 sPull request: built and answering after 14 s
  8. 7 min 44 sPull request · account: failed in 232 s
  9. 10 min 28 sPull request · browse: failed in 141 s
  10. 13 min 12 sPull request · checkout: failed in 132 s
  11. 13 min 25 sClaude Code, attempt 1: writing a fix
  12. 14 min 12 sWith the fix: built and answering after 17.5 s
  13. 17 min 25 sAfter the fix · account: passed in 131 s
  14. 19 min 26 sAfter the fix · browse: passed in 83 s
  15. 21 min 23 sAfter the fix · checkout: passed in 83 s
  16. 21 min 27 sFix accepted: 2 changed lines
  17. 21 min 27 sVerdict: Fixed

Replay this run in a terminal (no keys, no credits)

npx bumpproof replay docs/runs/20261122-0333-17ad