Skip to content

0.4.0 Beta (2020-01-13)

Compare
Choose a tag to compare
@jrista jrista released this 13 Jan 18:50
· 142 commits to develop since this release

Introducing the @Entity decorator for model classes. This decorator provides custom naming capabilities,
the ability to filter which auto-entity pre-fab effects handle each model, as well as define a default
comparer for sorting entities retrieved with a new .sorted$ stream on pre-fab facades.

Features

  • decorators: Add @Entity decorator for models with modelName, pluralName, uriName properties (#70)
  • decorators: Add excludeEffects functionality to @Entity decorator for filtering which effects handle entity
  • decorators: Add comparer property to @Entity decorator to support selecting sorted entities (#58)
  • selectors: Add selectAllSorted selector that uses entity comparer to sort on selection (#58)
  • facades: Add sorted$ stream to return all entities in sorted order from selectAllSorted selector (#58)

Internal

  • decorators: Moved all decorators into internal /lib/decorators directory (will break direct imports, use public api!)

Bug Fix

  • selectors: Added additional falsy checks to all selectors to limit frequency of hard failures (#81)
  • decorators: Added modelName to @Entity decorator to allow explicit definition of model name immune to mangling by code minifiers (#81)