Skip to content

Releases: zzyzxlab/tao.js

Remove console.logs + useTaoContext hook

31 Mar 08:47
Compare
Choose a tag to compare

0.13.0 (2021-03-17)

Features

  • hooks: added useTaoContext hook to get the TAO network (d97db2a)

Other

  • debug: refactored to push console.log of internals to a debug flag

Fixes Source and Socket.io

03 Mar 02:31
Compare
Choose a tag to compare

0.12.1 (2021-03-03)

Bug Fixes

  • deps: fixed peer deps across @tao.js packages (dd498b9)
  • source: bug in utils.Source preventing chained ACs from the source (09659f9), closes #29

React Hooks + goodies

24 Feb 07:15
Compare
Choose a tag to compare

0.12.0 (2021-02-24)

Features

  • koa: simpleMiddleWare for koa (92674d9), closes #23
  • react-hooks: implemented hooks for react 16.8+ to use with tao.js (f505060), closes #26
  • Transceiver: transceiver provides more control over promise conversion of signals (f6e5959), closes #22 #24

Bug Fixes

24 Feb 07:14
Compare
Choose a tag to compare

0.11.1 (2020-06-28)

Bug Fixes

  • koa: add new index.js to import tao-http-middleware.js (8ef8cbd)
  • koa: fixed koa middleware to use Channel + Transponder (84a0cba)

Transponder and Channel refactor

27 Jun 19:51
Compare
Choose a tag to compare

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 and cloneId 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 other Network implementations to attach promise (ebc2e62), closes #21

BREAKING CHANGES

  • Transponder: Transponder no longer implements Kernel 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

11 Aug 23:02
Compare
Choose a tag to compare

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 Transponders 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

03 Jun 06:26
Compare
Choose a tag to compare

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

  • package: rollup build for @tao.js/react package (4785f86)
  • package: rollup build for tao-router complete (CJS + ESM) (94faa45)
  • package: rollup build for tao-socket-io (UMD, CJS and ESM) (6f8e7c2)
  • package: working 3 diff builds (ESM, CommonJS + UMD) for core package (76396bf)

New React API

19 May 17:01
Compare
Choose a tag to compare

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 to Components below
  • RenderHandler - add TAO handlers declaratively as Components for rendering visual Components into the DOM tree
  • SwitchHandler - add TAO handlers declaratively as Components to determine what to render into the DOM tree
  • withContext HOC - wrap a Component in context to use a TAO handler to retrieve state/data
  • DataHandler - add TAO handlers declaratively as Components 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

22 Oct 06:57
Compare
Choose a tag to compare

Needed to publish again to fix a README bug + add related packages to READMEs of all packages

Package READMEs + Router patch

22 Oct 06:56
Compare
Choose a tag to compare

0.6.1 (2018-10-22)

Features

  • Router: moved Add.attach + Remove.detach from Configure-only support to any Add/Remove context (f216b37)