mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
4742db4baa
This major version of kinto.js released without a FirefoxStorage adapter. Since Gecko is the only project with a need for this adapter as well as the only one who can use it, that file moves to this repo as a new kinto-storage-adapter.js. This file is mostly a copy of the most recent FirefoxStorage.js, plus some other non-exported utility functions copied from kinto.js to make it work. This changes the export of the kinto-offline-client.js from a `loadKinto` function which returns the Kinto class, to the actual Kinto class itself, with the user expected to "hook up" the adapter. It turns out that this doesn't change much in how we actually use Kinto, since we were always previously explicitly selecting the Kinto adapter. This release of kinto.js also changes some of the build options around, which changes the minified output of kinto-offline-client.js. There are still some outstanding stylistic complaints about FirefoxAdapter having to do with its _init static method which is public and the fact that sometimes FirefoxAdapter manages its own Sqlite connection and sometimes it doesn't. These will be addressed in a future patch. MozReview-Commit-ID: HF0oNCEDcFs --HG-- rename : services/common/kinto-offline-client.js => services/common/kinto-storage-adapter.js extra : rebase_source : 11d01e573b259798305494ac072575247ac01e2c |
||
---|---|---|
.. | ||
unit | ||
mach_commands.py | ||
moz.build | ||
run_storage_server.js |