feat(vue): upgrade swrv for vue 2.7 #304
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade for Vue 2.7
Instead of making updates to the
master
branch, I back-ported the changes from from thenext
branch and updated forvue@2.7.x
. This strategy allows for an easier transition to Vue 3 as themaster
branch in a future release thanks to the work already done by @darrenjennings. This PR will resolve #303.Breaking Changes
devDependency
to^2.7.x
and the VuepeerDependencies
to^2.7.0
@vue/composition-api
peer dependencyOther Changes
@vue/cli-*
dependencies to5.x
test-compat-all.sh
Todo
/examples/*
projects for Vue 2.7(Won't update; SSR support dropped)axios-typescript-nuxt
basic
pwa
(Won't update; SSR support dropped)ssr-nuxt
vite
README.md
master
branch and update accordinglyRelease strategy
After adding to and completing the items in the Todo section above and leaving this PR open for feedback for a period, the plan is to replace the current
master
branch with the code from this PR.As for the versioning/release of this PR, here's what we're thinking:
2.7
will bump 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 thebeta
branch we don't want to potentially break downstream projects that are already pointing to the1.x
major version.0.9.6
release on npm withlegacy
so anyone that cannot upgrade to Vue 2.7 can install withyarn add swrv@legacy
(this matches thevue@legacy
tag for thevue@2.6.x
version)next
branch the main branch in a future release, it will again bump the major version to1.x