@ambientlight/bs-rx
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "@ambientlight/bs-rx", | ||
"namespace": false, | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"sources": [ | ||
@@ -6,0 +6,0 @@ { |
{ | ||
"name": "@ambientlight/bs-rx", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "bucklescript bindings for RxJs v7", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -13,8 +13,8 @@ [![STATUS](https://github.com/ambientlight/bs-rx/workflows/Deploy%20Docs/badge.svg)](https://github.com/ambientlight/bs-rx/actions) | ||
``` | ||
npm install @ambientlight/bs-rx reason-promise | ||
npm install @ambientlight/bs-rx reason-promise bs-fetch | ||
``` | ||
[reason-promise](https://github.com/aantron/promise) is a peer dependency | ||
[reason-promise](https://github.com/aantron/promise) and [bs-fetch](https://github.com/reasonml-community/bs-fetch) are peer dependencies | ||
Then add `@ambientlight/bs-rx` (and `reason-promise`) into `bs-dependencies` in your project `bsconfig.json`. | ||
Then add `@ambientlight/bs-rx` (and `reason-promise`, `bs-fetch`) into `bs-dependencies` in your project `bsconfig.json`. | ||
@@ -61,3 +61,3 @@ | ||
```reason | ||
fromFetch(`String("https://api.github.com/users?per_page=5"), ()) | ||
Rx.Fetch.fromFetch(`String("https://api.github.com/users?per_page=5"), ()) | ||
|> Rx.Operators.mergeMap(`Promise((response, _idx) => response |> Fetch.Response.json)) | ||
@@ -64,0 +64,0 @@ |> Rx.Observable.subscribe( |
Sorry, the diff of this file is not supported yet
256163