Skip to content

Commit

Permalink
release: v3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Nov 25, 2020
1 parent 233b500 commit c9dbb13
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 20 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,14 @@
# [3.6.0](https://github.com/vuejs/vuex/compare/v3.5.1...v3.6.0) (2020-11-25)

### Bug Fixes

* 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))

### Features

* **types:** adding logger type for logger plugin ([#1853](https://github.com/vuejs/vuex/issues/1853)) ([cb3198d](https://github.com/vuejs/vuex/commit/cb3198d5998bdb11ef05dfa5ef98d5c5fa873089))
* **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))

## [3.5.1](https://github.com/vuejs/vuex/compare/v3.5.0...v3.5.1) (2020-06-29)


Expand Down
4 changes: 2 additions & 2 deletions dist/logger.js
@@ -1,12 +1,12 @@
/*!
* vuex v3.5.1
* vuex v3.6.0
* (c) 2020 Evan You
* @license MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.Vuex = factory());
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
}(this, (function () { 'use strict';

/**
Expand Down
10 changes: 7 additions & 3 deletions dist/vuex.common.js
@@ -1,5 +1,5 @@
/*!
* vuex v3.5.1
* vuex v3.6.0
* (c) 2020 Evan You
* @license MIT
*/
Expand Down Expand Up @@ -288,7 +288,11 @@ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
var parent = this.get(path.slice(0, -1));
var key = path[path.length - 1];

return parent.hasChild(key)
if (parent) {
return parent.hasChild(key)
}

return false
};

function update (path, targetModule, newModule) {
Expand Down Expand Up @@ -1228,7 +1232,7 @@ function pad (num, maxLength) {
var index_cjs = {
Store: Store,
install: install,
version: '3.5.1',
version: '3.6.0',
mapState: mapState,
mapMutations: mapMutations,
mapGetters: mapGetters,
Expand Down
10 changes: 7 additions & 3 deletions dist/vuex.esm.browser.js
@@ -1,5 +1,5 @@
/*!
* vuex v3.5.1
* vuex v3.6.0
* (c) 2020 Evan You
* @license MIT
*/
Expand Down Expand Up @@ -278,7 +278,11 @@ class ModuleCollection {
const parent = this.get(path.slice(0, -1));
const key = path[path.length - 1];

return parent.hasChild(key)
if (parent) {
return parent.hasChild(key)
}

return false
}
}

Expand Down Expand Up @@ -1183,7 +1187,7 @@ function pad (num, maxLength) {
var index = {
Store,
install,
version: '3.5.1',
version: '3.6.0',
mapState,
mapMutations,
mapGetters,
Expand Down
4 changes: 2 additions & 2 deletions dist/vuex.esm.browser.min.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/vuex.esm.js
@@ -1,5 +1,5 @@
/*!
* vuex v3.5.1
* vuex v3.6.0
* (c) 2020 Evan You
* @license MIT
*/
Expand Down Expand Up @@ -286,7 +286,11 @@ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
var parent = this.get(path.slice(0, -1));
var key = path[path.length - 1];

return parent.hasChild(key)
if (parent) {
return parent.hasChild(key)
}

return false
};

function update (path, targetModule, newModule) {
Expand Down Expand Up @@ -1226,7 +1230,7 @@ function pad (num, maxLength) {
var index = {
Store: Store,
install: install,
version: '3.5.1',
version: '3.6.0',
mapState: mapState,
mapMutations: mapMutations,
mapGetters: mapGetters,
Expand Down
12 changes: 8 additions & 4 deletions dist/vuex.js
@@ -1,12 +1,12 @@
/*!
* vuex v3.5.1
* vuex v3.6.0
* (c) 2020 Evan You
* @license MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.Vuex = factory());
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
}(this, (function () { 'use strict';

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

return parent.hasChild(key)
if (parent) {
return parent.hasChild(key)
}

return false
};

function update (path, targetModule, newModule) {
Expand Down Expand Up @@ -1232,7 +1236,7 @@
var index_cjs = {
Store: Store,
install: install,
version: '3.5.1',
version: '3.6.0',
mapState: mapState,
mapMutations: mapMutations,
mapGetters: mapGetters,
Expand Down
4 changes: 2 additions & 2 deletions dist/vuex.min.js

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions dist/vuex.mjs
@@ -0,0 +1,26 @@
import Vuex from '../dist/vuex.common.js'

const {
Store,
install,
version,
mapState,
mapMutations,
mapGetters,
mapActions,
createNamespacedHelpers,
createLogger
} = Vuex

export {
Vuex as default,
Store,
install,
version,
mapState,
mapMutations,
mapGetters,
mapActions,
createNamespacedHelpers,
createLogger
}
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "vuex",
"version": "3.5.1",
"version": "3.6.0",
"description": "state management for Vue.js",
"main": "dist/vuex.common.js",
"exports": {
Expand Down

0 comments on commit c9dbb13

Please sign in to comment.