electron-userland / electron-json-storage

:package: Easily write and read user settings in Electron apps
1.44k stars 80 forks source link

Store data inside a "storage" directory in userData #43

Closed jviotti closed 7 years ago

jviotti commented 7 years ago

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:

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