swr
2.5.1 · 12 Aug 2026MIT28.9M / weekRepositoryHomepagenpmAtom feed
0.5.7 is the newest release of 0.5.x.
In short
5 new2 faster7 fixed4 internal
Release note
Minor Changes
Types: Makes types fn and config and getKey more strictly
Do not cache when mutate throws an error synchronously
Avoid unnecessary re-renders with the suspense mode
Do not depend on navigator.onLine; code optimizations
Sync mutations are applied independently
Sync cache only on compare returns true
Optimize isValidating status
Clean up types
Enable typescript strict mode
Patches
Update README.md
Add-infinite-scroll-example
Add example using useSWRInfinite
Using vite2 and add playground to master
Keep old esm directory structure
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.