swr
2.5.1 · 12 Aug 2026MIT28.9M / weekRepositoryHomepagenpmAtom feed
Upgrading swr From 1.1.2 to 1.3.0
4 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Support functional optimisticData
- Fixed
type: Fix type error on SWRConfig
- New
- New
Support
populateCacheas a function - Fixed
Reset stale unmountedRef in suspense
- New
- Fixed
useSWRInfinite revalidates with revalidateOnMount
- Fixed
- New
Optimistic mutation with error rollback
- Fixed
Required return type when mutating
- Fixed
Use the latest reference of fetcher with suspense mode
- New
2 other lines we could not sort, mostly version bumps
- 1.3.0
bugfix: Make suspense and revalidateIfStale work together
- 1.2.1
shouldRetryOnErroraccepts a function that can be used to conditionally stop retrying
23 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.