Skip to content

Releases: magalhas/backbone-react-component

v0.10.0

06 Nov 05:45
Compare
Choose a tag to compare

Major

  • React v0.14

v0.9.0

26 Jul 18:35
Compare
Choose a tag to compare

Major

  • Plug and play static on, onModel, onCollection and off methods for fine grained control over model/collection bindings (#65, #77)

Minor

  • Usage of Backbone.Collection#update event instead of #add and #remove (#82)
  • Update to Backbone v1.2.0, React v0.13.3 and Underscore v1.8.3

v0.8.1

22 Apr 03:22
Compare
Choose a tag to compare

Bug fixes

  • Performance improvements by deferring @setState calls

v0.8.0

16 Mar 15:50
Compare
Choose a tag to compare

Breaking changes

  • React v0.13
  • Internally @setState will be always used instead of @setProps, so you're model/collections data will be available under @state (#36, #54)
  • @getModel and @getCollection no longer crawls the dirty _owner reference (which will be removed on incoming React release), instead they are able to grab the model and collection instances through @context (new React feature)
  • When passing a single model, the JSON representation will be available under @state.model instead of directly into @state
  • New @overrideModel and @overrideCollection methods to programatically override a model/collection in a component. This is useful for use cases such as react-router (#60)

Minor

  • Listen to Backbone.Model#invalid event (#53)
  • @$ now fallbacks to DOM's querySelector if jQuery is not present

Bug fixes

  • Allow to change collection/model references (#29) (by filtering @componentWillReceiveProps)