2.0.0 (2020-03-23)
- Use ember-auto-import to import Dexie
- Update dependencies to latest
- Update to using ES6 classes and decorators (Octane)
- Drop support for Ember versions <3.13
- Replace the
ModelBulkSave
mixin with a newModelBulkSaver
utility class:
import Model from '@ember-data/model';
import { ModelBulkSaver } from 'ember-indexeddb/utils/model-bulk-saver';
import { inject as service } from '@ember/service';
export default class extends Model {
@service indexedDb;
modelBulkSaver = new ModelBulkSaver(this);
}
// Use it later...
model.modelBulkSaver.saveBulk();
The mixin remains for now, but is deprecated.