{"name":"vuex","version":"4.0.0-alpha.1","description":"state management for Vue.js","main":"dist/vuex.common.js","module":"dist/vuex.esm.js","unpkg":"dist/vuex.js","jsdelivr":"dist/vuex.js","typings":"types/index.d.ts","scripts":{"dev":"node examples/server.js","dev:dist":"rollup -wm -c build/rollup.dev.config.js","build":"npm run build:main && npm run build:logger","build:main":"node build/build.main.js","build:logger":"rollup -c build/rollup.logger.config.js","lint":"eslint src test","test":"npm run lint && npm run test:unit && npm run test:ssr && npm run test:e2e","test:unit":"rollup -c build/rollup.dev.config.js && jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json","test:e2e":"node test/e2e/runner.js","test:ssr":"rollup -c build/rollup.dev.config.js && cross-env VUE_ENV=server jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json","test:types":"tsc -p types/test","release":"bash build/release.sh","docs":"vuepress dev docs","docs:build":"vuepress build docs"},"repository":{"type":"git","url":"git+https://github.com/vuejs/vuex.git"},"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/vuejs/vuex/issues"},"homepage":"https://github.com/vuejs/vuex#readme","peerDependencies":{"vue":"^3.0.0-alpha.8"},"devDependencies":{"@vue/compiler-sfc":"3.0.0-alpha.8","babel-core":"^6.22.1","babel-loader":"^7.1.2","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-polyfill":"^6.22.0","babel-preset-env":"^1.5.1","chromedriver":"^80.0.1","cross-env":"^5.2.0","cross-spawn":"^6.0.5","css-loader":"^2.1.0","eslint":"^5.12.0","eslint-plugin-vue-libs":"^3.0.0","express":"^4.14.1","jasmine":"2.8.0","jasmine-core":"2.8.0","nightwatch":"^1.3.1","nightwatch-helpers":"^1.2.0","rollup":"^1.1.0","rollup-plugin-buble":"^0.19.6","rollup-plugin-replace":"^2.1.0","terser":"^3.17.0","todomvc-app-css":"^2.1.0","typescript":"^3.7.2","vue":"3.0.0-alpha.8","vue-loader":"16.0.0-alpha.3","vue-template-compiler":"^2.5.22","vuepress":"^0.14.1","vuepress-theme-vue":"^1.1.0","webpack":"^4.8.3","webpack-dev-middleware":"^1.10.0","webpack-hot-middleware":"^2.19.1"},"readme":"# Vuex 4\n\nThis is the Vue 3 compatible version of Vuex. The focus is compatibility, and it provides the exact same API as Vuex 3, so users can reuse their existing Vuex code for Vue 3.\n\n## Status: Alpha\n\nAll Vuex 3 feature works. There are a few breaking changes described in a later section, so please check them out. You can find basic usage with both option and composition API at `example` folder.\n\nPlease note that it's still unstable, and there might be bugs. Please provide us feedback if you find anything. You may use [vue-next-webpack-preview](https://github.com/vuejs/vue-next-webpack-preview) to test out Vue 3 with Vuex 4.\n\n## Breaking changes\n\n### Installation process has changed\n\nTo align with the new Vue 3 initialization process, the installation process of Vuex has changed as well.\n\nYou should use a new `createStore` function to create a new store instance.\n\n```js\nimport { createStore } from 'vuex'\n\nconst store = createStore({\n  state () {\n    return {\n      count: 1\n    }\n  }\n})\n```\n\n> This is technically not a breaking change because you could still use `new Store(...)` syntax. However, to align with Vue 3 and also with Vue Router Next, we recommend users to use `createStore` function instead.\n\nThen to install Vuex to Vue app instance, pass the store instance instead of Vuex.\n\n```js\nimport { createApp } from 'vue'\nimport store from './store'\nimport App from './APP.vue'\n\nconst app = createApp(Counter)\n\napp.use(store)\n\napp.mount('#app')\n```\n\n## Kown issues\n\n- The code is kept as close to Vuex 3 code base as possible, and there're plenty of places where we should refactor. However, we are waiting for all of the test cases to pass before doing so (some tests require Vue 3 update).\n- TypeScript support is not ready yet. Please use JS environment to test this for now.\n\n## TODOs as of 4.0.0-alpha.1\n\n- Add TypeScript support\n- Make all unit test working\n- Refactor the codebase\n- Update the build system to align with Vue 3\n- Update docs\n","readmeFilename":"README.md","gitHead":"f79b0dc436f2b12024e8a15d3c1947c801390a68","_id":"vuex@4.0.0-alpha.1","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-J08Mtcjx2JOyTL+XnXQqqBDyyHpTRFSJvnjkB7FPj0FWFZSpT0atkv3Wp75UxkPAgw3+SCR2tLdr1mm0cBhGjA==","shasum":"3e548b6d98f6b3da35eb554fdb3251760d52c302","tarball":"http://registry-npm.ywwl.com/vuex/download/vuex-4.0.0-alpha.1.tgz","fileCount":15,"unpackedSize":160418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebgF5CRA9TVsSAnZWagAAX5IP/R8kZRisO1S+OMQk3b8a\n/b6uAg0ATcpwvHHzrYabOsG1yyGmWwtqKINHhhu6gQjXTH/IJQtXU57x4Ra3\niDA9O1tGgZZM2DPcbN4j1hb9LlWAl04Aq41KhK4VLR1W67EV8aWf0eduXKQW\njC+PGZn5rxQWun1Al0J93pNNkBjBWM6zwSNS76yiqjGspdkMPCOfcFX4kruD\nPEiitmO4LYdN0RJZVozfzhIt9H4kNTOZTAMsv5dG89i8wfqIr4Xgk5oimG1L\n6ZHyhQR9eumWOc2lbh1T6oE02fSwHvsDUkkXzsuwUMmt6+rfDPc8LIN0HMdc\nmMMEMxUZK6Z7s/Vkt9ostEpUEBm8X14fIZJIVqd8wt3wsUVrkW2Ib71/nsVy\nGEOPRhFBZ7mzR0QCE2gIL6T13YL4IPpv5fahh29CI65qMJ1/8pdOcK8OvmNV\npImUSlwEsFsAmm/5JVYfAbmaPbdS+9FpTQLNCMsq8AJqSmur3QmKVMxQvkac\n/kTxfyM9fywH6gH+VVR9iveOY7qFofMERm2H0B5O1WIKnHlynNgHjHpY3Tuh\nbWVpCNYI/IZeRxhXjsdb+Mzg7Q6pED0wU9RPLWEJb1XEU7m+PJvdHZJfUkE7\nNcm3zOe16R64hMku7rHquXdXMX7eFuLmbXqwgtuww9HyPlKXVC3FIeZk3ADm\ngMAn\r\n=0Rvw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA67NqLpP5rakGyiWMV3NykxNWDbgkXo/QZ05qPqzKRMAiEA+WlsO4s73bXcCxz/TL59s6J5c6JSbXTrDwwMMbGPt0c="}],"size":36472,"noattachment":false,"key":"/vuex/-/vuex-4.0.0-alpha.1.tgz"},"maintainers":[{"email":"guillaume.b.chau@gmail.com","name":"akryum"},{"email":"ktsn55@gmail.com","name":"ktsn"},{"email":"yyx990803@gmail.com","name":"yyx990803"}],"_npmUser":{"name":"ktsn","email":"ktsn55@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vuex_4.0.0-alpha.1_1584267641364_0.554919067836489"},"_hasShrinkwrap":false,"publish_time":1584267641499,"_cnpm_publish_time":1584267641499,"dist-tags":{"latest":"4.1.0","next":"4.0.2"}}