2.0.0-alpha.9 (2021-03-31)
- types: pass custom properties to stores (d26df6e)
2.0.0-alpha.8 (2021-03-29)
- devtools: logo and titles (0963fd0)
2.0.0-alpha.7 (2021-01-21)
2.0.0-alpha.6 (2020-12-31)
setActiveReq()
has been renamed tosetActivePinia()
. And now receives the application's pinia as the first parameter instead of an arbitrary object (like a Node http request). This affects particularly users doing SSR but also enables them to write universal code.
2.0.0-alpha.5 (2020-10-09)
- all store properties (
id
,state
,patch
,subscribe
, andreset
) are now prefixed with$
to allow properties defined with the same type and avoid types breaking. Tip: you can refactor your whole codebase with F2 (or right-click + Refactor) on each of the store's properties
2.0.0-alpha.4 (2020-09-29)
- detach stores creation from currentInstance (dc31736)
2.0.0-alpha.3 (2020-09-28)
- rename createStore to defineStore (a9ad160)
- renamed
createStore
todefineStore
.createStore
will be marked as deprecated during the alpha releases and then be dropped.
2.0.0-alpha.2 (2020-09-25)
- add devtools support (849cb3f)
2.0.0-alpha.1 (2020-09-22)
- access the state and getters through
this
(#190) (6df18ef) - merge all properties under this (d5eaac1)
state
properties no longer need to be accessed throughstore.state
getters
no longer receive parameters, access the store instance viathis
: directly callthis.myState
to read state and other getters.