Releases: mesqueeb/vuex-easy-firestore
Releases · mesqueeb/vuex-easy-firestore
batchPatches and batchDeletes 🦖
Clearly separated actions to work with!
patch
vs patchBatch
and delete
vs deleteBatch
.
Documentation has been updated for it as well!
dispatch('moduleName/patchBatch', {doc: {}, ids: []}) // `doc` is an object with the fields to patch, `ids` is an array
dispatch('moduleName/deleteBatch', ids) // an array of ids
Enjoy!! 🏖
New feature: delete sub-props! 👨🏼🎤
Big update! You can now delete not only individual firestore docs, but also select properties on a doc, and even select properties on a doc when synced through 'collection' mode!
Check the documentation at Editing.
This version is also fully compatible with Vuex Easy Access which received a similar update to be able to delete props!
Enjoy!!! 🏝
Bux fixes & support direct state sync for 'collections' ⛵️
Check out the readme part about syncing directly to state!
Please open issues for any requests/bugs!
Enjoy!!
Small config change + bug fix 🌝
- Move hooks inside 'sync' object in config, please define them like so:
const myModule: {
sync: {
insertHook () {},
patchHook () {},
deleteHook () {},
}
}
- Bug fix server hooks
Version 1 🌞
Completely rewrote the config structure.
Clean up internal state.
Completely rewrote the readme!
Beta 1 🏄🏼♂️
Merge pull request #2 from mesqueeb/dev BETA 1