sententiaregum-flux-container
Version:
The flux implementation of the sententiaregum project based on facebook/flux
75 lines (56 loc) • 1.72 kB
Markdown
__NOTE:__ please refer to the docs for new features.
- [minor] dropped support for deep equal check (many interactions need ALWAYS a refresh, so this check was useless and lead to dirty hacks)
- [bug] old state should be always refreshed
## 2.1.0
- [feature] [#34] added `subscribe()` as a shortcut with `auto-curry` to simplify store configuration (see the new [store docs](https://github.com/Sententiaregum/flux-container/blob/master/docs/api/stores.md))
- [breaking] [#34] removed `params` and validation, use the ES6 object syntax instead:
__BEFORE:__
``` javascript
// src/stores/handlers/anyHandler.js
export default (foo, bar) => {};
```
__AFTER:__
``` javascript
// src/stores/handlers/anyHandler.js
export default ({ foo, bar }) => {};
```
- [feature] [
- [feature] [
- [improvement] [
__BEFORE:__
``` javascript
// src/actions/anyAction.js
export default publish => {
function firstAction(...args) {
publish(args);
}
function secondAction(...args) {
publish(args);
}
return {
[]: firstAction,
[]: secondAction
};
};
```
__AFTER:__
``` javascript
// src/actions/anyAction.js
export default () => {
function firstAction(publish, ...args) {
publish(args);
}
function secondAction(publish, ...args) {
publish(args);
}
return {
[]: firstAction,
[]: secondAction
};
};
```
- [bug] [
- [minor] fixed appveyor