The base Entity class has been deprecated in favor of a DocumentMixin combined with AbstractBaseDocument class definitions.
The concept of
Entity#_data which was implemented in
0.7.x as a way to store the base data associated with an Entity class has been removed in favor of incorporating the
_source object into the
AbstractBaseData instance that each document contains.
Entity#collection formerly returned a
DocumentCollection instance, but in order to standardize with the symmetric server-side model this property now only returns the collection name.
Entity#parentCollection is now required to access the parent collection instance.
Entity.update(data, options) has been deprecated in favor of
DocumentCollection#update(data, options). Backwards-compatible support will be preserved until 0.9.0.
Entity.delete(ids, options) has been deprecated in favor of
DocumentCollection#delete(ids, options). Backwards-compatible support will be preserved until 0.9.0.
Data preparation has been standardized across all document types. If you were previously defining the
prepareData method for an Entity type, you need to look closely at the default behavior of
DocumentMixin#prepareData. It is critical to either call
super.prepareData() when extending this method OR to move your extensions to
prepareDerivedData() method which runs after other preparation steps.
Assignment of a document subclass implementation was previously performed as
CONFIG[documentName].entityClass. This assignment is now performed as
CONFIG[documentName].documentClass. Support for the old assignment will be preserved until 0.9.0.