Releases: davestewart/vuex-pathify
Releases · davestewart/vuex-pathify
v1.2.3
v1.2.2
Added
- Added Class Component to dependencies
v1.2.0
Added
Fixed
- Use typeof instead of instanceof to defend against Nuxt errors - #46 / @SebastienTainon
- Added missing return to callOne() - #43 / @germanp
- Allow dollar sign in getKeys - #41 / @germanp
- Return the call to vuex.store.dispatch - #37 / @nchutchind
v1.1.0
Added
- Ability to create new sub-properties on the fly
call()
helper to map actions using the same syntax asget()
andsync()
registerModule()
helper to register wildcard members for dynamic modules
Changed
- Wildcards can now appear anywhere in the last segment of a path
- Wildcards targeting module properties must now be explicit, i.e.
foo/*
rather thanfoo*
deep
option format is now 0: disabled, 1: read-write, 2: read-write-createdeep
option can now be changed at any timePayload#update()
now returns the updated state, rather than updating the passed state
Fixed
- Invalid computed property paths now return empty functions
- Bug in sync where invalid paths would cause error message to error
v1.0.0
1.0 release
Path syntax
- properties:
foo
- sub-properties:
foo@bar
- modules:
foo/bar
- wildcards:
foo/*
- direct syntax:
updateFoo!
Store accessors
- get:
store.get('value')
- set:
store.set('value', 1)
- copy:
store.copy('value')
Component helpers
Helpers:
sync('foo')
get('foo')
set('foo')
Formats:
- String:
'foo'
- Array:
['foo', 'bar']
- Object:
{valueFoo: 'foo', valueBar: 'bar'}
- Wildcard:
'foo/*'
- Prefixed:
'foo', ['bar', 'baz']
Store helpers
make.mutations(state)
make.getters(state)
make.actions(state)
Options
mapping
deep