Packages

swr

2.5.1 · 12 Aug 2026MIT28.9M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major9 Dec 2022Where it was published

2.5.1 is the newest release of 2.x.

In short

1 new4 changed

Release note

Announcing SWR 2.0

We are excited to announce the release of SWR 2.0! The new version comes with a lot of improvements:

  • New useSWRMutation hook

  • Enhanced mutation and optimistic UI capabilities

  • SWR DevTools

  • Preload resource

  • Improved React 18 support

And more!

Read our blog post and migration guide: swr.vercel.app/blog/swr-v2

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.