diff options
author | Dominic Clifton <me@dominicclifton.name> | 2015-05-08 00:10:26 +0300 |
---|---|---|
committer | Dominic Clifton <me@dominicclifton.name> | 2015-05-08 00:10:26 +0300 |
commit | 244685c9a69f5a2baa2531ccddfe4d463c64f2ab (patch) | |
tree | 908a6f9c7ae0a453991bfb89016b0a1842f1d409 /js/data_storage.js | |
parent | 726c895c0a14ea0dfb55e26c2a7fc8f8bc6aafbb (diff) |
Update version checking code to use semantic versioning - see
http://semver.org/
semver.js creating using browserify.
https://www.brcdn.org/?module=semver&version=4.3.4
Diffstat (limited to 'js/data_storage.js')
-rwxr-xr-x | js/data_storage.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/js/data_storage.js b/js/data_storage.js index cc1fb6e0..d459b535 100755 --- a/js/data_storage.js +++ b/js/data_storage.js @@ -2,10 +2,13 @@ var CONFIGURATOR = { 'releaseDate': 1429014724688, // new Date().getTime() - Tue Apr 14 2015 13:32:17 GMT+0100 (BST) - 'apiVersionAccepted': 1.2, - 'backupRestoreMinApiVersionAccepted': 1.5, - 'pidControllerChangeMinApiVersion': 1.5, - 'backupFileMinVersionAccepted': '0.55', // chrome.runtime.getManifest().version is stored as string, so does this one + + // all versions are specified and compared using semantic versioning http://semver.org/ + 'apiVersionAccepted': '1.2.0', + 'backupRestoreMinApiVersionAccepted': '1.5.0', + 'pidControllerChangeMinApiVersion': '1.5.0', + 'backupFileMinVersionAccepted': '0.55.0', // chrome.runtime.getManifest().version is stored as string, so does this one + 'connectionValid': false, 'connectionValidCliOnly': false, 'cliActive': false, @@ -13,13 +16,13 @@ var CONFIGURATOR = { }; var CONFIG = { - apiVersion: 0, + apiVersion: "0.0.0", flightControllerIdentifier: '', flightControllerVersion: '', version: 0, buildInfo: '', multiType: 0, - msp_version: 0, + msp_version: 0, // not specified using semantic versioning capability: 0, cycleTime: 0, i2cError: 0, |