- Added shutdown behavior to
streamWrapper
that allows graceful shutdown of app #26
- Fixed corrupting initial state type in TanokInReact
- Check for return value of effect,
flatMap
it only if it's Promise or Observable. - Fixes to
TanokInReact
HOC
- Removed
effectBus
as it is actually not needed - Fixed name collision in
on
decorator
- All effects are passed through one effects bus, this allows effect cancelation
- Fixed
TanokDispatcher
inheritance bug, which caused multiple call ofinit
tanok
function now also returnsstreamWrapper
andshutdown
function, that allows graceful shutdown of your tanok instance- Extracted
makeStreamState
andstreamWithEffects
out oftanok
function. - Added new React HOC
TanokInReact
which allows to run complete tanok app inside simple React component - Dropped
create-react-class
package in favor of React.Component class-based Root - Using
es2015-loose
preset for building tanok
- Create less files in rollup build, as most of them are never used as separate things
- Renamed
effectWrapper
tochildFx
- Grouped all built-in effects in
fxs.js
- Moved
TanokDispatcher
base class out ofcore.js
module
- Field
StreamWrapper.parent
was renamed toStreamWrapper.streamName
in and in messages thatStreamWrapper.send
pushes to stream - Removed
meta
parameter fromStreamWrapper.send
, now it is passed toTanokComponent.sub(name, metadata)
- Signature for
effectWrapper
is also changed and now can get metadata to pass it to dispatcher
- Updated rollup version for building
- Changed react peerDependency to
*