SWR 2.2.1-beta.0

React Hooks library for remote data fetching

swr@2.2.1-beta.0 was published on 2023-05-23. Its manifest declares 1 runtime dependency and 1 peer requirement. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.

All SWR versions · Permanent reference to 2.2.1-beta.0 · Latest release

Package specifications

Version2.2.1-beta.0
License declarationMIT
Published2023-05-23T15:35:00.162Z
Node.js requirementNot declared
Type declarationsBundled declarations
Runtime dependency count1
Peer requirement count1
Optional dependency count0
Minified sizeMeasurement not available yet
Minified + gzipMeasurement not available yet
Unpacked distribution size249.75 KiB
Published file count33
Package typeNot declared
ES module entry./core/dist/index.esm.js
Default entry./core/dist/index.js
Side effects declarationNot declared
Direct advisories0
Resolved graph dependencies1
Repository stars32494
Repository forks1400

Install SWR 2.2.1-beta.0

npm install swr@2.2.1-beta.0
pnpm add swr@2.2.1-beta.0
yarn add swr@2.2.1-beta.0

Runtime dependencies

Peer requirements

  • react ^16.11.0 || ^17.0.0 || ^18.0.0

Optional dependencies

  • None declared

Resolved dependency graph

This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.

How to interpret the specifications

Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.

Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.

OpenSSF repository checks

Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.

Code-Review6/10 — Found 20/30 approved changesets -- score normalized to 6
Security-Policy10/10 — security policy file detected
Maintained10/10 — 23 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Dangerous-Workflow10/10 — no dangerous workflow patterns detected
Token-Permissions0/10 — detected GitHub workflow tokens with excessive permissions
CII-Best-Practices0/10 — no effort to earn an OpenSSF best practices badge detected
Binary-Artifacts10/10 — no binaries found in the repo
Pinned-Dependencies0/10 — dependency not pinned by hash detected -- score normalized to 0
License10/10 — license file detected
Fuzzing0/10 — project is not fuzzed
SAST0/10 — SAST tool is not run on all commits -- score normalized to 0

Evidence and freshness