Releases: cujojs/most
Releases · cujojs/most
1.3.0: Add skipAfter
- Add skipAfter to skip all events after a predicate becomes true.
1.2.3: Fix take double dispose
1.2.2: Handle synchronous exceptions from foreign Observables
- Add defensive try/catch to handle errors when coercing foreign observables that might throw before their
subscribe
method returns.
1.2.1: Fix ES5 + ES module build
- Remove accidental
let
in ES5 + ES import src, which caused errors in webpack tree-shake builds
1.2.0: Improve iterable support
- Improve
from
's performance when dealing with non-Array Iterables - Deprecate
periodic
's 2nd arg.- The preferred way to provide a specific value is
constant(x, periodic(period))
.
- The preferred way to provide a specific value is
- Deprecate some function/method aliases:
await
- useawaitPromises
switch
- useswitchLatest
flatMap
- usechain
flatMapEnd
- usecontinueWith
flatMapError
- userecoverWith
distinct
- useskipRepeats
distinctBy
- useskipRepeatsWith
takeUntil
- useuntil
skipUntil
- usesince
1.1.1: Fix observable unsubscribe race
- Fix ES Observable unsubscribe race condition. Unsubscribe allowed a micro-turn before preventing new events. That allowed events to sneak through under certain conditions. Unsubscribe now synchronously prevents further events.
v1.1.0 Export defaultScheduler and PropagateTask
Publicly exports the default Scheduler instance, and a Task implementation PropagateTask
.
For users of TypeScript, the definition file has been updated to reflect these additions.
For third-party library developers you can now make the following changes.
- import defaultScheduler from 'most/lib/scheduler/defaultScheduler'
+ import { defaultScheduler } from 'most';
- import PropagateTask from 'most/lib/scheduler/PropagateTask'
+ import { PropagateTask } from 'most';
1.0.5: Improve fromEvent TS type
- Improve type of
fromEvent
to allow specific Event subtypes. Now, TS users can do:
// evaluates to Stream<MouseEvent>
const mouseEvents = fromEvent<MouseEvent>('mousemove', document.body)
See #350 for more info.
1.0.3: Add package.json module field
- Add package.json
module
field to support forward compat with ES module loading - Include src files in npm package for
jsnext:main
support - Remove unneeded bower.json dependency on when.js
v1.0.2
- Convert all imports and exports to ES2015 modules
- Provide
jsnext:main
field in package.json for next-gen bundlers like rollup and webpack 2 - Add missing
Stream.from
static method to fix ES Observable compatibility - Add static-land compatibility - https://github.com/mostjs-community/most-static-land