Skip to content

Releases: vercel/swr

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!

0.1.18

24 Feb 20:21
fd0196e
Compare
Choose a tag to compare

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

14 Feb 20:37
6779298
Compare
Choose a tag to compare

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

28 Dec 02:25
498e056
Compare
Choose a tag to compare

Patches

  • skip immediate revalidation when initalData is provided: #211
  • Fix #182: #207
  • Reduce re-renders by auto detecting state dependencies: #186

Credits

Huge thanks to @addstar34 and @promer94 for helping!

0.1.15

18 Dec 20:10
d4db9c4
Compare
Choose a tag to compare

Patches

  • Prevent polling when browser is offline: #203

Credits

Huge thanks to @daneden for helping!

0.1.14

17 Dec 18:29
43f5fa6
Compare
Choose a tag to compare

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!