- Added support for
UNSAFE_componentWillReceiveProps
lifecycle method
- Upgrade
fbemitter
dependency to 3.x
- Upgrade
fbjs
dependency to ^3.x - Upgrade for Babel 7 compatibility (#495) (thanks to @koba04)
- Added React 17 as a peer dependency
- Added support for React 16
- No meaningful changes.
- No meaningful changes.
Dispatcher
: Methodsregister
andunregister
can once again be called in the middle of a dispatch.
FluxMapStore
: Removed. It added very little value overFluxReduceStore
.FluxContainer
: Subscriptions are setup in constructor rather thancomponentDidMount
FluxContainer
: Can create containers using stateless functional componentsFluxContainer
: Uses functional version ofsetState
FluxMixin
: Subscriptions are setup incomponentWillMount
rather thancomponentDidMount
Dispatcher
: Methodsregister
andunregister
can not be called in the middle of a dispatchReact
added as peer dependency toflux/utils
- Package
dist/FluxUtils.js
alongsidedist/Flux.js
Note: This is marked as a breaking change due to the large number of small
changes in FluxContainer
. Depending on how coupled code is to the timing of
componentWillMount
, componentDidMount
, or setting state synchronously it is
possible that there may be some breakages. Generally it should not be an issue.
- Publish
dist/
on npm
- Add flux-utils which include four main base classes:
Store
,ReduceStore
,MapStore
,Container
- Add flux-utils example and documentation
- Upgrade build script
- Publish a minified version of
Flux
indist/
- Add flow types to
Dispatcher