Skip to content

0.8.0

Compare
Choose a tag to compare
@bpatram bpatram released this 03 Apr 01:54
· 223 commits to master since this release

Changes

  • General performance improvements, refactored HasMany.onChange to eliminate unnecessary events.
  • Implemented the add, merge and remove options on Collection.add when working with RelationalModels. This also works when using set to change the key on nested relations.
  • findOrCreate now takes a parse option, analogous to the Backbone.Model constructor. It defaults to false
  • Added a parse option to relations

Breaking Changes

  • The update:<key> event has been removed, in favor of handling everything using "standard" change:<key> events.
  • The update option on findOrCreate has been renamed to merge, since its behavior corresponds with merge on Collection.add (and not with update on Collection.reset).