mydea / ember-indexeddb

Utilities & adapter to work with IndexedDB in ember & ember-data
https://mydea.github.io/ember-indexeddb/docs/
MIT License
17 stars 5 forks source link

Update to Dexie 3 #113

Closed mydea closed 4 years ago

mydea commented 4 years ago

See: https://github.com/dfahlander/Dexie.js/releases/tag/v3.0.0

Dexie 3 introduced some breaking changes. Mainly, it changes how DB migrations are handled:

Also, there are some changes to how querying works, which are adjusted to in this PR. This also introduces tests for the migration functionality, as well as for the different query types.

Finally, you can now also set _shouldLogQuery = true on the indexed-db service to make it output which index is used for a given query. This can be used to optimize your schema.

This PR also updates documentation accordingly (and moves to ES6 syntax everywhere).