swr
2.5.1 · 12 Aug 2026MIT28.9M / weekRepositoryHomepagenpmAtom feed
Upgrading swr From 2.3.8 to 2.5.1
5 releases in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 0
- new
- 11
- fixes
Before you upgrade
Tick each one off as you go- Breaking2.4.1
Release by release
- Fixed
Hydrate cacheData for hooks without a fetcher
- Fixed
Revalidate suspense cacheData on remount
- Fixed
Clean up completed subscription state
- Fixed
- Fixed
Fixed the
swr/_internalReact Server export so it resolves correctly in the published package
- Fixed
- Fixed
Guard against double-unsubscribe removing wrong subscriber in cache.ts
- Fixed
Prevent resolved promise to suspend due to missing status
- Fixed
- Breaking
Remove deprecated downlevelIteration option
- Fixed
Fix #4221
- Breaking
- Fixed
Ensure useSWRImmutable overrides global refreshInterval
- Fixed
Extra render when changing to new key with useSWRImmutable
- Fixed
isHydration will cause unnecessary rerender
- Fixed
Ensure preload runs only on client
- Fixed
11 internal lines (docs, tests, tooling) left out.
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.