Packages

swr

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

Upgrading swr From 1.2.0 to 1.3.0

3 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.2.0Latest2.5.1
0
changes to make
0
advisories fixed
2
new
3
fixes

Release by release

  1. 1.3.0

    10 Apr 20221 new · 1 fix
    • New

      Support functional optimisticData

    • Fixed

      type: Fix type error on SWRConfig

  2. 1.2.2

    18 Feb 20221 new · 1 fix
    • New

      Support populateCache as a function

    • Fixed

      Reset stale unmountedRef in suspense

  3. 1.2.1

    2 Feb 20221 fix
    • Fixed

      useSWRInfinite revalidates with revalidateOnMount

2 other lines we could not sort, mostly version bumps
  • bugfix: Make suspense and revalidateIfStale work together

    1.3.0
  • shouldRetryOnError accepts a function that can be used to conditionally stop retrying

    1.2.1

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