Skip to content

Commit ddcc6db

Browse files
committed
0.5.1
1 parent 9a9d3da commit ddcc6db

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

dist/vuex.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vuex v0.5.0
2+
* Vuex v0.5.1
33
* (c) 2016 Evan You
44
* Released under the MIT License.
55
*/
@@ -100,9 +100,11 @@
100100
hook.emit('vuex:init', store);
101101
hook.on('vuex:travel-to-state', function (targetState) {
102102
var currentState = store._vm._data;
103+
store._dispatching = true;
103104
Object.keys(targetState).forEach(function (key) {
104105
currentState[key] = targetState[key];
105106
});
107+
store._dispatching = false;
106108
});
107109
},
108110
onMutation: function onMutation(mutation, state) {
@@ -455,9 +457,14 @@
455457
override(Vue);
456458
}
457459

460+
function createLogger() {
461+
console.warn('[vuex] Vuex.createLogger has been deprecated.' + 'Use `import createLogger from \'vuex/logger\' instead.');
462+
}
463+
458464
var index = {
459465
Store: Store,
460-
install: install
466+
install: install,
467+
createLogger: createLogger
461468
};
462469

463470
return index;

dist/vuex.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuex",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "state management for Vue.js",
55
"main": "dist/vuex.js",
66
"files": [

0 commit comments

Comments
 (0)