Skip to content

Releases: vigetlabs/microcosm

Version 1.0.0

23 Mar 20:22
Compare
Choose a tag to compare

This version adds many breaking changes to better support other libraries such as Colonel Kurtz and Ars Arsenal.

In summary, these changes are an effort to alleviate the cumbersome nature of managing unique instances of Actions and Stores for each Microcosm instance. 1.0.0 moves away from this, instead relying on pure functions which an individual instance uses to operate upon a global state object.

  • Actions must now be tagged with microcosm/tag. For the time being, this is to provide a unique identifier to each Action. It would be nice in future versions to figure out a way to utilize WeakMap.
  • Stores are plain objects, no longer inheriting from Store base class.
  • Stores must implement a toString method which returns a unique id.
  • State for a store must now be accessed with: microcosm.get(Store)
  • Microcosms no longer require addActions, actions are fired with microcosm.send(Action, params)
  • Removed Microscope container component. Just use listen

0.2.0

19 Mar 13:09
Compare
Choose a tag to compare

Breaking changes

[remove] all() getter from Store. Children of Store should set their own getters

0.1.0

19 Mar 12:31
Compare
Choose a tag to compare

[change] Rename Heatbeat.prototype.beat to pump. Expose API for pump to Microcosm

0.0.2

19 Mar 12:34
Compare
Choose a tag to compare

Initial release