npm · npm:swr
swr active
React Hooks library for remote data fetching
The latest stable version of swr is 2.5.1, published on 2026-08-12. Verified by Vigia on 2026-11-12.
| Latest stable version | 2.5.1 |
|---|---|
| Published | 2026-08-12 13:53:07 UTC |
| Install | npm install swr@latest |
| Requires (engines) | none declared |
| Peer dependencies | react ^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 |
| Dist-tags | rc: 2.0.0-rc.3 beta: 2.6.0-beta.0 latest: 2.5.1 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 14:04:41 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Is your project affected?
Check my whole package.jsonGet notified of new versions (Atom)Facts for my AGENTS.md
Free, no signup. Paste your manifest and see what is outdated, deprecated or vulnerable.
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-08-12 13:53:07 UTC · 92 days ago |
| Stable releases in the last 12 months | 7 |
| Published versions | 181 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
2.5.1 | 2026-08-12 13:53:07 UTC |
2.5.0 | 2026-08-03 13:26:01 UTC |
2.4.2 | 2026-06-22 17:43:56 UTC |
2.4.1 | 2026-02-27 16:44:22 UTC |
2.4.0 | 2026-02-01 02:57:12 UTC |
2.3.8 | 2025-12-15 16:33:35 UTC |
2.3.7 | 2025-11-28 20:31:34 UTC |
2.3.6 | 2025-08-11 15:23:14 UTC |
2.3.5 | 2025-08-09 08:33:19 UTC |
2.3.4 | 2025-07-02 15:37:41 UTC |
2.3.3 | 2025-03-06 20:06:42 UTC |
2.3.2 | 2025-02-05 16:56:28 UTC |
2.3.1 | 2025-02-05 01:08:38 UTC |
2.3.0 | 2024-12-23 15:21:33 UTC |
2.2.5 | 2024-02-15 23:31:39 UTC |
2.2.4 | 2023-09-25 12:34:58 UTC |
2.2.3 | 2023-09-25 09:32:44 UTC |
2.2.2 | 2023-08-27 12:36:08 UTC |
2.2.1 | 2023-08-11 16:54:55 UTC |
2.2.0 | 2023-06-22 21:29:41 UTC |
Showing the 20 most recent of 84 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 2.5.1 |
node 18 | 2.5.1 |
node 20 | 2.5.1 |
node 22 | 2.5.1 |
node 24 | 2.5.1 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of swr?
The latest stable version of swr is 2.5.1, published on 2026-08-12. Verified by Vigia on 2026-11-12.
How do I install the latest version of swr?
Run npm install swr@latest. The latest stable version is 2.5.1 (verified 2026-11-12).
Is swr deprecated?
No. swr is not marked as deprecated in the registry.
Which Node.js version does swr require?
swr 2.5.1 does not declare a Node.js version requirement.
Does swr 2.5.1 have known vulnerabilities?
No known advisories affect swr 2.5.1 according to the data Vigia checks.
Is swr still maintained?
swr published 7 stable releases in the last 12 months; the most recent was 92 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- react
- mysql2
- @types/d3-brush
- svg-pathdata
- prosemirror-state
- @types/d3-fetch
- @npmcli/installed-package-contents
- @types/d3-dsv
- @types/d3-random
- html-parse-stringify
- @types/shimmer
- @opentelemetry/exporter-prometheus
- async-limiter
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/swr) [](https://vigia.coredls.cloud/npm/swr) [](https://vigia.coredls.cloud/npm/swr)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/swr
GET https://vigia.coredls.cloud/v1/packages/npm/swr/versions/{version}