Updata
Updata is a JavaScript library that makes it easier to migrate local data from old versions. With the help of Updata, you don't have to care about how your app's local storage looked like a year ago; nor do you need to write thousands of if
s to deal with data created by different versions. All you need to do is to tell Updata what has been changed compared to the previous version. Then Updata does all its best to migrate local data from any previous versions to the latest version. No more chaos, focus more on your work. 👨💻
Disclaimer
This project is currently under active development, therefore API may change in following 0.x.x
versions.
Quick Start
Install from npm:
npm install app-updata
To benefit from Updata, there are two steps: configure and update.
; // Step 1: Configure .startWith'1.0' .next'1.1', .next'1.2', .shortcutFrom'1.0', .next'1.3', .done; // Step 2: Update; ;// In this case: ['1.0', '1.2', '1.3']// Notice that version 1.1 is skipped due to shortcut await updatePlan.execute;// Now it is up-to-date ✌️