Releases: vuejs/pinia
Releases · vuejs/pinia
🚀 Release 0.0.7
🚀 Release 0.0.6
🚀 Release 0.1.0-alpha.1
- refactor: rename details about branch (786ea50)
- Merge branch 'master' into next (d1285e3)
- chore: up deps (957ae31)
- docs: update demo link (2361d8f)
- docs: clearer implications of where to call useStore (1d6aee1)
- chore(deps-dev): bump rollup from 1.29.0 to 1.29.1 (c3454fe)
- chore(deps-dev): bump @typescript-eslint/eslint-plugin (695f1fa)
- chore(deps-dev): bump codecov from 3.6.1 to 3.6.2 (16fcc42)
- chore(deps-dev): bump @typescript-eslint/parser from 2.16.0 to 2.17.0 (331071a)
- chore(deps-dev): bump @types/jest from 24.9.0 to 24.9.1 (a00ccd8)
- chore(deps-dev): bump jest and ts-jest (29ec77f)
- feat: make it work with vue 3 (54505cb)
🚀 Release 0.0.5
BREAKING CHANGES
After taking a deeper look at what is necessary for SSR, a few things had to change:
- Actions are no longer just functions, they must be attached to the store by being passed directly to
createStore
and they are called as methods of the store (e.g.store.reset()
) createStore
now takes an object instead of positional arguments
// before
export const useMainStore = createStore(
// id
'main',
// state
() => ({ counter: 0 }),
// getters
{
doubleCount: state => state.counter * 2,
}
)
export function reset() {
const store = useMainStore()
store.state.counter = 0
}
// now
export const useMainStore = createStore({
id: 'main',
state: () => ({ counter: 0 }),
getters: {
doubleCount: state => state.counter * 2,
},
actions: {
reset() {
this.state.counter = 0
},
},
})
- feat: allow using getters in other getters (859eeb3)
- feat: allow empty state option to make it easy to group stores (810e0f0)
- feat: add nuxt module (4c0ef7a)
- feat: allow passing the req to useStore (f250622)
- fix: bind the actions to the store (5e262da)
- feat: allow useStore to be called within a store (fdf6b45)
- feat: handle SSR state hydration (2998d53)
- feat: state hydration (db72247)
- feat: export types, support state hydration (89996ed)
🚀 Release 0.0.4
🚀 Release 0.0.3
- fix: global vueCompositionApi name (a23acef)
- docs: remove old tasks (1c594ff)
- test: store.subscribe (#29) (ceb1cd1)
- chore: up deps (6e4ae12)
- wip: pinia (6bb041b)
- docs: Fix typo in Readme in patch section (#17) (1afe265)
- chore: typo (871c252)
- chore: up dep (aedde4e)
- docs: adapt readme (f45c84a)
- docs: adapt pinia proposal (c10fa42)
- chore: remove old param (59b67f3)
- v0.0.2 (074668d)
- docs: add more (10c02f0)
- refactor: apply code from readme (85a5dde)
- docs: new lines (980ff41)
- docs: minor (531eadc)
- docs: fix link (5fcafbf)
- refactor: remove old code (11eed2b)
- docs: add readme (2dcc3ef)
- chore: up lock (567522c)