swr
2.5.1 · 12 Aug 2026MIT28.9M / weekRepositoryHomepagenpmAtom feed
2.5.1 is the newest release of 2.x.
In short
1 removed3 new10 fixed18 internal
- Removed
Drop exports module field
Release note
Feature
Support promises as fallback data
Allow to use with React 19
Patches
Fix #3030 and run relateive test in edge-runtime
Only suspend when using the
fallbackFix type check in tests
Replace the deprecated 'window' with 'globalThis' for Deno
Check if config.fallback is undefined
infinte: Export SWRInfiniteKeyedMutator type
Improve comparison performance
Export ScopedMutator type
Improve-Type-Safety-and-State-Access-in-useStateWithDeps-Hook
Misc
- Removed
Drop exports module field
Fix bundling of client entry chunks
Add SWRInfiniteMutatorOptions type to export
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.