This pull request changes the FileDB codebase to ES6 syntax, is fixing several bugs with the old library, and adds some missing, elementary functionality according to knadh/localstoragedb API.
The development process was done in my other project ExpenSync for easier debugging purposes, single commits are therefore not visible in this fork.
Summary of changes:
add update() and tableFields() methods to FileDB
fix several bugs caused by faulty CoffeeScript syntax and missing features
migrate code to ES6 structure
add ES6 Promises to prevent race conditions with file loading on connection startup
add gulp build tasks to compile ES6 to common JS, using Babel, and build the library scripts
@nimarin: I have seen that you added a PR containing tests for the library. I guess since the API did not change, the tests can remain as-is - there may be changes necessary for your framework setup, though.
Check out the ExpenSync project for a working application using the current library state.
This pull request changes the FileDB codebase to ES6 syntax, is fixing several bugs with the old library, and adds some missing, elementary functionality according to knadh/localstoragedb API. The development process was done in my other project ExpenSync for easier debugging purposes, single commits are therefore not visible in this fork.
Summary of changes:
@nimarin: I have seen that you added a PR containing tests for the library. I guess since the API did not change, the tests can remain as-is - there may be changes necessary for your framework setup, though.
Check out the ExpenSync project for a working application using the current library state.