Releases: vuejs/pinia
Releases · vuejs/pinia
🚀 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
createStoreand they are called as methods of the store (e.g.store.reset()) createStorenow 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)