---
title: "swr 2.5.1: release notes, upgrades and advisories"
description: "swr 2.5.1: release notes, breaking changes by major version and no known security advisory."
url: https://inlinr.com/packages/swr
lang: en
---

[Packages](https://inlinr.com/packages)

# swr

2.5.1 · 12 Aug 2026 MIT 28.9M / week [Repository](https://github.com/vercel/swr) [Homepage](https://swr.vercel.app/) [npm](https://www.npmjs.com/package/swr) [Atom feed](https://inlinr.com/packages/feed/swr)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/swr/upgrade)

LineNewestSecurity

- 2.x 2.5.1 No known advisory Latest line
- 1.x 1.3.0 No known advisory [To 2.5.1](https://inlinr.com/packages/swr/upgrade/1.3.0-2.5.1)
- 0.x 0.5.7 No known advisory [To 2.5.1](https://inlinr.com/packages/swr/upgrade/0.5.7-2.5.1)

## Latest releases

[All 84 releases](https://inlinr.com/packages/swr/releases)

1. ### [2.5.1](https://inlinr.com/packages/swr/releases/2.5.1 "Open this release") [](https://github.com/vercel/swr/releases/tag/v2.5.1 "Read this release where it was published")  
12 Aug 2026

  - Hydrate cacheData for hooks without a fetcher
  - Revalidate suspense cacheData on remount
  - Clean up completed subscription state
2. ### [2.5.0](https://inlinr.com/packages/swr/releases/2.5.0 "Open this release") [](https://github.com/vercel/swr/releases/tag/v2.5.0 "Read this release where it was published")  
3 Aug 2026

  - Fixed the `swr/_internal` React Server export so it resolves correctly in the published package
3. ### [2.4.2](https://inlinr.com/packages/swr/releases/2.4.2 "Open this release") [](https://github.com/vercel/swr/releases/tag/v2.4.2 "Read this release where it was published")  
22 Jun 2026

  - Guard against double-unsubscribe removing wrong subscriber in cache.ts
  - Prevent resolved promise to suspend due to missing status

Dependency tracking

## Know when your own dependencies move

swr published 7 releases in the last 12 months. inlinr folds the routine ones into a line and keeps the few that need you.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

No known security advisory.

## Health

[Details](https://inlinr.com/packages/swr/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

## Works with

- [react](https://inlinr.com/packages/react)

Reading releases, release notes and advisories…

Registry facts last checked 21 Nov 2026\. Releases and advisories last read 21 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
