Not 1 line: your 28-patch TanStack upgrade still needs code. Here's a real one, on our founder's portfolio site.
The upgrade
@tanstack/react-start from 1.168.32 to 1.168.60. Same major, same minor, 28 patch releases. On paper, a one-line change in package.json.
What it actually took
1. A rename
Version 1.168.60's type definitions mark inputValidator as deprecated:
/** @deprecated Use validator instead. */ The site used it in one file, for the contact form's server function:
- .inputValidator(contactSchema) + .validator(contactSchema) It still worked, but a deprecated name in a fast-moving framework is a removal waiting for a date.
2. Two more packages
@tanstack/react-router went to 1.170.41 and @tanstack/router-plugin to 1.168.42, so the project installs one copy of the router.
With two copies, the framework and your code can each hold their own router instance and context. The bugs that come from that look random: a hook that says it's outside a router, navigation that half works.
Check for it with:
npm ls @tanstack/react-router More than one version in the tree means more than one copy.
3. Proof
The build passes before and after. What wasn't tested automatically: sending a real message through the contact form. That one is a manual check before merge.
The lesson
"Patch" describes the version number. It doesn't promise your code needs nothing. Two habits catch most of it:
- Read the new version's deprecation notes for the functions you call.
- Check for duplicate copies of the packages that hold shared state.
Versyka now does the first habit inside every fix: it reads the installed version's definitions before each edit.
What's the biggest "small" upgrade you've done?