swr
2.5.1 · 12 Aug 2026MIT28.9M / weekRepositoryHomepagenpmAtom feed
Upgrading swr From 0.5.6 to 2.5.1
41 releases in betweennotes for 40
Reading releases, release notes and advisories…
- 3+
- changes to make
- 0
- advisories fixed
- 29+
- new
- 91+
- fixes
Counted from 40 of 41 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking2.4.1
- Breaking2.3.0
- Breaking2.2.0
Security
- 2.3.8
cve-2025-55182 critical rce vulnerability
- 2.3.8
cve-2025-55184 & CVE-2025-55183
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
- Security
cve-2025-55182 critical rce vulnerability
- Security
cve-2025-55184 & CVE-2025-55183
- Security
- New
Add
strictServerPrefetchWarning
- New
- Fixed
Do not error when not enabled during suspense
- Fixed
30 other lines we could not sort, mostly version bumps
- 2.3.8
Update use-sync-external-store to latest
- 2.3.8
Upgrade dev dep nextjs
- 2.3.8
Update dev dependencies to address cve
- 2.3.8
enhance: Improve TSDoc comments
- 2.2.4
Revert "Remove
index.jssuffix ofuse-sync-external-store/shimto support React Native" - 2.2.1
Remove the 'use client' directive and add client-only to useSWR entry.
- 2.2.0
types: Improve
useSWRMutationtype. - 2.1.4
Upgrade bundler
- 2.1.3
Update Cache Interface types
- 2.1.2
types: Improve
useSWRSubscriptiontypes
121 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.