Skip to content

eventkit

0.3.1

Patch Changes

  • #9 3ea1105 Thanks @hntrl! - The bundle now inlines all types associated with async-observable. This fixes an issue where types would be missing when installing with certain package managers. There may be some conflict for projects that use both @eventkit/async-observable and @eventkit/base in the same project with this change, but this pattern should be avoided anyways.

  • #10 d1d5dca Thanks @hntrl! - Gave some TLC to the bundling process for each package. Each package bundle now contains sourcemaps for both cjs & esm builds, as well as a new index.global.js and index.global.min.js that is intended to be used with browser targets.

0.3.0

Minor Changes

  • #6 03fb5d1 Thanks @hntrl! - Introduces 10 new operators into eventkit: find, findIndex, first, isEmpty, last, max, min, pairwise, skip, and every. See the docs for a complete reference.

Patch Changes

  • #6 7b6dbb1 Thanks @hntrl! - Fixed some invariant behavior with the reduce operator where the chain of accumulator calls depending on the seed value wasn't consistent with the native array method

  • Updated dependencies []:

    • @eventkit/async-observable@0.3.0

0.2.0

Minor Changes

  • #4 1371b77 Thanks @hntrl! - Introduces SingletonAsyncObservable; a utility class for observables that lets you access the value emitted by observables that emit one (and only one) value (like the observables returned from reduce(), count(), etc.) using native await syntax.

    This makes the consumption of these single value operators a little bit more readable. For instance:

    ts
    const obs = AsyncObservable.from([1, 2, 3]);
    const singleton = obs.pipe(first());
    
    // instead of this:
    let firstValue: number | undefined;
    await obs.subscribe((value) => {
      firstValue = value;
    });
    console.log(firstValue); // 1
    
    // you can just do this:
    console.log(await singleton); // 1

Patch Changes

  • Updated dependencies [fa3aa52]:
    • @eventkit/async-observable@0.2.0

0.1.1

Patch Changes

  • a84a6cd - Fixed an issue where some operators can become permanently blocked in some runtimes

  • 35f0ed7 - Fixed an issue where an error would be thrown if multiple eventkit packages were used in the same file

  • 2c27d80 - Fixed some invariant behavior where the merge operator would wait for the scheduler promise instead of completion

  • Updated dependencies [35f0ed7]:

    • @eventkit/async-observable@0.1.1

0.1.0

Minor Changes

  • 78687a5 - v0.1.0 is the first official release of eventkit 🎉! Refer to the docs to get started.

Patch Changes

  • Updated dependencies [78687a5]:
    • @eventkit/async-observable@0.1.0

Released under the MIT License.