- Fix
bindwarning when usingStoreWatchMixinwithcreateClass(#140)
- Update
StoreWatchMixinto support ES6 classes (#135)
- Relax restrictions on Lodash version (#128)
- Add
Flux#getAllStores()to retrieve all currently registered stores (#127)
- Add
Flux#setDispatchInterceptorto wrap or replace dispatch functionality (#100, #92)
- Fix incompatibility with Lodash 3.9.0
- Use built-in inherits instead of npm package (#116)
- Upgrade to Lo-Dash 3.x
- Fix minor typo in mixin warnings
- Watch stores in
componentDidMountinstead ofcomponentWillMountto make it harder to leak memory on the server
Additions/Non-Breaking Changes
- You can add stores and actions to existing Flux instances via
addStore,addStores,addAction, andaddActions(#68, #71, #77) Fluxinstances are now EventEmitters, and emit a"dispatch"event (withtypeandpayloadarguments) when an action callsthis.dispatch(type, payload), useful for cross-cutting concerns like loggingStore#bindActionsnow takes a hash (similar to the staticactionshash) in addition to an argument list (#51, #78)- Fluxxor will throw more descriptive errors in many situations that are obviously incorrect (for example, when an action handler is not defined, or an action type in
bindActionsis falsy)
Deprecations
Fluxxor.FluxChildMixinis now deprecated; instead, useFluxMixinanywhere you want access togetFlux()(#59)
- Throw an error when binding to a falsy action type (#50)
- Reduce npm package size with
.npmignore(#65) - Warn if a dispatch is not handled by any store (#66)
- Reduce file size slightly by using EventEmitter3 instead of Node.js
eventsmodule
- Reduce file size by generating a smaller version file (#63) and using inherits package (#64)
- Action generating methods (methods in the
actionsparameter to theFluxxor.Fluxconstructor) can access theFluxinstance viathis.flux.
- Ensure component is mounted before setting state in in StoreWatchMixin
- Fix Bower versioning
- Add support for namespaced actions
- Maintain references to stores on Flux object
- Throw when dispatching a value without a
typeproperty
- Allow synchronous back-to-back dispatches
- Gracefully handle exceptions in action handlers
- Add hasOwnProperty(key) checks throughout codebase
- Add Bower support
- Fix compilation when using webpack (#9)
- Reduce bundle size by 40%
- Add
FluxChildMixinto access flux on child components - Use
getFlux()to access flux with eitherFluxMixinorFluxChildMixin
- Documentation updates
- Throw when mixing
StoreWatchMixinin without calling it as a function
First stable release