We previously stores JSON files directly in userData, which would cause
.keys() to list irrelevant items, or .clear() to delete data other
than user settings.
This commit makes the module store data inside a storage/ directory
inside userData.
THIS IS A BREAKING CHANGE:
Add logic to your application to move every .json file inside
userData to a storage/ subdirectory.
We previously stores JSON files directly in userData, which would cause
.keys()
to list irrelevant items, or.clear()
to delete data other than user settings.This commit makes the module store data inside a
storage/
directory insideuserData
.THIS IS A BREAKING CHANGE:
.json
file insideuserData
to astorage/
subdirectory.Fixes: https://github.com/jviotti/electron-json-storage/issues/38 Fixes: https://github.com/jviotti/electron-json-storage/issues/28 Fixes: https://github.com/jviotti/electron-json-storage/issues/19 Signed-off-by: Juan Cruz Viotti jviotti@openmailbox.org