Skip to content

Releases: Squareknot/marionette.state

v1.0.1

Choose a tag to compare

@ianmstew ianmstew released this 25 Jan 03:54

Commit Log

  • Added toJSON() proxy to underlying model, permitting State instance to be used as Mn view model in 2.x.

v1.0.0

Choose a tag to compare

@ianmstew ianmstew released this 12 Dec 20:26

Commit Log

  • 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 a model property in a Marionette view. (breaking)
  • syncEntityEvents() throws error when entity or bindings are not defined. (potentially breaking--silent error state raised to exception)

v0.4.1

v0.4.1 Pre-release
Pre-release

Choose a tag to compare

@ianmstew ianmstew released this 12 Dec 17:42

Commit Log

  • Bumped dependencies to latest Backbone and Underscore
  • Fixed Backbone global import not resolving when including Marionette.State via script tag

v0.4.0

v0.4.0 Pre-release
Pre-release

Choose a tag to compare

@ianmstew ianmstew released this 15 Sep 23:11

Commit Log

  • #syncEnityEvents passes { syncing: true } option to change handlers when called during a sync.
  • #attributes method returns clone of State attributes.
  • #previous proxies to underlying model #previous
  • #getChanged/#getPrevious underlying model proxy methods renamed to #changedAttributes/#previousAttributes (breaking)
  • 100% test coverage

v0.3.0

v0.3.0 Pre-release
Pre-release

Choose a tag to compare

@ianmstew ianmstew released this 09 Jul 16:46

Commit Log

  • API Improvements
    • Ability to override values in State#reset
    • preventDestroy option in initialization options
    • Renamed/privatized setState => _initState (breaking).
    • #getChanged proxies to model #changedAttributes.
    • #getPrevious proxies to model #previousAttributes.
    • #hasAnyChanged tests whether any of a list of attributes exists in model changed.
    • #bindComponent adds an additional component binding similar to initial option component.
    • #unbindComponent reverses component binding.
    • State now proxies model events.
    • #syncEntityEvents returns a syncing handle with "stop syncing" ability.
  • 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

v0.2.3 Pre-release
Pre-release

Choose a tag to compare

@ianmstew ianmstew released this 15 Apr 21:31

Commit Log

  • Fixed 'true' not working with mapOption

v0.2.2

v0.2.2 Pre-release
Pre-release

Choose a tag to compare

@ianmstew ianmstew released this 01 Apr 00:39

Commit Log

  • Fixed require dependency issue

v0.2.1

v0.2.1 Pre-release
Pre-release

Choose a tag to compare

@ianmstew ianmstew released this 01 Apr 00:13

Commit Log

  • Fixed npm dependency issue

v0.2.0

v0.2.0 Pre-release
Pre-release

Choose a tag to compare

@ianmstew ianmstew released this 31 Mar 22:13

Commit Log

  • 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

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@ianmstew ianmstew released this 18 Feb 06:01

Commit Log

  • Initial release
  • Marionette.StateService
    • Container for component state logic
    • Maintains a state model to be used within component