Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmatteis committed Feb 13, 2017
1 parent 8710c66 commit 38e5eb5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 0.3.0 - 2017-02-13

**BREAKING CHANGES**
- `createCycleMiddleware()` no longer takes any arguments. Instead you need to call `Cycle.run` yourself (which can be installed via `npm i -s @cycle/xstream-run`) passing it your `main` function and `drivers` explicitly:

```diff
+import {run} from '@cycle/xstream-run';

-const cycleMiddleware = createCycleMiddleware(main, drivers);
+const cycleMiddleware = createCycleMiddleware();
+const { makeActionDriver, makeStateDriver } = cycleMiddleware;

const store = createStore(
rootReducer,
applyMiddleware(cycleMiddleware)
);

+run(main, {
+ ACTION: makeActionDriver(),
+ STATE: makeStateDriver()
+})
```

`createCycleMiddleware()` apart from returning the middleware function, also has two function properties attached to it; namely the `makeActionDriver()` and the `makeStateDriver()` which you can use accordingly when you call `Cycle.run`.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-cycles",
"version": "0.2.3",
"version": "0.3.0",
"description": "Bring functional reactive programming to Redux using Cycle.js",
"main": "dist",
"files": [
Expand Down

0 comments on commit 38e5eb5

Please sign in to comment.