Skip to content

Vue 2.7 Support

Compare
Choose a tag to compare
@adamdehaven adamdehaven released this 29 Aug 13:38
· 29 commits to master since this release

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 [email protected] 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