diff --git a/.changeset/early-eels-sit.md b/.changeset/early-eels-sit.md deleted file mode 100644 index 85a1c09..0000000 --- a/.changeset/early-eels-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@eventkit/async-observable": patch ---- - -Fixes an issue where subscribers wouldn't be tracked by the observable when using constructor syntax diff --git a/.changeset/fine-parents-serve.md b/.changeset/fine-parents-serve.md deleted file mode 100644 index a14e76a..0000000 --- a/.changeset/fine-parents-serve.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -"@eventkit/base": minor ---- - -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 -``` diff --git a/packages/async-observable/CHANGELOG.md b/packages/async-observable/CHANGELOG.md index 08be458..234acbb 100644 --- a/packages/async-observable/CHANGELOG.md +++ b/packages/async-observable/CHANGELOG.md @@ -1,5 +1,11 @@ # @eventkit/async-observable +## 0.2.0 + +### Patch Changes + +- [`fa3aa52`](https://github.com/hntrl/eventkit/commit/fa3aa52410d95dbe79f093f6bd992b800d4768f2) Thanks [@hntrl](https://github.com/hntrl)! - Fixes an issue where subscribers wouldn't be tracked by the observable when using constructor syntax + ## 0.1.1 ### Patch Changes diff --git a/packages/async-observable/package.json b/packages/async-observable/package.json index f24fe57..c8104ed 100644 --- a/packages/async-observable/package.json +++ b/packages/async-observable/package.json @@ -1,6 +1,6 @@ { "name": "@eventkit/async-observable", - "version": "0.1.1", + "version": "0.2.0", "license": "MIT", "author": "Hunter Lovell ", "repository": { diff --git a/packages/eventkit-http/CHANGELOG.md b/packages/eventkit-http/CHANGELOG.md index ef1c2d1..8976d22 100644 --- a/packages/eventkit-http/CHANGELOG.md +++ b/packages/eventkit-http/CHANGELOG.md @@ -1,5 +1,12 @@ # @eventkit/http +## 0.2.0 + +### Patch Changes + +- Updated dependencies [[`1371b77`](https://github.com/hntrl/eventkit/commit/1371b774b5409b5aa45e56fb215b27ab7233bd9b)]: + - @eventkit/base@0.2.0 + ## 0.1.1 ### Patch Changes diff --git a/packages/eventkit-http/package.json b/packages/eventkit-http/package.json index 53100fe..1281143 100644 --- a/packages/eventkit-http/package.json +++ b/packages/eventkit-http/package.json @@ -1,6 +1,6 @@ { "name": "@eventkit/http", - "version": "0.1.1", + "version": "0.2.0", "license": "MIT", "author": "Hunter Lovell ", "description": "HTTP helpers for eventkit", diff --git a/packages/eventkit/CHANGELOG.md b/packages/eventkit/CHANGELOG.md index 9eaa05f..d4f5dbe 100644 --- a/packages/eventkit/CHANGELOG.md +++ b/packages/eventkit/CHANGELOG.md @@ -1,5 +1,33 @@ # eventkit +## 0.2.0 + +### Minor Changes + +- [#4](https://github.com/hntrl/eventkit/pull/4) [`1371b77`](https://github.com/hntrl/eventkit/commit/1371b774b5409b5aa45e56fb215b27ab7233bd9b) Thanks [@hntrl](https://github.com/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`](https://github.com/hntrl/eventkit/commit/fa3aa52410d95dbe79f093f6bd992b800d4768f2)]: + - @eventkit/async-observable@0.2.0 + ## 0.1.1 ### Patch Changes diff --git a/packages/eventkit/package.json b/packages/eventkit/package.json index 1fa1118..30f2957 100644 --- a/packages/eventkit/package.json +++ b/packages/eventkit/package.json @@ -1,6 +1,6 @@ { "name": "@eventkit/base", - "version": "0.1.1", + "version": "0.2.0", "license": "MIT", "author": "Hunter Lovell ", "description": "Declarative event stream processing library",