Skip to content

Commit aeb71ab

Browse files
committed
[build] 0.4.2
1 parent b0128d2 commit aeb71ab

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

dist/vuex.js

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*!
2-
* Vuex v0.4.1
2+
* Vuex v0.4.2
33
* (c) 2016 Evan You
44
* Released under the MIT License.
55
*/
66
(function (global, factory) {
7-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
8-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
9-
(factory((global.Vuex = global.Vuex || {})));
10-
}(this, function (exports) { 'use strict';
7+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
8+
typeof define === 'function' && define.amd ? define(factory) :
9+
(global.Vuex = factory());
10+
}(this, function () { 'use strict';
1111

1212
var babelHelpers = {};
1313
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
@@ -364,6 +364,20 @@
364364
this._setupModuleMutations(modules || this._modules);
365365
}
366366

367+
/**
368+
* Replace entire state tree.
369+
*/
370+
371+
}, {
372+
key: '___replaceState',
373+
value: function ___replaceState(newState) {
374+
var state = this._vm._data;
375+
var clone = deepClone(newState);
376+
Object.keys(clone).forEach(function (key) {
377+
state[key] = clone[key];
378+
});
379+
}
380+
367381
/**
368382
* Attach sub state tree of each module to the root tree.
369383
*
@@ -491,16 +505,12 @@
491505
override(Vue);
492506
}
493507

494-
// also export the default
495508
var index = {
496509
Store: Store,
497510
install: install,
498511
createLogger: createLogger
499512
};
500513

501-
exports.Store = Store;
502-
exports.install = install;
503-
exports.createLogger = createLogger;
504-
exports['default'] = index;
514+
return index;
505515

506516
}));

dist/vuex.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuex",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "state management for Vue.js",
55
"main": "dist/vuex.js",
66
"files": [

0 commit comments

Comments
 (0)