Releases: vercel/swr
Releases · vercel/swr
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
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
0.3.1
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
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
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!