Skip to content

Releases: vercel/swr

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!

0.1.7

06 Nov 02:07
Compare
Choose a tag to compare

Patches

  • Add example using SWR to sync storage between tabs: #74
  • Improve readme: #73
  • Add a README to every example: #79
  • Add One-Click Deploy button to examples: #81
  • Add @pacocoursey to CODEOWNERS: #83
  • Fix suspense bugs: #82
  • Pass pageSWRs to swrDataToOffset: #52

Credits

Huge thanks to @sergiodxa, @pacocoursey for helping!

0.1.6

04 Nov 22:13
Compare
Choose a tag to compare

Patches

  • Improve export for IntelliSense: #56
  • Add React-Native Support: #42
  • Add @types/lodash.throttle package: #63
  • Fix error broadcasting: #67

Credits

Huge thanks to @aequasi, @n3tr, and @Go7hic for helping!