From 464edd869964eb8c3875b3671db52b401e408b21 Mon Sep 17 00:00:00 2001 From: crossjs Date: Thu, 7 Jul 2016 22:21:21 +0800 Subject: [PATCH] [build] 1.0.2 --- .tools/release.sh | 4 ++-- package.json | 4 ++-- src/index.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.tools/release.sh b/.tools/release.sh index bf387c9..df73a4a 100644 --- a/.tools/release.sh +++ b/.tools/release.sh @@ -19,10 +19,10 @@ then # commit git add -A git commit -m "[build] $VERSION" - # npm version $VERSION --message "[release] $VERSION" + npm version $VERSION --message "[release] $VERSION" # publish git push origin refs/tags/v$VERSION git push - # npm publish + npm publish fi diff --git a/package.json b/package.json index 6e0049e..d687670 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vuex-promise", - "version": "1.0.1", + "version": "1.0.2", "description": ":two_hearts: A Promise Plugin for Vuex-FSA (fork of Vuex, with modifications for FSA compliant)", "main": "dist/index.js", "jsnext:main": "src/index.js", @@ -61,7 +61,7 @@ "rollup-plugin-babel": "^2.4.0", "uglify-js": "^2.5.0", "vue": "^1.0.26", - "vuex": "^1.0.0-rc", + "vuex": "^1.0.0-rc.2", "webpack": "^1.13.1", "yargs": "^4.7.1" } diff --git a/src/index.js b/src/index.js index 9fc0913..4f36a7b 100644 --- a/src/index.js +++ b/src/index.js @@ -12,7 +12,7 @@ export default function createPromise ({ console.log('[Promise] Vuex Promise Plugin Installed.') } - store.on('mutation', ({ type, payload }) => { + store.subscribe(({ type, payload }) => { if (hasPromise(payload)) { store.dispatch({ type,