eventkit
0.3.1
Patch Changes
#9
3ea1105Thanks @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-observableand@eventkit/basein the same project with this change, but this pattern should be avoided anyways.#10
d1d5dcaThanks @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 newindex.global.jsandindex.global.min.jsthat is intended to be used with browser targets.
0.3.0
Minor Changes
- #6
03fb5d1Thanks @hntrl! - Introduces 10 new operators into eventkit:find,findIndex,first,isEmpty,last,max,min,pairwise,skip, andevery. See the docs for a complete reference.
Patch Changes
#6
7b6dbb1Thanks @hntrl! - Fixed some invariant behavior with thereduceoperator where the chain of accumulator calls depending on the seed value wasn't consistent with the native array methodUpdated dependencies []:
- @eventkit/async-observable@0.3.0
0.2.0
Minor Changes
#4
1371b77Thanks @hntrl! - IntroducesSingletonAsyncObservable; 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 fromreduce(),count(), etc.) using native await syntax.This makes the consumption of these single value operators a little bit more readable. For instance:
tsconst 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 runtimes35f0ed7- Fixed an issue where an error would be thrown if multiple eventkit packages were used in the same file2c27d80- Fixed some invariant behavior where the merge operator would wait for the scheduler promise instead of completionUpdated dependencies [
35f0ed7]:- @eventkit/async-observable@0.1.1
0.1.0
Minor Changes
Patch Changes
- Updated dependencies [
78687a5]:- @eventkit/async-observable@0.1.0