Skip to content

v0.3.0

Pre-release
Pre-release

Choose a tag to compare

@NoelDeMartin NoelDeMartin released this 17 Jul 14:01
  • Added IndexedDBEngine engine.
  • 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.withEngine has been removed in favor of Soukai.requireEngine.
  • Some method signatures have changed in the Engine interface. 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.