Skip to content

Releases: vercel/swr

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!

0.1.13

05 Dec 17:04
63b6eb7
Compare
Choose a tag to compare

Patches

  • Add react-native entry point: #149
  • Fix 'SSR with Next.js' code error: #152
  • Axios examples: #145
  • Fix tsconfig's "lib" property, along with small improvements to README.md: #162
  • Improvements: #148
  • Bug fixes: #165
  • Scripts on windows: #171
  • Fix race condition: #173

Credits

Huge thanks to @n3tr, @zeroslope, @Svish, and @BloodShura for helping!

0.1.12

21 Nov 04:09
Compare
Choose a tag to compare

Patches

  • Add example on how to use fetch + mutate to prefetch data: #120
  • Remove lockfile from example and ensure they can't be sent again: #125
  • Improvements: #130
  • Add Server Side Render Example: #132
  • Improve readme: #135
  • Clarify about HTTP RFC 5861: #138
  • Check for window before using it: #142
  • Add esm build: #140
  • Add async mutation support: #134

Credits

Huge thanks to @sergiodxa, @dancerphil, and @yesmeck for helping!

0.1.10

15 Nov 02:15
Compare
Choose a tag to compare

Patches

  • Add example sharing local state between components: #76
  • Adding initialData: #106
  • Demo: suspense demo: #105
  • Improve readme: #104
  • Remove/inline dependencies: #115
  • Replace batchedUpdates with reducer: #117
  • Use @zeit/ncc: #89

Credits

Huge thanks to @afc163, @aequasi, @pacocoursey and @wendzhue for helping!

0.1.9

09 Nov 04:04
Compare
Choose a tag to compare

Patches

  • Add an autocomplete suggestions examples: #88
  • Improve readme: #91
  • Key interface can include null: #96
  • Use lodash/throttle instead of lodash.throttle: #102
  • Fix visibilityState type: #101
  • Improve swr pagination api: #95
  • Args as key: #98

Credits

Huge thanks to @sergiodxa, @pacocoursey, @tusbar, and @StarHyx for helping!

0.1.8

06 Nov 20:18
Compare
Choose a tag to compare

Patches

  • Replace useLayoutEffect by useIsomorphicLayoutEffect to avoid ssr warnings: #85

Credits

Huge thanks to @bmvantunes for helping!