Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .changeset/add-use-event-stream.md

This file was deleted.

7 changes: 7 additions & 0 deletions apps/perstack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/perstack/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
16 changes: 16 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down