v0.3.0
Pre-release
Pre-release
- Added
IndexedDBEngineengine. - A Bunch of new operators for filtering and updating have been added to engines. Read the docs and see EngineHelper.test.ts for examples.
Breaking changes
Soukai.withEnginehas been removed in favor ofSoukai.requireEngine.- Some method signatures have changed in the
Engineinterface. Check out those changes here. - Model relations have been refactored to better reflect the nature of non-relational databases. Related model instances are now stored in the Relation instance, which is exposed in
{relation-name}Relation. Relation definitions have also been renamed to use local/foreign nomenclature. Read the docs and see relations.test.ts for examples. - Models hydration has been extracted and refactored into multiple protected methods:
createFromEngineDocument,toEngineDocument,getDirtyEngineDocumentUpdates,syncDirty,cleanDirty, etc.