Releases: lsm/alfa
Releases · lsm/alfa
0.7.0 (2019/04/09)
- [Breaking API] Replace
Store.set(key, value, 'silent')withStore.merge.
The internalsilentVersioncounter has been removed. - [New API] Add
Store.resetfor 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.
- Provider now picks up the new data when it's being rerenderred.
0.6.2 (2019/04/02)
- Update dependencies.
- Move all documentation into README.md.
0.6.1 (2018/11/12)
- Allow set internal store silently.
- Check the
silentVersionof store when rendering.
0.6.0
- [Breaking] Rename
providetoinject. - [Breaking] Remove API
createAlfa&createStore. - [Breaking] Rename
apptoprovide. - [NEW] Add
Provideras declarative API forprovide. - Simplify implementations of
injectandsubscribe. - Rewrite
actionas a simple curry function. - Add more documentation and tests.
0.5.0
- Bug fix for calling
setStateof unmounted component. 1a78750 - Use
nullas input to get all original arguments of action call. f8b44c7 - Bug fix for provide/subscribe when only
keysare 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,optionalandbooleanvalue pipes. 9a60144 - Predefined output keys is required for calling set. Map dynamic keys to its real key value. 6ca202c
0.4.2
- Support dynamically inject props based on the return of
Component.keys(props). - Support output dynamic keys to the store using format
realKey:$mappedKey
wheremappedKeyis 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
0.3.2
0.3.1
0.3.0
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
getfrom top level API. - [Breaking] Remove
setfrom top level API.
setcan be retrived throughprovideorsubscribe. - [Breaking] Function
actiondoesn't work as getter anymore.
All defined actions should be retrived fromprovideorsubscribe. - [Breaking] Data injected from store always have higher priority than props.
This makes the behavior ofpriorityconsistent betweenprovideand
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.