Comparing version 0.2.0 to 0.2.1
@@ -0,1 +1,7 @@ | ||
## [0.2.1](https://github.com/posva/pinia/compare/v0.2.0...v0.2.1) (2021-03-23) | ||
### Bug Fixes | ||
- **devtools:** time travel and state display ([043ae2a](https://github.com/posva/pinia/commit/043ae2ac229b55087d962432b7501483403742e2)), closes [#394](https://github.com/posva/pinia/issues/394) [#19](https://github.com/posva/pinia/issues/19) | ||
# [0.2.0](https://github.com/posva/pinia/compare/0.1.0...0.2.0) (2021-03-08) | ||
@@ -2,0 +8,0 @@ |
/*! | ||
* pinia v0.2.0 | ||
* pinia v0.2.1 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -112,4 +112,2 @@ * @license MIT | ||
const assign = Object.assign; | ||
const target = typeof window !== 'undefined' | ||
@@ -151,3 +149,6 @@ ? window | ||
rootStore.registerModule(store.$id, store); | ||
Object.defineProperty(rootStore.state, store.$id, stateDescriptor); | ||
Object.defineProperty(rootStore.state, store.$id, { | ||
enumerable: true, | ||
...stateDescriptor, | ||
}); | ||
// Vue.set(rootStore.state, store.name, store.state) | ||
@@ -161,8 +162,13 @@ // the trailing slash is removed by the devtools | ||
rootStore.state[store.$id] = state; | ||
devtoolHook.emit('vuex:mutation', assign({}, mutation, { | ||
devtoolHook.emit('vuex:mutation', { | ||
type: `[${mutation.storeName}] ${mutation.type}`, | ||
}), rootStore.state); | ||
payload: mutation.payload, | ||
}, | ||
// this doesn't seem to be used by the devtools but it's in vuex codebase | ||
rootStore.state); | ||
}); | ||
} | ||
const assign = Object.assign; | ||
const isClient = typeof window != 'undefined'; | ||
@@ -169,0 +175,0 @@ function innerPatch(target, patchToApply) { |
/*! | ||
* pinia v0.2.0 | ||
* pinia v0.2.1 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
/*! | ||
* pinia v0.2.0 | ||
* pinia v0.2.1 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -106,4 +106,2 @@ * @license MIT | ||
const assign = Object.assign; | ||
const target = typeof window !== 'undefined' | ||
@@ -145,3 +143,6 @@ ? window | ||
rootStore.registerModule(store.$id, store); | ||
Object.defineProperty(rootStore.state, store.$id, stateDescriptor); | ||
Object.defineProperty(rootStore.state, store.$id, { | ||
enumerable: true, | ||
...stateDescriptor, | ||
}); | ||
// Vue.set(rootStore.state, store.name, store.state) | ||
@@ -155,8 +156,13 @@ // the trailing slash is removed by the devtools | ||
rootStore.state[store.$id] = state; | ||
devtoolHook.emit('vuex:mutation', assign({}, mutation, { | ||
devtoolHook.emit('vuex:mutation', { | ||
type: `[${mutation.storeName}] ${mutation.type}`, | ||
}), rootStore.state); | ||
payload: mutation.payload, | ||
}, | ||
// this doesn't seem to be used by the devtools but it's in vuex codebase | ||
rootStore.state); | ||
}); | ||
} | ||
const assign = Object.assign; | ||
const isClient = typeof window != 'undefined'; | ||
@@ -163,0 +169,0 @@ function innerPatch(target, patchToApply) { |
/*! | ||
* pinia v0.2.0 | ||
* pinia v0.2.1 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -108,4 +108,2 @@ * @license MIT | ||
const assign = Object.assign; | ||
const target = typeof window !== 'undefined' | ||
@@ -147,3 +145,6 @@ ? window | ||
rootStore.registerModule(store.$id, store); | ||
Object.defineProperty(rootStore.state, store.$id, stateDescriptor); | ||
Object.defineProperty(rootStore.state, store.$id, { | ||
enumerable: true, | ||
...stateDescriptor, | ||
}); | ||
// Vue.set(rootStore.state, store.name, store.state) | ||
@@ -157,8 +158,13 @@ // the trailing slash is removed by the devtools | ||
rootStore.state[store.$id] = state; | ||
devtoolHook.emit('vuex:mutation', assign({}, mutation, { | ||
devtoolHook.emit('vuex:mutation', { | ||
type: `[${mutation.storeName}] ${mutation.type}`, | ||
}), rootStore.state); | ||
payload: mutation.payload, | ||
}, | ||
// this doesn't seem to be used by the devtools but it's in vuex codebase | ||
rootStore.state); | ||
}); | ||
} | ||
const assign = Object.assign; | ||
const isClient = typeof window != 'undefined'; | ||
@@ -165,0 +171,0 @@ function innerPatch(target, patchToApply) { |
/*! | ||
* pinia v0.2.0 | ||
* pinia v0.2.1 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -107,4 +107,2 @@ * @license MIT | ||
const assign = Object.assign; | ||
const target = typeof window !== 'undefined' | ||
@@ -146,3 +144,6 @@ ? window | ||
rootStore.registerModule(store.$id, store); | ||
Object.defineProperty(rootStore.state, store.$id, stateDescriptor); | ||
Object.defineProperty(rootStore.state, store.$id, { | ||
enumerable: true, | ||
...stateDescriptor, | ||
}); | ||
// Vue.set(rootStore.state, store.name, store.state) | ||
@@ -156,8 +157,13 @@ // the trailing slash is removed by the devtools | ||
rootStore.state[store.$id] = state; | ||
devtoolHook.emit('vuex:mutation', assign({}, mutation, { | ||
devtoolHook.emit('vuex:mutation', { | ||
type: `[${mutation.storeName}] ${mutation.type}`, | ||
}), rootStore.state); | ||
payload: mutation.payload, | ||
}, | ||
// this doesn't seem to be used by the devtools but it's in vuex codebase | ||
rootStore.state); | ||
}); | ||
} | ||
const assign = Object.assign; | ||
const isClient = typeof window != 'undefined'; | ||
@@ -164,0 +170,0 @@ function innerPatch(target, patchToApply) { |
/*! | ||
* pinia v0.2.0 | ||
* pinia v0.2.1 | ||
* (c) 2021 Eduardo San Martin Morote | ||
@@ -4,0 +4,0 @@ * @license MIT |
{ | ||
"name": "pinia", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Intuitive, type safe and flexible Store for Vue", | ||
@@ -5,0 +5,0 @@ "main": "dist/pinia.cjs.js", |
@@ -25,2 +25,4 @@ <p align="center"> | ||
## ๐ [Demo](https://vcuiu.csb.app/) | ||
Pinia works both for Vue 2.x and Vue 3.x and you are currently on the branch that supports Vue 2.x. **If you are looking for the version compatible with Vue 3.x, check the [`v2` branch](https://github.com/posva/pinia/tree/v2)**. | ||
@@ -27,0 +29,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
104614
1923
532
0