Comparing version 1.7.3 to 1.8.0
{ | ||
"name": "most", | ||
"version": "1.7.3", | ||
"version": "1.8.0", | ||
"description": "Monadic streams", | ||
@@ -5,0 +5,0 @@ "typings": "type-definitions/most.d.ts", |
@@ -16,2 +16,12 @@ ``` | ||
## Starting a new project? | ||
Strongly consider starting with [`@most/core`](https://github.com/mostjs/core). It is the foundation of the upcoming most 2.0, has [improved documentation](http://mostcore.rtfd.io/), new features, better tree-shaking build characteristics, and simpler APIs. Updating from `@most/core` to most 2.0 will be non-breaking and straightforward. | ||
## Using most 1.x already on an existing project? | ||
You can keep using most 1.x, and update to either [`@most/core`](https://github.com/mostjs/core) or most 2.0 when you're ready. See the [upgrade guide](https://mostcore.readthedocs.io/en/latest/upgrading-guide.html) for more information. | ||
## What is it? | ||
Most.js is a toolkit for reactive programming. It helps you compose asynchronous operations on streams of values and events, e.g. WebSocket messages, DOM events, etc, and on time-varying values, e.g. the "current value" of an <input>, without many of the hazards of side effects and mutable shared state. | ||
@@ -18,0 +28,0 @@ |
@@ -207,3 +207,3 @@ declare type SeedValue<S, V> = { seed: S, value: V }; | ||
recoverWith<B>(p: (a: B) => Stream<A>): Stream<A>; | ||
recoverWith<B, C>(p: (a: B) => Stream<C>): Stream<A | C>; | ||
multicast(): Stream<A>; | ||
@@ -403,3 +403,3 @@ | ||
export function recoverWith<A, B>(p: (a: B) => Stream<A>, s: Stream<A>): Stream<A>; | ||
export function recoverWith<A, B, C>(p: (a: B) => Stream<C>, s: Stream<A>): Stream<A | C>; | ||
export function throwError(e: Error): Stream<any>; | ||
@@ -406,0 +406,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
711933
240