Releases: Kong/swrv
Releases · Kong/swrv
Add isLoading and update documentation
Add isLoading to the return value. Becomes true when there is an ongoing request and data is not loaded yet.
const {
  data, error, isValidating, isLoading, mutate
} = useSWRV(key, fetcher, options)Capture error if exception is thrown when storing data to the cache
v1.0.4 chore(release): 1.0.4
Remove unneeded await on setTimeout
v1.0.3 chore(release): 1.0.3
Update devDependencies & add doc search
- Update 
devDependencies - Add Algolia Doc Search to the documentation site
 
Prevent retry if component has been unmounted
Prevent retrying on error if the component has been unmounted. Resolves #218.
Vue 3 Support
Summary
Update swrv for Vue 3 officially on the master branch and release 1.0.0
Breaking Changes
- Upgrade Vue 
devDependencyto^3.2.40and the VuepeerDependenciesto>=3.2.26 < 4 
Other Changes
- Switch from Vuepress to Vitepress for docs site now that we're on Vue 3
 
Release strategy
This PR will be merged into the master branch.
As for package versioning:
- This change will officially serve the Vue 3 version of swrv 
1.xunder theswrv@latesttag on npm. - The previous Vue 2.7 version of swrv 
0.10.xwill be available under theswrv@v2-latesttag on npm (this matches thevue@v2-latesttag for the[email protected]version) - The previous Vue <= 2.6.x version of swrv 
0.9.6will be available under theswrv@legacytag on npm so anyone that cannot upgrade to Vue 2.7 can install (this matches thevue@legacytag for the[email protected]version) 
Vue 2.7 Support
Summary
Update swrv for Vue 2.7
Breaking Changes
- Upgrade Vue 
devDependencyto^2.7.xand the VuepeerDependenciesto^2.7.0- This internalizes the Vue Composition API and allows us to remove the 
@vue/composition-apipeer dependency 
 - This internalizes the Vue Composition API and allows us to remove the 
 - This PR breaks SSR/Nuxt support. SSR significantly changed in Vue 3, and since this Vue 2.7 PR backports the changes already made for Vue 3, it loses SSR support. We're open to contributions if anyone would like to open a PR to add this feature back. (The SSR code and test(s) are commented out and remain in place).
 - See the Release strategy details in #304 on why we are not bumping the major version.
 
Other Changes
- Upgrades all 
@vue/cli-*dependencies to5.x - Update tests for Vue 2.7, including the supported versions of Vue in 
test-compat-all.sh - Swaps out VitePress for VuePress for the documentation site since VitePress requires a conflicting Vue v3.x dependency
 
Release strategy
- This PR release for Vue 
2.7bumped the minor version to0.10.x. We realize that this PR breaks SSR support and the major should actually be bumped; however, with the widespread usage of thebetabranch we don't want to potentially break downstream projects that are already pointing to the1.xmajor version. - The previous 
0.9.6release on npm will be tagged withlegacyso anyone that cannot upgrade to Vue 2.7 can install withyarn add swrv@legacy(this matches thevue@legacytag for the[email protected]version) - When we make the Vue 3 
nextbranch the main branch in a future release, it will again bump the major version to1.x 
0.10.0-alpha.0
Releasing alpha (testing) version of #304
0.9.6 patches
0.9.5 patch memory leak when unmounting components with ttl=0
Remove staterefs from ref cache on unmount (#231)
Thanks first time contributor @jefrailey!