@tanstack/ai-preact 0.6.28 → 0.6.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  export { useChat } from './use-chat.js';
2
2
  export type { UseChatOptions, UseChatReturn, UIMessage, ChatRequestBody, } from './types.js';
3
- export { fetchServerSentEvents, fetchHttpStream, stream, createChatClientOptions, type ConnectionAdapter, type FetchConnectionOptions, type InferChatMessages, } from '@tanstack/ai-client';
3
+ export { fetchServerSentEvents, fetchHttpStream, stream, rpcStream, createChatClientOptions, type ConnectionAdapter, type ConnectConnectionAdapter, type SubscribeConnectionAdapter, type RunAgentInputContext, type FetchConnectionOptions, type InferChatMessages, } from '@tanstack/ai-client';
package/dist/esm/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { useChat } from "./use-chat.js";
2
- import { createChatClientOptions, fetchHttpStream, fetchServerSentEvents, stream } from "@tanstack/ai-client";
2
+ import { createChatClientOptions, fetchHttpStream, fetchServerSentEvents, rpcStream, stream } from "@tanstack/ai-client";
3
3
  export {
4
4
  createChatClientOptions,
5
5
  fetchHttpStream,
6
6
  fetchServerSentEvents,
7
+ rpcStream,
7
8
  stream,
8
9
  useChat
9
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/ai-preact",
3
- "version": "0.6.28",
3
+ "version": "0.6.29",
4
4
  "description": "Preact hooks for TanStack AI",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "streaming"
32
32
  ],
33
33
  "dependencies": {
34
- "@tanstack/ai-client": "0.11.3"
34
+ "@tanstack/ai-client": "0.11.4"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@testing-library/preact": "^3.2.4",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "peerDependencies": {
44
44
  "preact": ">=10.11.0",
45
- "@tanstack/ai": "^0.20.1"
45
+ "@tanstack/ai": "^0.21.0"
46
46
  },
47
47
  "scripts": {
48
48
  "clean": "premove ./build ./dist",
package/src/index.ts CHANGED
@@ -10,8 +10,12 @@ export {
10
10
  fetchServerSentEvents,
11
11
  fetchHttpStream,
12
12
  stream,
13
+ rpcStream,
13
14
  createChatClientOptions,
14
15
  type ConnectionAdapter,
16
+ type ConnectConnectionAdapter,
17
+ type SubscribeConnectionAdapter,
18
+ type RunAgentInputContext,
15
19
  type FetchConnectionOptions,
16
20
  type InferChatMessages,
17
21
  } from '@tanstack/ai-client'