Skip to content

Releases: cujojs/most

1.3.0: Add skipAfter

27 Apr 14:58
Compare
Choose a tag to compare
  • Add skipAfter to skip all events after a predicate becomes true.

1.2.3: Fix take double dispose

20 Apr 12:00
Compare
Choose a tag to compare
  • Fix end condition where take, slice, and takeWhile disposed their underlying sources twice. (#426)
  • Loosen TypeScript type constraint for fromEvent so it can be used with EventEmitter in addition to DOM events. (#410)

1.2.2: Handle synchronous exceptions from foreign Observables

12 Feb 22:30
Compare
Choose a tag to compare
  • 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

16 Jan 21:27
Compare
Choose a tag to compare
  • Remove accidental let in ES5 + ES import src, which caused errors in webpack tree-shake builds

1.2.0: Improve iterable support

13 Jan 01:06
Compare
Choose a tag to compare
  • 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)).
  • Deprecate some function/method aliases:
    • await - use awaitPromises
    • switch - use switchLatest
    • flatMap - use chain
    • flatMapEnd - use continueWith
    • flatMapError - use recoverWith
    • distinct - use skipRepeats
    • distinctBy - use skipRepeatsWith
    • takeUntil - use until
    • skipUntil - use since

1.1.1: Fix observable unsubscribe race

01 Dec 16:47
Compare
Choose a tag to compare
  • 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

12 Nov 02:17
Compare
Choose a tag to compare

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

03 Nov 01:31
Compare
Choose a tag to compare
  • 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

08 Sep 16:19
Compare
Choose a tag to compare
  • 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

07 Sep 18:40
Compare
Choose a tag to compare