Packages

swr

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

Upgrading swr From 2.2.4 to 2.5.1

15 releases in betweenevery note read

Reading releases, release notes and advisories…

  1. 2.2.4yours
  2. 1 release
  3. 2.3.0breaking
  4. 7 releases
  5. 2.3.8security
  6. 1 release
  7. 2.4.1breaking
  8. 2 releases
  9. 2.5.1target

Before you upgrade

Tick each one off as you go
  • Breaking2.4.1
  • Breaking2.3.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

4 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

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