Packages

swr

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

Upgrading swr From 0.1.0 to 2.5.1

83 releases in betweennotes for 78

Reading releases, release notes and advisories…

Other targets from 0.1.0Newest 0.x0.5.7
  1. 0.1.0yours
  2. 16 releases
  3. 0.2.0major
  4. 3 releases
  5. 0.3.0major
  6. 11 releases
  7. 0.4.0major
  8. 2 releases
  9. 0.5.0major
  10. 7 releases
  11. 1.0.0major
  12. 8 releases
  13. 2.0.0major
  14. 24 releases
  15. 2.3.8security
  16. 4 releases
  17. 2.5.1target
3+
changes to make
0
advisories fixed
77+
new
245+
fixes

Counted from 78 of 83 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking2.4.1
  • Breaking2.3.0
  • Breaking2.2.0

Security

  • cve-2025-55182 critical rce vulnerability

    2.3.8
  • cve-2025-55184 & CVE-2025-55183

    2.3.8

Release by release

  1. 2.5.1

    12 Aug 20263 fixes
    • Fixed

      Hydrate cacheData for hooks without a fetcher

    • Fixed

      Revalidate suspense cacheData on remount

    • Fixed

      Clean up completed subscription state

  2. 2.5.0

    3 Aug 20261 fix
    • Fixed

      Fixed the swr/_internal React Server export so it resolves correctly in the published package

  3. 2.4.2

    22 Jun 20262 fixes
    • Fixed

      Guard against double-unsubscribe removing wrong subscriber in cache.ts

    • Fixed

      Prevent resolved promise to suspend due to missing status

  4. 2.4.1

    Migration needed27 Feb 20261 fix
    • Breaking

      Remove deprecated downlevelIteration option

    • Fixed

      Fix #4221

  5. 2.4.0

    1 Feb 20264 fixes
    • Fixed

      Ensure useSWRImmutable overrides global refreshInterval

    • Fixed

      Extra render when changing to new key with useSWRImmutable

    • Fixed

      isHydration will cause unnecessary rerender

    • Fixed

      Ensure preload runs only on client

  6. 2.3.8

    Security fix15 Dec 2025
    • Security

      cve-2025-55182 critical rce vulnerability

    • Security

      cve-2025-55184 & CVE-2025-55183

  7. 2.3.7

    28 Nov 20251 new
    • New

      Add strictServerPrefetchWarning

  8. 2.3.6

    11 Aug 20251 fix
    • Fixed

      Do not error when not enabled during suspense

30 other lines we could not sort, mostly version bumps
  • Update use-sync-external-store to latest

    2.3.8
  • Upgrade dev dep nextjs

    2.3.8
  • Update dev dependencies to address cve

    2.3.8
  • enhance: Improve TSDoc comments

    2.3.8
  • Revert "Remove index.js suffix of use-sync-external-store/shim to support React Native"

    2.2.4
  • Remove the 'use client' directive and add client-only to useSWR entry.

    2.2.1
  • types: Improve useSWRMutation type.

    2.2.0
  • Upgrade bundler

    2.1.4
  • Update Cache Interface types

    2.1.3
  • types: Improve useSWRSubscription types

    2.1.2

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