swr
2.5.1 · 12 Aug 2026MIT28.9M / weekRepositoryHomepagenpmAtom feed
2.5.1 is the newest release of 2.x.
In short
1 removed3 new9 fixed1 changed17 internal
- Removed
Remove
startTransitionso mutation hook could update immediately
Release note
What's Changed
Use
React.useAPIImprove preload and suspense integration
Add react-server bundle for core and infinite
- Removed
Remove
startTransitionso mutation hook could update immediately keepPreviousData should also work in suspense
Do unsubscribe synchronously
Reset the error when mutate succeeded
Fix mutation types order
Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined
Pass displayed data as second parameter of functional optimistic data
Adjust rsc exports
Revert "fix: remove startTransition so mutation hook could update immediately (#2654)"
types: Fix immutable export paths
types: Improve
useSWRMutationtype.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.