- Use built-in inherits instead of npm package (#116)
- Upgrade to Lo-Dash 3.x
- Fix minor typo in mixin warnings
- Watch stores in
componentDidMount
instead ofcomponentWillMount
to 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) Flux
instances are now EventEmitters, and emit a"dispatch"
event (withtype
andpayload
arguments) when an action callsthis.dispatch(type, payload)
, useful for cross-cutting concerns like loggingStore#bindActions
now takes a hash (similar to the staticactions
hash) 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
bindActions
is falsy)
Deprecations
Fluxxor.FluxChildMixin
is now deprecated; instead, useFluxMixin
anywhere 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
events
module
- Reduce file size by generating a smaller version file (#63) and using inherits package (#64)
- Action generating methods (methods in the
actions
parameter to theFluxxor.Flux
constructor) can access theFlux
instance 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
type
property
- 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
FluxChildMixin
to access flux on child components - Use
getFlux()
to access flux with eitherFluxMixin
orFluxChildMixin
- Documentation updates
- Throw when mixing
StoreWatchMixin
in without calling it as a function
First stable release