Releases: Squareknot/marionette.state
Releases · Squareknot/marionette.state
Release list
v1.0.1
v1.0.0
sync()method elevated to Functions API to enable finer-grained synchronization use cases.attributes()method removed in favor of ES5 property proxy to underlying model.attributes. This enables a State instance to be used directly as amodelproperty in a Marionette view. (breaking)syncEntityEvents()throws error whenentityorbindingsare not defined. (potentially breaking--silent error state raised to exception)
v0.4.1
- Bumped dependencies to latest Backbone and Underscore
- Fixed Backbone global import not resolving when including Marionette.State via script tag
v0.4.0
#syncEnityEventspasses{ syncing: true }option to change handlers when called during a sync.#attributesmethod returns clone of State attributes.#previousproxies to underlying model#previous#getChanged/#getPreviousunderlying model proxy methods renamed to#changedAttributes/#previousAttributes(breaking)- 100% test coverage
v0.3.0
- API Improvements
- Ability to override values in
State#reset preventDestroyoption in initialization options- Renamed/privatized
setState=>_initState(breaking). #getChangedproxies to model#changedAttributes.#getPreviousproxies to model#previousAttributes.#hasAnyChangedtests whether any of a list of attributes exists in modelchanged.#bindComponentadds an additional component binding similar to initial optioncomponent.#unbindComponentreverses component binding.- State now proxies model events.
#syncEntityEventsreturns a syncing handle with "stop syncing" ability.
- Ability to override values in
- Removed State.Behavior in favor of simpler, more explicit API (breaking)
- Documentation overhaul
- Expanded examples dealing with increasing levels of architectural complexity
- More concise API documentation
- Reduced call stack for
#syncEntityEvents. - Tests for
#syncEntityEvents - Converted build stack to babel+browserify.
v0.2.3
- Fixed 'true' not working with mapOption
v0.2.2
- Fixed require dependency issue
v0.2.1
- Fixed npm dependency issue
v0.2.0
- Renamed to concise Marionette.State
- API changes and improvements, especially to initialization options
- Introduced State.Behavior to seamlessly integrate state management with a view
- Introduced State.syncEntityEvents to powerfully synchronize state with other enities
v0.1.0
- Initial release
- Marionette.StateService
- Container for component state logic
- Maintains a state model to be used within component