Skip to content

Releases: Kong/swrv

Capture error if exception is thrown when storing data to the cache

05 Jul 16:57
Compare
Choose a tag to compare

Remove unneeded await on setTimeout

12 Jan 18:17
Compare
Choose a tag to compare
v1.0.3

chore(release): 1.0.3

Update devDependencies & add doc search

26 Dec 15:49
Compare
Choose a tag to compare

Prevent retry if component has been unmounted

02 Nov 21:27
Compare
Choose a tag to compare

Prevent retrying on error if the component has been unmounted. Resolves #218.

Vue 3 Support

11 Oct 22:15
Compare
Choose a tag to compare

Summary

Update swrv for Vue 3 officially on the master branch and release 1.0.0

Breaking Changes

  • Upgrade Vue devDependency to ^3.2.40 and the Vue peerDependencies to >=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.x under the swrv@latest tag on npm.
  • The previous Vue 2.7 version of swrv 0.10.x will be available under the swrv@v2-latest tag on npm (this matches the vue@v2-latest tag for the vue@2.7.x version)
  • The previous Vue <= 2.6.x version of swrv 0.9.6 will be available under the swrv@legacy tag on npm so anyone that cannot upgrade to Vue 2.7 can install (this matches the vue@legacy tag for the vue@2.6.x version)

Vue 2.7 Support

29 Aug 13:38
Compare
Choose a tag to compare

Summary

Update swrv for Vue 2.7

Breaking Changes

  • Upgrade Vue devDependency to ^2.7.x and the Vue peerDependencies to ^2.7.0
    • This internalizes the Vue Composition API and allows us to remove the @vue/composition-api peer dependency
  • 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 to 5.x
    • Note: We're planning to swap out Vue CLI for Vite and Jest for Vitest in a future PR
  • 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.7 bumped the minor version to 0.10.x. We realize that this PR breaks SSR support and the major should actually be bumped; however, with the widespread usage of the beta branch we don't want to potentially break downstream projects that are already pointing to the 1.x major version.
  • The previous 0.9.6 release on npm will be tagged with legacy so anyone that cannot upgrade to Vue 2.7 can install with yarn add swrv@legacy (this matches the vue@legacy tag for the vue@2.6.x version)
  • When we make the Vue 3 next branch the main branch in a future release, it will again bump the major version to 1.x

0.10.0-alpha.0

26 Aug 13:11
Compare
Choose a tag to compare
0.10.0-alpha.0 Pre-release
Pre-release

Releasing alpha (testing) version of #304

0.9.6 patches

02 Feb 06:24
Compare
Choose a tag to compare

0.9.5 patch memory leak when unmounting components with ttl=0

04 Jan 05:51
Compare
Choose a tag to compare

Remove staterefs from ref cache on unmount (#231)

Thanks first time contributor @jefrailey!

bugfix, isValidating on null key

02 Jul 23:16
Compare
Choose a tag to compare

From #195

Other changes:

  • improved error message for top level #134
  • update type #151