forked from daren.hsu/line_push
update
This commit is contained in:
+23
@@ -1,3 +1,26 @@
|
||||
## [3.6.2](https://github.com/vuejs/vuex/compare/v3.6.1...v3.6.2) (2021-01-26)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **build:** fix wrong path name for the export module ([679313b](https://github.com/vuejs/vuex/commit/679313bf5e4de066f340a06ef9bfe08d1536fadd))
|
||||
|
||||
## [3.6.1](https://github.com/vuejs/vuex/compare/v3.6.0...v3.6.1) (2021-01-26)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix tree shaking notworking in webpack bundle ([#1906](https://github.com/vuejs/vuex/issues/1906)) ([1dc2d1f](https://github.com/vuejs/vuex/commit/1dc2d1f21de42138053ea3281dde05487642a76d))
|
||||
|
||||
# [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)
|
||||
|
||||
|
||||
|
||||
+34
-8
@@ -1,13 +1,21 @@
|
||||
# Vuex [](https://circleci.com/gh/vuejs/vuex)
|
||||
# Vuex
|
||||
|
||||
> Centralized State Management for Vue.js.
|
||||
[](https://npmjs.com/package/vuex)
|
||||
[](https://circleci.com/gh/vuejs/vuex)
|
||||
|
||||
<p align="center">
|
||||
<img width="700px" src="https://raw.githubusercontent.com/vuejs/vuex/dev/docs/.vuepress/public/vuex.png">
|
||||
</p>
|
||||
---
|
||||
|
||||
- [What is Vuex?](https://vuex.vuejs.org/)
|
||||
- [Full Documentation](http://vuex.vuejs.org/)
|
||||
:fire: **HEADS UP!** You're currently looking at Vuex 3 branch. If you're looking for Vuex 4, [please check out `4.0` branch](https://github.com/vuejs/vuex/tree/4.0).
|
||||
|
||||
---
|
||||
|
||||
Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official [devtools extension](https://github.com/vuejs/vue-devtools) to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
|
||||
|
||||
Learn more about Vuex at "[What is Vuex?](https://vuex.vuejs.org/)", or get started by looking into [full documentation](http://vuex.vuejs.org/).
|
||||
|
||||
## Documentation
|
||||
|
||||
To check out docs, visit [vuex.vuejs.org](https://vuex.vuejs.org/).
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -19,11 +27,27 @@
|
||||
|
||||
Running the examples:
|
||||
|
||||
``` bash
|
||||
```bash
|
||||
$ npm install
|
||||
$ npm run dev # serve examples at localhost:8080
|
||||
```
|
||||
|
||||
## Questions
|
||||
|
||||
For questions and support please use the [Discord chat server](https://chat.vuejs.org) or [the official forum](http://forum.vuejs.org). The issue list of this repo is **exclusively** for bug reports and feature requests.
|
||||
|
||||
## Issues
|
||||
|
||||
Please make sure to read the [Issue Reporting Checklist](https://github.com/vuejs/vuex/blob/dev/.github/contributing.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines may be closed immediately.
|
||||
|
||||
## Changelog
|
||||
|
||||
Detailed changes for each release are documented in the [release notes](https://github.com/vuejs/vuex/releases).
|
||||
|
||||
## Stay In Touch
|
||||
|
||||
For latest releases and announcements, follow on Twitter: [@vuejs](https://twitter.com/vuejs).
|
||||
|
||||
## Contribution
|
||||
|
||||
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vuex/blob/dev/.github/contributing.md) before making a pull request.
|
||||
@@ -31,3 +55,5 @@ Please make sure to read the [Contributing Guide](https://github.com/vuejs/vuex/
|
||||
## License
|
||||
|
||||
[MIT](http://opensource.org/licenses/MIT)
|
||||
|
||||
Copyright (c) 2015-present Evan You
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 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';
|
||||
|
||||
/**
|
||||
|
||||
+9
-5
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
'use strict';
|
||||
@@ -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) {
|
||||
@@ -963,7 +967,7 @@ var mapState = normalizeNamespace(function (namespace, states) {
|
||||
/**
|
||||
* Reduce the code which written in Vue.js for committing the mutation
|
||||
* @param {String} [namespace] - Module's namespace
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @return {Object}
|
||||
*/
|
||||
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
||||
@@ -1228,7 +1232,7 @@ function pad (num, maxLength) {
|
||||
var index_cjs = {
|
||||
Store: Store,
|
||||
install: install,
|
||||
version: '3.5.1',
|
||||
version: '3.6.2',
|
||||
mapState: mapState,
|
||||
mapMutations: mapMutations,
|
||||
mapGetters: mapGetters,
|
||||
|
||||
+9
-5
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
function applyMixin (Vue) {
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -934,7 +938,7 @@ const mapState = normalizeNamespace((namespace, states) => {
|
||||
/**
|
||||
* Reduce the code which written in Vue.js for committing the mutation
|
||||
* @param {String} [namespace] - Module's namespace
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @return {Object}
|
||||
*/
|
||||
const mapMutations = normalizeNamespace((namespace, mutations) => {
|
||||
@@ -1183,7 +1187,7 @@ function pad (num, maxLength) {
|
||||
var index = {
|
||||
Store,
|
||||
install,
|
||||
version: '3.5.1',
|
||||
version: '3.6.2',
|
||||
mapState,
|
||||
mapMutations,
|
||||
mapGetters,
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+9
-5
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
function applyMixin (Vue) {
|
||||
@@ -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) {
|
||||
@@ -961,7 +965,7 @@ var mapState = normalizeNamespace(function (namespace, states) {
|
||||
/**
|
||||
* Reduce the code which written in Vue.js for committing the mutation
|
||||
* @param {String} [namespace] - Module's namespace
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @return {Object}
|
||||
*/
|
||||
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
||||
@@ -1226,7 +1230,7 @@ function pad (num, maxLength) {
|
||||
var index = {
|
||||
Store: Store,
|
||||
install: install,
|
||||
version: '3.5.1',
|
||||
version: '3.6.2',
|
||||
mapState: mapState,
|
||||
mapMutations: mapMutations,
|
||||
mapGetters: mapGetters,
|
||||
|
||||
+10
-6
@@ -1,12 +1,12 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 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) {
|
||||
@@ -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) {
|
||||
@@ -967,7 +971,7 @@
|
||||
/**
|
||||
* Reduce the code which written in Vue.js for committing the mutation
|
||||
* @param {String} [namespace] - Module's namespace
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @return {Object}
|
||||
*/
|
||||
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
||||
@@ -1232,7 +1236,7 @@
|
||||
var index_cjs = {
|
||||
Store: Store,
|
||||
install: install,
|
||||
version: '3.5.1',
|
||||
version: '3.6.2',
|
||||
mapState: mapState,
|
||||
mapMutations: mapMutations,
|
||||
mapGetters: mapGetters,
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+26
@@ -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
|
||||
}
|
||||
+39
-29
@@ -1,33 +1,33 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"vuex@3.5.1",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"vuex@3.6.2",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "vuex@3.5.1",
|
||||
"_id": "vuex@3.5.1",
|
||||
"_from": "vuex@3.6.2",
|
||||
"_id": "vuex@3.6.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-w7oJzmHQs0FM9LXodfskhw9wgKBiaB+totOdb8sNzbTB2KDCEEwEs29NzBZFh/lmEK1t5tDmM1vtsO7ubG1DFw==",
|
||||
"_integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==",
|
||||
"_location": "/vuex",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "vuex@3.5.1",
|
||||
"raw": "vuex@3.6.2",
|
||||
"name": "vuex",
|
||||
"escapedName": "vuex",
|
||||
"rawSpec": "3.5.1",
|
||||
"rawSpec": "3.6.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "3.5.1"
|
||||
"fetchSpec": "3.6.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@nuxt/vue-app",
|
||||
"/nuxt-property-decorator"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/vuex/-/vuex-3.5.1.tgz",
|
||||
"_spec": "3.5.1",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
|
||||
"_spec": "3.6.2",
|
||||
"_where": "/home/node/nuxt",
|
||||
"author": {
|
||||
"name": "Evan You"
|
||||
},
|
||||
@@ -36,43 +36,52 @@
|
||||
},
|
||||
"description": "state management for Vue.js",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/preset-env": "^7.9.6",
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@rollup/plugin-buble": "^0.21.3",
|
||||
"@rollup/plugin-commonjs": "^11.1.0",
|
||||
"@rollup/plugin-node-resolve": "^7.1.3",
|
||||
"@rollup/plugin-replace": "^2.3.2",
|
||||
"@types/node": "^13.13.5",
|
||||
"babel-jest": "^26.0.1",
|
||||
"babel-loader": "^8.1.0",
|
||||
"@vuepress/theme-vue": "^1.8.0",
|
||||
"babel-jest": "^26.6.3",
|
||||
"babel-loader": "^8.2.2",
|
||||
"brotli": "^1.3.2",
|
||||
"chalk": "^4.0.0",
|
||||
"conventional-changelog-cli": "^2.0.31",
|
||||
"conventional-changelog-cli": "^2.1.1",
|
||||
"cross-env": "^5.2.0",
|
||||
"css-loader": "^2.1.0",
|
||||
"enquirer": "^2.3.5",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-plugin-vue-libs": "^4.0.0",
|
||||
"execa": "^4.0.0",
|
||||
"execa": "^5.0.0",
|
||||
"express": "^4.17.1",
|
||||
"jest": "^26.0.1",
|
||||
"jest": "^26.6.3",
|
||||
"puppeteer": "^4.0.0",
|
||||
"regenerator-runtime": "^0.13.5",
|
||||
"rollup": "^2.8.2",
|
||||
"rollup": "^2.38.0",
|
||||
"rollup-plugin-terser": "^5.3.0",
|
||||
"semver": "^7.3.2",
|
||||
"start-server-and-test": "^1.11.0",
|
||||
"todomvc-app-css": "^2.1.0",
|
||||
"start-server-and-test": "^1.11.7",
|
||||
"todomvc-app-css": "^2.3.0",
|
||||
"typescript": "^3.8.3",
|
||||
"vue": "^2.5.22",
|
||||
"vue-loader": "^15.2.1",
|
||||
"vue-template-compiler": "^2.5.22",
|
||||
"vuepress": "^0.14.1",
|
||||
"vuepress-theme-vue": "^1.1.0",
|
||||
"vue": "2.5.22",
|
||||
"vue-loader": "15.2.1",
|
||||
"vue-server-renderer": "2.5.22",
|
||||
"vue-template-compiler": "2.5.22",
|
||||
"vuepress": "^1.8.0",
|
||||
"webpack": "^4.43.0",
|
||||
"webpack-dev-middleware": "^3.7.2",
|
||||
"webpack-hot-middleware": "^2.25.0"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"module": "./dist/vuex.esm.js",
|
||||
"require": "./dist/vuex.common.js",
|
||||
"import": "./dist/vuex.mjs"
|
||||
},
|
||||
"./": "./"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"types/index.d.ts",
|
||||
@@ -104,8 +113,9 @@
|
||||
"docs:build": "vuepress build docs",
|
||||
"lint": "eslint src test",
|
||||
"release": "node scripts/release.js",
|
||||
"test": "npm run lint && npm run test:types && npm run test:unit && npm run test:ssr && npm run test:e2e",
|
||||
"test:e2e": "start-server-and-test dev http://localhost:8080 'jest --testPathIgnorePatterns test/unit'",
|
||||
"test": "npm run lint && npm run test:types && npm run test:unit && npm run test:ssr && npm run test:e2e && npm run test:esm",
|
||||
"test:e2e": "start-server-and-test dev http://localhost:8080 \"jest --testPathIgnorePatterns test/unit\"",
|
||||
"test:esm": "node test/esm/esm-test.js",
|
||||
"test:ssr": "cross-env VUE_ENV=server jest --testPathIgnorePatterns test/e2e",
|
||||
"test:types": "tsc -p types/test",
|
||||
"test:unit": "jest --testPathIgnorePatterns test/e2e"
|
||||
@@ -113,5 +123,5 @@
|
||||
"sideEffects": false,
|
||||
"typings": "types/index.d.ts",
|
||||
"unpkg": "dist/vuex.js",
|
||||
"version": "3.5.1"
|
||||
"version": "3.6.2"
|
||||
}
|
||||
|
||||
+6
@@ -1,5 +1,10 @@
|
||||
import { Payload, Plugin } from "./index";
|
||||
|
||||
interface Logger extends Partial<Pick<Console, 'groupCollapsed' | 'group' | 'groupEnd'>> {
|
||||
log(message: string, color: string, payload: any): void;
|
||||
log(message: string): void;
|
||||
}
|
||||
|
||||
export interface LoggerOption<S> {
|
||||
collapsed?: boolean;
|
||||
filter?: <P extends Payload>(mutation: P, stateBefore: S, stateAfter: S) => boolean;
|
||||
@@ -9,6 +14,7 @@ export interface LoggerOption<S> {
|
||||
actionTransformer?: <P extends Payload>(action: P) => any;
|
||||
logMutations?: boolean;
|
||||
logActions?: boolean;
|
||||
logger?: Logger;
|
||||
}
|
||||
|
||||
export default function createLogger<S>(option?: LoggerOption<S>): Plugin<S>;
|
||||
|
||||
Reference in New Issue
Block a user