Releases: vercel/swr
Releases · vercel/swr
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!
0.1.13
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
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
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
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!