Skip to content

Releases: vercel/swr

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!

0.2.3

12 Jun 23:48
493d1ec
Compare
Choose a tag to compare

Patches

  • Docs: update notes for returned data from mutate section: #394
  • Change mutateCallback type to allow non-promise return value: #406
  • Fix No bound mutate returned by useRequest hook.: #410
  • Fix mutate not disposing older async mutations: #427
  • Create CODE_OF_CONDUCT.md: #432
  • Unmount check: #433
  • Fix spread syntax with defineProperties: #436
  • Remove unused file: #441
  • Build: use es5 syntax for esm build (#444): #443
  • Replace ZEIT with Vercel in examples: #442
  • Update docs to explain dependent fetching with falsy: #449
  • Use initialData in suspense mode if provided: #448
  • Docs: setup issue template: #453
  • Make trigger return a promise resolved to the new cache value: #391

Credits

Huge thanks to @huozhi, @ties-v, @shyamlohar, @TheHolyWaffle, @promer94, @alexandregv, @joshkel, @Narigo, and @sergiodxa for helping!

0.2.2

22 May 14:46
9fd4c1e
Compare
Choose a tag to compare

Patches

  • Updated asset link: #408

Credits

Huge thanks to @leo for helping!

0.2.1

20 May 15:25
d3df20e
Compare
Choose a tag to compare

Patches

  • Upgrade Next.js: #324
  • Minor documentation improvements: #321
  • Add Data and Error generics to pagesResponseInterface: #294
  • Remove unused import in example: #338
  • Use latest: #342
  • Test: imporve dynamic polling interval test: #351
  • Update handle in CODEOWNERS: 65449cd
  • Remove the server side suspense warning: #370
  • Change if condition and remove 'do nothing': #356
  • Add Optimistic UI with Immer example: #374
  • Fix return type of mutateCallback: #381
  • Fix axios example unexpected mutation behavior: #380
  • Fix: data inconsist on key change when fetcher is synchronized: #369
  • Update links to Vercel: #385
  • RevalidateOnMount flag that disable automatic revalidation on mount: #225
  • Update README.md: #389

Credits

Huge thanks to @timneutkens, @akx, @Kerumen, @zusinShinpei, @matamatanot, @promer94, @hikaru7719, @sergiodxa, @jericopulvera, @huozhi, @sarupbanskota, and @ciak0 for helping!

0.2.0

30 Mar 23:49
7218cc2
Compare
Choose a tag to compare

Patches

  • Fix polling conditions: #281
  • Change useRequest.js to use mutate: #292
  • Fix 'reconnect' assignment: #297
  • Dedupe extra requests after mutation: #296
  • Use window as a target for online event: #300
  • Bump acorn from 5.7.3 to 5.7.4: #303
  • Update examples/server-render: Use getServerSideProps: #307
  • Document the compare option: #320
  • Hoist side effects out of useSWRPages render fiber: #317
  • Remove keyRef check; add tests: #323

Credits

Huge thanks to @mattfwood, @zhengjitf, @buffaybu, @nulladdict, @matamatanot, @joshkel, and @neolefty for helping!

0.2.0-beta.0

24 Feb 20:36
cd893dc
Compare
Choose a tag to compare
0.2.0-beta.0 Pre-release
Pre-release

Minor Changes

  • Expose Cache: #231

Credits

Huge thanks to @sergiodxa for helping!