Skip to content

Releases: vercel/swr

v2.2.6-beta.4

01 Jun 00:01
Compare
Choose a tag to compare
v2.2.6-beta.4 Pre-release
Pre-release

What's Changed

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

v2.2.6-beta.3

24 May 22:15
Compare
Choose a tag to compare
v2.2.6-beta.3 Pre-release
Pre-release

What's Changed

New Contributors

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

v2.2.6-beta.2

06 Apr 16:22
Compare
Choose a tag to compare
v2.2.6-beta.2 Pre-release
Pre-release

Patches

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

v2.2.6-beta.1

31 Mar 11:07
Compare
Choose a tag to compare
v2.2.6-beta.1 Pre-release
Pre-release

What's Changed

New Contributors

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

v2.2.5

15 Feb 23:32
Compare
Choose a tag to compare

Patches

  • types: isLoading typed as boolean when using fallbackData (#2866) by @yjrhgvbn in #2875
  • fix: allow onErrorRetry on inactive tab without focus/reconnect revalidation by @qkdreyer in #2848
  • feat: pass a function to the revalidate option in mutate by @koba04 in #2862
  • fix: SWRConfiguration type by @hulla-dev in #2882

Misc

New Contributors

Full Changelog: v2.2.4...v2.2.5

v2.2.4

25 Sep 12:36
Compare
Choose a tag to compare

Patches

  • Revert "Remove index.js suffix of use-sync-external-store/shim to support React Native" by @huozhi in #2802

Full Changelog: v2.2.3...v2.2.4

v2.2.3

25 Sep 09:39
Compare
Choose a tag to compare

Patches

  • fix: remove permissive type by @wcatron in #2759
  • Remove index.js suffix of use-sync-external-store/shim to support React Native by @malash in #2767
  • fix: default to fetch type in keyed mutator by @linkvt in #2753
  • types: export mutation types by @promer94 in #2780

Misc

  • test: update tests, use matched types for mutate api by @huozhi in #2781

New Contributors

Full Changelog: v2.2.2...v2.2.3

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