Packages

swr

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

Upgrading swr From 2.2.5 to 2.3.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.2.5Newest 2.x, Latest2.5.1
  1. 2.2.5yours
  2. 2.3.0target

Before you upgrade

Tick each one off as you go
  • Breaking2.3.0

Release by release

  1. 2.3.0

    Migration needed23 Dec 20243 new · 10 fixes
    • Breaking

      Drop exports module field

    • New

      Support promises as fallback data

    • New

      Allow to use with React 19

    • New

      Add SWRInfiniteMutatorOptions type to export

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