Releases: zzyzxlab/tao.js
Remove console.logs + useTaoContext hook
Fixes Source and Socket.io
React Hooks + goodies
Bug Fixes
Transponder and Channel refactor
0.11.0 (2020-06-27)
Bug Fixes
- fluent: Channel & Transponder in utils was not returning
this
for fluent chaining of handlers l (df35d6b) - Network: prevent same middleware from being added multiple times (d06913f)
Features
- Channel:
id
andcloneId
params can now take a function used to generate channel ID (72fb205) - Channel: implements elements of
Network
interface (68164a5) - Transponder:
Transponder
is now composable to otherNetwork
implementations to attach promise (ebc2e62), closes #21
BREAKING CHANGES
- Transponder:
Transponder
no longer implementsKernel
interface of add/remove handlers - To get the pre-existing behavior create a Channel and pass that to the Transponder constructor
Signal Network refactor + extensions in @tao.js/utils
0.9.0 (2019-08-11)
Big changes as @tao.js/core
's Kernel
was refactored underneath to delegate to
Network
allowing the additions of Channel
, Source
and Transponder
s in the
new @tao.js/utils
package to control the flow of signals through the network
using control
data.
The interface for Kernel
goes unchanged and the other signal network extensions
from @tao.js/utils
implement the same interface, so there is no affect on clients.
These signal network extensions (and any subsequent ones) are to be used to implement
signal networks apart from the client code that uses the network, allowing more
effective ways to integrate the signal network(s) with different technologies
behind the scenes like socket.io (improved) and http (via koa for now).
Also introduced in this release is the @tao.js/koa
package which exposes the
Signal Network using an http endpoint.
Features
- koa: koa integration to provide middleware for signal network as an http interface (079cdb5)
- network: refactor + creation of Network, Channel and Source (ad392a0)
- RenderHandler: new refreshOn prop allows trigrams for refreshing the render that won't affect (0428858)
- seive: new seive used by Channel allows controlled bridging (c916870)
- Transponder: utils adds Transponder for handling promises (311f738)
BREAKING CHANGES
- Transponder: Source's ctor changed the order of the params, making fromSrc optional
DEPRECATION NOTICE
- Kernel.asPromiseHook(…) will be deprecated in favor of Transponder from
@tao.js/utils
Rollup Builds
0.8.1 (2019-06-03)
Using rollup js to build packages now offering 3 different builds:
- ES Modules
- CommonJS
- UMD
Note: 0.8.0 was published and unpublished to npmjs so is not available
Bug Fixes
- cra: change patois.web cra from using yarn -> npm (e81f43b)
- dep: import createBrowserHistory in ESM way (9cb6d32)
Features
New React API
0.7.0 (2019-05-19)
Brand new components for the @tao.js/react
package to offer a React-like programming experience. See the updated docs for Using with React.js.
New Components are:
Provider
- provides TAO in context toComponent
s belowRenderHandler
- add TAO handlers declaratively asComponent
s for rendering visualComponent
s into the DOM treeSwitchHandler
- add TAO handlers declaratively asComponent
s to determine what to render into the DOM treewithContext
HOC - wrap aComponent
in context to use a TAO handler to retrieve state/dataDataHandler
- add TAO handlers declaratively asComponent
s to retrieve shared state/data from AppCons
Bug Fixes
- createContextHandler: handler precondition check allows passing null/undefined which works w be (e65c2cf)
- Provider: ensure @tao.js/react/Provider's TAO is required and a @tao.js/core/Kernel (a8ce457)
- RenderHandler: include prop type for context as string or array of strings (baa6fba)
Features
- createContextHandler: passing undefined or null to the handler function will reset the data fo (78aee3f)
- createContextHandler: updates to createContextHandler for consistent application of documented (b882630)
- Data/ContextHandler: react DataHandler (or ContextHandler?) working implementation & with Rend (7f6c2b8)
- react: createContextHandler and withContext HOC + changes to DataHandler (b3a2827)
- RenderHandler: working version of RenderHandler (8a0eaee)
- SwitchHandler: react SwitchHandler component will switch between RenderHandlers that listen on (12d0d62)
- withContext: tested working withContext HOC for react package (44c2890)
Package README updates
Needed to publish again to fix a README bug + add related packages to READMEs of all packages