Skip to content

Releases: vercel/swr

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

v2.1.5

25 Apr 10:01
Compare
Choose a tag to compare

What's Changed

  • fix: missing interop helpers in bundle by @huozhi in #2582

Full Changelog: v2.1.4...v2.1.5

v2.1.4

23 Apr 18:28
3a8de88
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.3...v2.1.4

v2.1.3

10 Apr 15:28
6aff5f3
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.2...v2.1.3

v2.1.2

02 Apr 09:24
Compare
Choose a tag to compare

Patches

  • Improved type inferring for swr/subscription
  • Adding SWRSubscriptionOptions type for swr/subscription

Changes

  • test: add typing test for empty config by @koba04 in #2521
  • test: fix syntax error in Equal type alias implementation by @SACHINnANYAKKARA in #2517
  • chore: remove engines by @promer94 in #2536
  • types: improve useSWRSubscription types by @promer94 in #2535
  • Rename subscription types by @huozhi in #2537

New Contributors

  • @SACHINnANYAKKARA made their first contribution in #2517

Full Changelog: v2.1.1...v2.1.2

v2.1.1

22 Mar 14:54
Compare
Choose a tag to compare

Patches

  • refactor: remove useless dataRef, always compare cached data by @promer94 in #2431
  • fix: swr infers incorrect data type for default SWRConfig generic type by @connorch in #2506

Documentation

New Contributors

Full Changelog: v2.1.0...v2.1.1

v2.1.0

06 Mar 16:50
Compare
Choose a tag to compare

Feature

Checkout subscription docs and useSWRInfinite parallel fetching docs for more details

Patches

  • fix: use the latest config in useSWRMutation by @koba04 in #2468
  • Fix: type support for suspense and fallbackData(#2396) by @taro-28 in #2452
  • Error should be reset when new data comes by @huozhi in #2472
  • fix: avoid creating new snapshot if cache is not updated at client during streaming by @promer94 in #2475
  • refactor: initialize the cache only on first access by @promer94 in #2479

Misc

New Contributors

Full Changelog: v2.0.4...v2.1.0

v2.0.4

24 Feb 16:28
Compare
Choose a tag to compare

Patches

  • build: fix release job condition by @huozhi in #2392
  • types: fix some mutation type issue by @promer94 in #2421
  • fix: Error retry should be handled by global revalidator instead of local revalidation function by @promer94 in #2415
  • fix: ensure initCache setter function stays within bounds of subscriptions by @lfbergee in #2411

Misc

New Contributors

Full Changelog: v2.0.3...v2.0.4

v2.0.3

28 Jan 12:55
Compare
Choose a tag to compare

Patches

  • fix: parameters passed to subscribe is inconsistent with its declaration by @hong24 in #2353
  • fix: when inifinite key changes, should use cached pagesize instead of initialSize by @promer94 in #2386
  • fix: make compare function only compare data (#2375) by @Retrospection and @promer94 in #2387 #2389
  • fix: initial loading state should be false with revalidation is disabed by @promer94 in #2382
  • fix: Ensure hydration matches the SSR result during streaming by @shuding in #2391

Chores

New Contributors

Full Changelog: v2.0.2...v2.0.3

v2.0.2

26 Jan 13:06
c0090ab
Compare
Choose a tag to compare

Patches

Chores

Full Changelog: v2.0.1...v2.0.2