Skip to content

Releases: vercel/swr

v2.2.2

27 Aug 12:34
Compare
Choose a tag to compare

What's Changed

  • fix: It should use startTransition only when IS_REACT_LEGACY is false by @TopGrd in #2756
  • fix: simplify ArgumentsTuple by @Andarist in #2761

New Contributors

Full Changelog: v2.2.1...v2.2.2

v2.2.1

27 Aug 12:33
Compare
Choose a tag to compare

What's Changed

  • Add use client directive for client components exports by @huozhi in #2696
  • remove the 'use client' directive and add client-only to useSWR entry. by @promer94 in #2705
  • fix: should serialize subscription fn key by @promer94 in #2711
  • build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #2720
  • fix: only make data and error update as a non-blocking transition by @promer94 in #2691
  • build: generate d.mts for for .mjs, so typescript could resolve types correctly by @promer94 in #2695
  • fix(infinite): Fix the ability to use preload along with useSWRInfinite by @agadzik in #2723
  • fix: Ensure that using preload with useSWRInfinite returns back an array of data by @agadzik in #2726
  • fix: preload request should be consumed within revalidate to support parallel option by @promer94 in #2727
  • Fix the issue that useSWR revalidation isn't triggered if the useSWR call happens after mutation by @Ponyets in #2731
  • fix(mutate): fix types of mutate/trigger; make mutate/trigger always return the result of fetcher by @Ponyets in #2708
  • build(deps-dev): bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot in #2735
  • build(deps-dev): bump json5 from 2.2.1 to 2.2.3 by @dependabot in #2736
  • docs: use isLoading instead of !data by @pawfa in #2734

New Contributors

Full Changelog: v2.2.0...v2.2.1

v2.2.1-beta.1

26 Jul 14:57
Compare
Choose a tag to compare
v2.2.1-beta.1 Pre-release
Pre-release

What's Changed

  • fix: Add use client directive for client components exports by @huozhi in #2696
  • fix: only make data and error update as a non-blocking transition by @promer94 in #2691
  • fix: Fix the ability to use preload along with useSWRInfinite by @agadzik in #2723
  • fix: Remove the 'use client' directive and add client-only to useSWR entry. by @promer94 in #2705
  • fix: should serialize subscription fn key by @promer94 in #2711
  • chore: bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #2720
  • chore: generate d.mts for for .mjs, so typescript could resolve types correctly by @promer94 in #2695

New Contributors

Full Changelog: v2.2.0...v2.2.1-beta.1

v2.2.0

22 Jun 21:32
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.5...v2.2.0

v2.2.0-beta.5

20 Jun 20:10
Compare
Choose a tag to compare
v2.2.0-beta.5 Pre-release
Pre-release

What's Changed

  • Revert "fix: remove startTransition so mutation hook could update immediately (#2654)" by @huozhi in #2681

Full Changelog: v2.2.0-beta.4...v2.2.0-beta.5

v2.2.0-beta.4

20 Jun 19:50
Compare
Choose a tag to compare
v2.2.0-beta.4 Pre-release
Pre-release

What's Changed

  • build: fix conflict types for index and index.react-server by @huozhi in #2677

Full Changelog: v2.2.0-beta.3...v2.2.0-beta.4

v2.2.0-beta.3

18 Jun 23:26
Compare
Choose a tag to compare
v2.2.0-beta.3 Pre-release
Pre-release

What's Changed

  • Fix Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined by @saengmotmi in #2666
  • Pass displayed data as second parameter of functional optimistic data by @francescogior in #2668
  • Adjust rsc exports by @huozhi in #2673
  • test: add e2e test for react-server entry by @promer94 in #2671

New Contributors

Full Changelog: v2.2.0-beta.2...v2.2.0-beta.3

v2.2.0-beta.2

16 Jun 12:26
Compare
Choose a tag to compare
v2.2.0-beta.2 Pre-release
Pre-release

What's Changed

Full Changelog: v2.2.0-beta.1...v2.2.0-beta.2

v2.2.0-beta.1

16 Jun 10:48
Compare
Choose a tag to compare
v2.2.0-beta.1 Pre-release
Pre-release

What's Changed

Full Changelog: v2.2.0-beta.0...v2.2.0-beta.1

v2.2.0-beta.0

23 May 15:45
Compare
Choose a tag to compare
v2.2.0-beta.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v2.1.5...v2.2.0-beta.0