redux-cycles
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "redux-cycles", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Bring functional reactive programming to Redux using Cycle.js", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
@@ -1,9 +0,9 @@ | ||
# Redux-cycle-middleware | ||
# Redux-cycles | ||
Handle redux async actions using [Cycle.js](https://cycle.js.org/). | ||
[![Build Status](https://travis-ci.org/cyclejs-community/redux-cycle-middleware.svg?branch=master)](https://travis-ci.org/cyclejs-community/redux-cycle-middleware) | ||
[![Build Status](https://travis-ci.org/cyclejs-community/redux-cycles.svg?branch=master)](https://travis-ci.org/cyclejs-community/redux-cycles) | ||
## Install | ||
`npm install --save redux-cycle-middleware` | ||
`npm install --save redux-cycles` | ||
@@ -13,3 +13,3 @@ Then use `createCycleMiddleware()` which takes as first argument your `main` Cycle.js function, and second argument the Cycle.js drivers you want to use: | ||
```js | ||
import { createCycleMiddleware } from 'redux-cycle-middleware'; | ||
import { createCycleMiddleware } from 'redux-cycles'; | ||
@@ -38,3 +38,3 @@ function main(sources) { | ||
See a real world example: [cycle autocomplete](https://github.com/lmatteis/redux-cycle-middleware/blob/master/example/cycle/index.js). | ||
See a real world example: [cycle autocomplete](https://github.com/cyclejs-community/redux-cycles/blob/master/example/cycle/index.js). | ||
@@ -81,3 +81,3 @@ ## What is this? | ||
Redux-cycle-middleware ships with two drivers: | ||
Redux-cycles ships with two drivers: | ||
@@ -109,3 +109,3 @@ * `ACTION`, which is a read-write driver, allowing to react to actions that have just happened, as well as to dispatch new actions. | ||
Redux-cycle-middleware ships with a combineCycles util. As the name suggests, it allows you to take multiple cycle apps (main functions) and combine them into a single one. | ||
Redux-cycles ships with a combineCycles util. As the name suggests, it allows you to take multiple cycle apps (main functions) and combine them into a single one. | ||
@@ -115,3 +115,3 @@ ### Example | ||
```javascript | ||
import { combineCycles } from 'redux-cycle-middleware'; | ||
import { combineCycles } from 'redux-cycles'; | ||
@@ -131,7 +131,7 @@ // import all your cycle apps (main functions) you intend to use with the middleware: | ||
You can see it used in the provided [example](https://github.com/lmatteis/redux-cycle-middleware/blob/master/example/cycle/index.js). | ||
You can see it used in the provided [example](https://github.com/cyclejs-community/redux-cycles/blob/master/example/cycle/index.js). | ||
## Testing | ||
Since your main Cycle functions are pure dataflow, you can test them quite easily by giving streams as input and expecting specific streams as outputs. Checkout [these example tests](https://github.com/lmatteis/redux-cycle-middleware/blob/master/example/cycle/test/test.js). Also checkout the [cyclejs/time](https://github.com/cyclejs/time) project, which should work perfectly with redux-cycle-middleware. | ||
Since your main Cycle functions are pure dataflow, you can test them quite easily by giving streams as input and expecting specific streams as outputs. Checkout [these example tests](https://github.com/cyclejs-community/redux-cycles/blob/master/example/cycle/test/test.js). Also checkout the [cyclejs/time](https://github.com/cyclejs/time) project, which should work perfectly with redux-cycles. | ||
@@ -138,0 +138,0 @@ ## Why not just use Cycle.js? |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10590