Skip to content

Releases: vercel/swr

0.3.9

17 Nov 08:58
6b8b401
Compare
Choose a tag to compare

Patches

  • Replace rIC with rAF: #744
  • Fix race condition when calling mutate synchronously: #735
  • Refactor: support SSR in Deno: #754
  • Fix eslint error: #768
  • Fix mutateCallback types: #745
  • Add CodeSandbox CI: #769
  • Dispatch's payload type is actionType and run lint: #772
  • Fix suspense: #777

Credits

Huge thanks to @ije, @umidbekkarimov, @matamatanot, and @promer94 for helping!

0.3.8

01 Nov 10:35
dedc017
Compare
Choose a tag to compare

Patches

  • Allow passing null as the fetcher function for lazy execution: #730
  • Add test for mutate with async-fn: #739

Credits

Huge thanks to @maggo and @promer94 for helping!

0.3.7

29 Oct 14:23
0817515
Compare
Choose a tag to compare

Patches

  • Add README to examples: #716
  • Feat: make swr more configurable across platform: #690
  • Accept React 17 as a peer dependency: #725

Credits

Huge thanks to @thinceller, @huozhi, and @bcomnes for helping!

0.3.6

19 Oct 13:33
4d6be3d
Compare
Choose a tag to compare

Patches

  • Fix: missing dedupe in updaterInterface: #688
  • Doc: fix readme's Request Deduplication example: #699
  • Fix: error should not be cleared while revalidating: #701

Credits

Huge thanks to @huozhi and @Brew-Brew for helping!

0.3.5

25 Sep 18:04
651c368
Compare
Choose a tag to compare

Patches

  • Remove unnecessary dependencies from mutate and setSize: #665

0.3.4

23 Sep 16:52
bf4ed4b
Compare
Choose a tag to compare

Patches

  • Chore: swap fde for dequal: #655
  • Add React and Hook config for ESLint: #270

Credits

Huge thanks to @lukeed and @innocentiv for helping!

0.3.3

20 Sep 15:40
c04ef75
Compare
Choose a tag to compare

Patches

  • Bump handlebars from 4.5.2 to 4.7.6: #646
  • Try fix cannot stop polling by setting refreshInterval (#638): #632
  • Chore: fix error when data tobe 0 null: #622
  • Promote isValidating to the global level of data and error: #569
  • Remove Isomorphic Fetch from Axios Typescript example: #607
  • Add a default fetcher using Fetch API: #367

Credits

Huge thanks to @anc95, @blackarctic, @jmichaliga, and @sergiodxa for helping!

0.3.2

01 Sep 12:28
ba18429
Compare
Choose a tag to compare

Patches

  • Chore: optimization dispatch: #621
  • Add function key arguments to WeakMap so they trigger revalidation on identity change: #612

Credits

Huge thanks to @anc95 and @ath92 for helping!

0.3.1

20 Aug 10:37
daf7ead
Compare
Choose a tag to compare

Patches

  • Add useDebugValue to show the data label in the React DevTools: #578
  • Fix problem of unnecessary revalidates when resolved data is falsy: #524
  • Added example for SWR Request De-duplication feature: #519
  • Fix: eventsRef should trigger the lastest version of config callbacks: #521
  • Fix useSWRInfinite response type: #584
  • Fix: 'revalidateOnFocus' and 'revalidateOnReconnect' shoule be statful: #583
  • Swr.vercel.app: #605
  • Fix: do not rerender if data unchanged: #464

Credits

Huge thanks to @Kexin-Li, @mha15, @tanmaylaud, @lintuming, @lynxtaa, @promer94, @thomaswang, and @morgs32 for helping!

0.3.0

30 Jul 14:21
7bb6cf3
Compare
Choose a tag to compare

Minor Changes

  • New infinite loading API: #435
  • Add microbundle: #487
  • Add persistSize option to useSWRInfinite: #490
  • Revert "add microbundle " (#492): #487
  • Enhance: remove mutate calls from cache: #493
  • Fix page size persistence when remounting: #495
  • Don't retry on error if errorRetryCount is set to 0: #506
  • Fix: check if mounted when trigger rerender: #510
  • Export interfaces used by useSWRInfinite: #511
  • Fix typescript warning: #530
  • Fix: should throw when mutate failed: #557
  • Enhance: fallback to setTimeout when request idle callback is not available: #473
  • Enhance: move online listeners to config (#476): #474

Patches

  • Change name to Vercel: #467
  • Update keyErr on the cache when mutating: #480
  • Test: add test case for error updating in cache when mutate: #481
  • Updated the readme: #513
  • Update link: #516
  • Remove unused command: #544
  • Bump lodash from 4.17.15 to 4.17.19: #531

Credits

Huge thanks to @huozhi, @dominictwlee, @lolPants, @moecasts, @markozxuu, @cristianbgp, @ashfaqnisar, @matamatanot, and @Kexin-Li for helping!