Skip to content

Commit 38e5eb5

Browse files
committed
0.3.0
1 parent 8710c66 commit 38e5eb5

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 0.3.0 - 2017-02-13
2+
3+
**BREAKING CHANGES**
4+
- `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:
5+
6+
```diff
7+
+import {run} from '@cycle/xstream-run';
8+
9+
-const cycleMiddleware = createCycleMiddleware(main, drivers);
10+
+const cycleMiddleware = createCycleMiddleware();
11+
+const { makeActionDriver, makeStateDriver } = cycleMiddleware;
12+
13+
const store = createStore(
14+
rootReducer,
15+
applyMiddleware(cycleMiddleware)
16+
);
17+
18+
+run(main, {
19+
+ ACTION: makeActionDriver(),
20+
+ STATE: makeStateDriver()
21+
+})
22+
```
23+
24+
`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`.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-cycles",
3-
"version": "0.2.3",
3+
"version": "0.3.0",
44
"description": "Bring functional reactive programming to Redux using Cycle.js",
55
"main": "dist",
66
"files": [

0 commit comments

Comments
 (0)