Packages

swr

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

Your version

0.2.3

12 Jun 2020Where it was published

0.5.7 is the newest release of 0.2.x.

In short

11 fixed3 internal

Release note

Patches

  • Change mutateCallback type to allow non-promise return value

  • Fix No bound mutate returned by useRequest hook.

  • Fix mutate not disposing older async mutations

  • Create CODE_OF_CONDUCT.md

  • Unmount check

  • Fix spread syntax with defineProperties

  • Remove unused file

  • Replace ZEIT with Vercel in examples

  • Update docs to explain dependent fetching with falsy

  • Use initialData in suspense mode if provided

  • Make trigger return a promise resolved to the new cache value

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.