Skip to content

Commit f8833a9

Browse files
committed
chore: migrate latest Vuex 3 changes
1 parent af6971e commit f8833a9

File tree

13 files changed

+2681
-1227
lines changed

13 files changed

+2681
-1227
lines changed

examples/classic/chat/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'babel-polyfill'
21
import { createApp } from 'vue'
32
import App from './components/App.vue'
43
import store from './store'

examples/classic/counter/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'babel-polyfill'
21
import { createApp } from 'vue'
32
import Counter from './Counter.vue'
43
import store from './store'

examples/composition/chat/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'babel-polyfill'
21
import { createApp } from 'vue'
32
import App from './components/App.vue'
43
import store from './store'

examples/composition/counter/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'babel-polyfill'
21
import { createApp } from 'vue'
32
import Counter from './Counter.vue'
43
import store from './store'

examples/composition/shopping-cart/app.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import 'babel-polyfill'
21
import { createApp } from 'vue'
32
import App from './components/App.vue'
43
import store from './store'
54
import { currency } from './currency'
65

7-
// Vue.filter('currency', currency)
8-
96
const app = createApp(App)
107

118
app.use(store)

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"homepage": "https://github.com/vuejs/vuex#readme",
4545
"peerDependencies": {
46-
"vue": "3.0.0-beta.4"
46+
"vue": "^3.0.0-beta.10"
4747
},
4848
"devDependencies": {
4949
"@babel/core": "^7.9.6",
@@ -53,6 +53,7 @@
5353
"@rollup/plugin-node-resolve": "^7.1.3",
5454
"@rollup/plugin-replace": "^2.3.2",
5555
"@types/node": "^13.13.5",
56+
"@vue/compiler-sfc": "^3.0.0-beta.10",
5657
"babel-jest": "^26.0.1",
5758
"babel-loader": "^8.1.0",
5859
"brotli": "^1.3.2",
@@ -76,8 +77,8 @@
7677
"semver": "^7.3.2",
7778
"todomvc-app-css": "^2.1.0",
7879
"typescript": "^3.8.3",
79-
"vue": "^2.5.22",
80-
"vue-loader": "^15.2.1",
80+
"vue": "^3.0.0-beta.10",
81+
"vue-loader": "^16.0.0-beta.1",
8182
"vue-template-compiler": "^2.5.22",
8283
"vuepress": "^0.14.1",
8384
"vuepress-theme-vue": "^1.1.0",
File renamed without changes.

test/setup.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
11
import 'regenerator-runtime/runtime'
2-
import Vue from 'vue'
3-
import Vuex from '@/index'
4-
5-
Vue.use(Vuex)

test/unit/helpers.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { mount } from './support/helpers'
2-
import Vuex, { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from '../../src/index'
1+
import { mount } from 'test/helpers'
2+
import Vuex, { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from '@/index'
33

44
describe('Helpers', () => {
55
it('mapState (array)', () => {

test/unit/hot-reload.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { nextTick } from 'vue'
2-
import { mount } from './support/helpers'
3-
import Vuex from '../../src/index'
2+
import { mount } from 'test/helpers'
3+
import Vuex from '@/index'
44

55
const TEST = 'TEST'
66
const isSSR = process.env.VUE_ENV === 'server'

0 commit comments

Comments
 (0)