diff --git a/.changeset/add-use-event-stream.md b/.changeset/add-use-event-stream.md deleted file mode 100644 index 46d15e7d..00000000 --- a/.changeset/add-use-event-stream.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@perstack/react": patch ---- - -feat(react): add useEventStream hook for consuming PerstackEvent streams - -Added a new `useEventStream` hook that provides automatic connection management for PerstackEvent streams. The hook is API-agnostic and accepts an `EventSourceFactory` function, allowing it to work with any backend that provides PerstackEvent streams. - -Features: -- Automatic connection lifecycle management (connect/disconnect based on `enabled` flag) -- Event processing through `useRun` hook internally -- Connection state tracking (`isConnected`, `error`) -- Proper cleanup on unmount or when disabled -- AbortSignal support for stream cancellation diff --git a/apps/perstack/CHANGELOG.md b/apps/perstack/CHANGELOG.md index c6b724d9..2f9e9d50 100644 --- a/apps/perstack/CHANGELOG.md +++ b/apps/perstack/CHANGELOG.md @@ -1,5 +1,12 @@ # perstack +## 0.0.75 + +### Patch Changes + +- Updated dependencies [[`9d4d713`](https://github.com/perstack-ai/perstack/commit/9d4d71380caac5068565fef6184d475f4fc4cf04)]: + - @perstack/react@0.0.45 + ## 0.0.74 ### Patch Changes diff --git a/apps/perstack/package.json b/apps/perstack/package.json index 4c46a458..1bc88f4b 100644 --- a/apps/perstack/package.json +++ b/apps/perstack/package.json @@ -1,6 +1,6 @@ { "name": "perstack", - "version": "0.0.74", + "version": "0.0.75", "description": "PerStack CLI", "author": "Wintermute Technologies, Inc.", "license": "Apache-2.0", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index e4ae3baf..7e5b53ce 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,21 @@ # @perstack/react +## 0.0.45 + +### Patch Changes + +- [#453](https://github.com/perstack-ai/perstack/pull/453) [`9d4d713`](https://github.com/perstack-ai/perstack/commit/9d4d71380caac5068565fef6184d475f4fc4cf04) Thanks [@FL4TLiN3](https://github.com/FL4TLiN3)! - feat(react): add useEventStream hook for consuming PerstackEvent streams + + Added a new `useEventStream` hook that provides automatic connection management for PerstackEvent streams. The hook is API-agnostic and accepts an `EventSourceFactory` function, allowing it to work with any backend that provides PerstackEvent streams. + + Features: + + - Automatic connection lifecycle management (connect/disconnect based on `enabled` flag) + - Event processing through `useRun` hook internally + - Connection state tracking (`isConnected`, `error`) + - Proper cleanup on unmount or when disabled + - AbortSignal support for stream cancellation + ## 0.0.44 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 6d748e2b..09ec0eb6 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@perstack/react", - "version": "0.0.44", + "version": "0.0.45", "description": "React hooks and utilities for Perstack integration", "author": "Wintermute Technologies, Inc.", "license": "Apache-2.0",