Packages

swr

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

Upgrading swr From 2.1.5 to 2.2.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.1.5Newest 2.x, Latest2.5.1
  1. 2.1.5yours
  2. 2.2.0target
1
change to make
0
advisories fixed
3
new
9
fixes

Before you upgrade

Tick each one off as you go
  • Breaking2.2.0

Release by release

  1. 2.2.0

    Migration needed22 Jun 20233 new · 9 fixes
    • Breaking

      Remove startTransition so mutation hook could update immediately

    • New

      Use React.use API

    • New

      Improve preload and suspense integration

    • New

      Add react-server bundle for core and infinite

1 other line we could not sort, mostly version bumps
  • types: Improve useSWRMutation type.

    2.2.0

17 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.