Skip to content

Releases: lsm/alfa

0.7.0 (2019/04/09)

10 Apr 04:15
@lsm lsm

Choose a tag to compare

  • [Breaking API] Replace Store.set(key, value, 'silent') with Store.merge.
    The internal silentVersion counter has been removed.
  • [New API] Add Store.reset for resetting store's internal data object.
  • [New Behaviour]
    • Provider now picks up the new data when it's being rerenderred.
      Children of Provider get rerenderred with new data.
    • Provider accepts multiple components as its children.
    • Subscribed/injected components could be used without Alfa
      which means without wrapping inside a alfa.Provider.

0.6.2 (2019/04/02)

10 Apr 04:09
@lsm lsm

Choose a tag to compare

  • Update dependencies.
  • Move all documentation into README.md.

0.6.1 (2018/11/12)

10 Apr 04:09
@lsm lsm

Choose a tag to compare

  • Allow set internal store silently.
  • Check the silentVersion of store when rendering.

0.6.0

21 Jun 06:49
@lsm lsm

Choose a tag to compare

  • [Breaking] Rename provide to inject.
  • [Breaking] Remove API createAlfa & createStore.
  • [Breaking] Rename app to provide.
  • [NEW] Add Provider as declarative API for provide.
  • Simplify implementations of inject and subscribe.
  • Rewrite action as a simple curry function.
  • Add more documentation and tests.

0.5.0

28 Jul 22:20
@lsm lsm

Choose a tag to compare

  • Bug fix for calling setState of unmounted component. 1a78750
  • Use null as input to get all original arguments of action call. f8b44c7
  • Bug fix for provide/subscribe when only keys are provided through static property of component. cd53ef2
  • Add top level API app() for binding root react component. 3b8467e
  • Support for calling actions in action. e7f8335
  • Bug fix for not, optional and boolean value pipes. 9a60144
  • Predefined output keys is required for calling set. Map dynamic keys to its real key value. 6ca202c

0.4.2

28 Jul 22:18
@lsm lsm

Choose a tag to compare

  • Support dynamically inject props based on the return of Component.keys(props).
  • Support output dynamic keys to the store using format realKey:$mappedKey
    where mappedKey is a key from the store which its value will be used as the
    key of the output.
  • Allow calling subscribe/provide without keys when Component.keys exists. 8abc242
  • Bug fix for dynamic output. 482a642
  • Only subscribe after componentDidMount. 98a4cac
  • Bug fix for incorrectly scoped subscription variables. 3058521

0.3.3

20 Jul 18:13
@lsm lsm

Choose a tag to compare

Implement error pipe.

0.3.2

20 Jul 18:12
@lsm lsm

Choose a tag to compare

When getting multiple keys from a store using store.get(keys) the result will not contain undefined value if the internal data object of store has no such property.
Always use store instance from context if it exists.

0.3.1

17 Jul 08:22
@lsm lsm

Choose a tag to compare

Fix a crash for provide/subscribe when required value is undefined.

0.3.0

17 Jul 08:23
@lsm lsm

Choose a tag to compare

The top level API set and get have been removed from this version to avoid
anti-pattern usage and confusion when multiple stores are involved. Full list of
changes see below:

  • [Breaking] Remove get from top level API.
  • [Breaking] Remove set from top level API.
    set can be retrived through provide or subscribe.
  • [Breaking] Function action doesn't work as getter anymore.
    All defined actions should be retrived from provide or subscribe.
  • [Breaking] Data injected from store always have higher priority than props.
    This makes the behavior of priority consistent between provide and
    subscribe.
  • Action now can use the correct store at execution time.
  • Call get() without argument returns shallow copy of the internal store.
  • Fix a bug in createAlfaProvidedComponent.
  • Add testing and CI facilities.