Releases: vercel/swr
Releases · vercel/swr
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!
0.2.2
0.2.1
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
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
0.1.18
Patches
- Add regression test for WeakMap key is
null
: #273 - Fix: disable dedupe when trigger/mutate (#279): #271
- Improve mutate function: #245
- Add errorRetryCount config option: #277
- Fixed potential typescript error in
examples/axios-typescript
: #265
Credits
Huge thanks to @sergiodxa, @dominictwlee, and @Svish for helping!
0.1.17
Patches
- Fixed return awaits: #216
- Check if addEventListener and removeEventListener exists: #217
- ESlint ignore add esm folder: #218
- Reorganize slow connection code. Make it a tiny bit smaller: #220
- Fix check for addEventListener existence: #223
- Allow use custom isEqual method: #219
- Moving page cache to use a cache map: #221
- Update README.md: #235
- Test(typo): fix typo: #244
- Fix weakmap key is
null
: #251 - Fix race condition and add test: #261
Credits
Huge thanks to @vassbence, @r13v, @jinxin0112, @onigoetz, @robinandeer, @lllllllqw, @aequasi, and @darrenjennings for helping!
0.1.16
0.1.15
0.1.14
Patches
- Allow newer minor versions of React as peer dependency: #181
- Remove unneeded await statement on fetch lib: #187
- Update local state example: 95c6775
- Fix config as second parameter in use-swr: #196
- Test: add race condition test: #195
- Update index.js: #198
- Improve multiple argument example in README: #201
- Change cjs build target to ES5, csm build target to ESNext: #204
Credits
Huge thanks to @Svish, @markotom, @MSekrst, @wendellhu95, @Regaron, and @LiuuY for helping!