Skip to content

Commit c9dbb13

Browse files
committed
release: v3.6.0
1 parent 233b500 commit c9dbb13

10 files changed

+73
-20
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# [3.6.0](https://github.com/vuejs/vuex/compare/v3.5.1...v3.6.0) (2020-11-25)
2+
3+
### Bug Fixes
4+
5+
* stop throwing an error on `hasModule` when parent does not exists ([#1850](https://github.com/vuejs/vuex/issues/1850)) ([#1851](https://github.com/vuejs/vuex/issues/1851)) ([12aabe4](https://github.com/vuejs/vuex/commit/12aabe4cc470916d40691097dcb95badb8212f5c))
6+
7+
### Features
8+
9+
* **types:** adding logger type for logger plugin ([#1853](https://github.com/vuejs/vuex/issues/1853)) ([cb3198d](https://github.com/vuejs/vuex/commit/cb3198d5998bdb11ef05dfa5ef98d5c5fa873089))
10+
* **build:** enable named esm module import on node.js >= 14 ([#1872](https://github.com/vuejs/vuex/issues/1872)) ([acddab2](https://github.com/vuejs/vuex/commit/acddab20769d1bb6125f2da78ac47561c682fc98))
11+
112
## [3.5.1](https://github.com/vuejs/vuex/compare/v3.5.0...v3.5.1) (2020-06-29)
213

314

dist/logger.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* vuex v3.5.1
2+
* vuex v3.6.0
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
66
(function (global, factory) {
77
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
88
typeof define === 'function' && define.amd ? define(factory) :
9-
(global = global || self, global.Vuex = factory());
9+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
1010
}(this, (function () { 'use strict';
1111

1212
/**

dist/vuex.common.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vuex v3.5.1
2+
* vuex v3.6.0
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -288,7 +288,11 @@ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
288288
var parent = this.get(path.slice(0, -1));
289289
var key = path[path.length - 1];
290290

291-
return parent.hasChild(key)
291+
if (parent) {
292+
return parent.hasChild(key)
293+
}
294+
295+
return false
292296
};
293297

294298
function update (path, targetModule, newModule) {
@@ -1228,7 +1232,7 @@ function pad (num, maxLength) {
12281232
var index_cjs = {
12291233
Store: Store,
12301234
install: install,
1231-
version: '3.5.1',
1235+
version: '3.6.0',
12321236
mapState: mapState,
12331237
mapMutations: mapMutations,
12341238
mapGetters: mapGetters,

dist/vuex.esm.browser.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vuex v3.5.1
2+
* vuex v3.6.0
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -278,7 +278,11 @@ class ModuleCollection {
278278
const parent = this.get(path.slice(0, -1));
279279
const key = path[path.length - 1];
280280

281-
return parent.hasChild(key)
281+
if (parent) {
282+
return parent.hasChild(key)
283+
}
284+
285+
return false
282286
}
283287
}
284288

@@ -1183,7 +1187,7 @@ function pad (num, maxLength) {
11831187
var index = {
11841188
Store,
11851189
install,
1186-
version: '3.5.1',
1190+
version: '3.6.0',
11871191
mapState,
11881192
mapMutations,
11891193
mapGetters,

dist/vuex.esm.browser.min.js

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

dist/vuex.esm.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vuex v3.5.1
2+
* vuex v3.6.0
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -286,7 +286,11 @@ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
286286
var parent = this.get(path.slice(0, -1));
287287
var key = path[path.length - 1];
288288

289-
return parent.hasChild(key)
289+
if (parent) {
290+
return parent.hasChild(key)
291+
}
292+
293+
return false
290294
};
291295

292296
function update (path, targetModule, newModule) {
@@ -1226,7 +1230,7 @@ function pad (num, maxLength) {
12261230
var index = {
12271231
Store: Store,
12281232
install: install,
1229-
version: '3.5.1',
1233+
version: '3.6.0',
12301234
mapState: mapState,
12311235
mapMutations: mapMutations,
12321236
mapGetters: mapGetters,

dist/vuex.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* vuex v3.5.1
2+
* vuex v3.6.0
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
66
(function (global, factory) {
77
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
88
typeof define === 'function' && define.amd ? define(factory) :
9-
(global = global || self, global.Vuex = factory());
9+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
1010
}(this, (function () { 'use strict';
1111

1212
function applyMixin (Vue) {
@@ -292,7 +292,11 @@
292292
var parent = this.get(path.slice(0, -1));
293293
var key = path[path.length - 1];
294294

295-
return parent.hasChild(key)
295+
if (parent) {
296+
return parent.hasChild(key)
297+
}
298+
299+
return false
296300
};
297301

298302
function update (path, targetModule, newModule) {
@@ -1232,7 +1236,7 @@
12321236
var index_cjs = {
12331237
Store: Store,
12341238
install: install,
1235-
version: '3.5.1',
1239+
version: '3.6.0',
12361240
mapState: mapState,
12371241
mapMutations: mapMutations,
12381242
mapGetters: mapGetters,

dist/vuex.min.js

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

dist/vuex.mjs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import Vuex from '../dist/vuex.common.js'
2+
3+
const {
4+
Store,
5+
install,
6+
version,
7+
mapState,
8+
mapMutations,
9+
mapGetters,
10+
mapActions,
11+
createNamespacedHelpers,
12+
createLogger
13+
} = Vuex
14+
15+
export {
16+
Vuex as default,
17+
Store,
18+
install,
19+
version,
20+
mapState,
21+
mapMutations,
22+
mapGetters,
23+
mapActions,
24+
createNamespacedHelpers,
25+
createLogger
26+
}

package.json

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

0 commit comments

Comments
 (0)