Skip to content

Releases: vigour-io/brisky-base

Refactor internals

01 Apr 08:43

Choose a tag to compare

Api Changes

  • components and inject do not get parsed first (follows the order of the set object)
  • useVal is renamed to noReference
  • useVal can not be used as a set overwrite
  • mapProperty is renamed to property
  • renamed .__input to .val
  • removed .val getter
  • renamed .parseValue to .compute
  • uses stamp instead of event
  • removed array functionality for references [ '$' , 'a', 'b' ]
  • added parity with subscription to reference shortcut string notation $.a, $root.a and $.parent.a
  • removed ":" detection in .property by default, it is easier to overwrite .property however
  • contextGetters do not walk the parent chain
  • do not have to use hasOwnProperty for _Constructor and _parent anymore
  • path is immutable -- does not alter context of parents etc
  • removed syncPath -- use realPath with second argument (memoize) true
  • clearKeys requires a target -- will not clear all "keyLists" by default
  • keys are integrated in base directly
  • removed keyList property
  • path is now a method instead of a getter

Performance

  • most functionalities are around 15x faster
  • optimised all hot-code-paths
  • creating nested objects got 30x faster
  • removed all hasOwnProperty checks

Structure

  • split up most files
  • full es6
  • removed ambiguous property file -- now located in set/property/definition
  • added more tests
  • removed unused methods