Skip to content

Releases: Widdershin/cycle-restart

Support Cycle Unified

30 May 02:22
Compare
Choose a tag to compare

Breaking changes:

You must now pass setup as the first argument to both restart and rerunner.

import {setup} from '@cycle/run';
import {makeDOMDriver} from '@cycle/dom';
import {makeHTTPDriver} from '@cycle/http';

import {rerunner, restartable} from 'cycle-restart';

import app from './src/app';

const makeDrivers = () => ({
  DOM: restartable(makeDOMDriver('.app'), {pauseSinksWhileReplaying: false}),
  HTTP: restartable(makeHTTPDriver())
});

let rerun = rerunner(setup, makeDrivers);
rerun(app);

if (module.hot) {
  module.hot.accept('./src/app', () => {
    const newApp = require('./src/app').default;

    rerun(newApp);
  });
}

Support Cycle Diversity

30 May 02:21
Compare
Choose a tag to compare

v0.0.14

13 Mar 05:38
Compare
Choose a tag to compare

#46 - Add rerun function, thanks to @edge

rerun provides a simpler interface on top of run and restart.

v0.0.13

03 Mar 22:29
Compare
Choose a tag to compare

#39 - Log an error to console when a stream to replay is missing! Thanks to @ronag

v0.0.5

19 Jan 03:48
Compare
Choose a tag to compare

#24 - Support read-only and write-only drivers