@tanstack/ai-preact 0.6.35 → 0.7.0

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, rpcStream, createChatClientOptions, type ConnectionAdapter, type ConnectConnectionAdapter, type SubscribeConnectionAdapter, type RunAgentInputContext, type FetchConnectionOptions, type InferChatMessages, } from '@tanstack/ai-client';
3
+ export { fetchServerSentEvents, fetchHttpStream, xhrServerSentEvents, xhrHttpStream, stream, rpcStream, createChatClientOptions, type ConnectionAdapter, type ConnectConnectionAdapter, type SubscribeConnectionAdapter, type RunAgentInputContext, type FetchConnectionOptions, type XhrConnectionOptions, type InferChatMessages, } from '@tanstack/ai-client';
package/dist/esm/index.js CHANGED
@@ -1,11 +1,13 @@
1
1
  import { useChat } from "./use-chat.js";
2
- import { createChatClientOptions, fetchHttpStream, fetchServerSentEvents, rpcStream, stream } from "@tanstack/ai-client";
2
+ import { createChatClientOptions, fetchHttpStream, fetchServerSentEvents, rpcStream, stream, xhrHttpStream, xhrServerSentEvents } from "@tanstack/ai-client";
3
3
  export {
4
4
  createChatClientOptions,
5
5
  fetchHttpStream,
6
6
  fetchServerSentEvents,
7
7
  rpcStream,
8
8
  stream,
9
- useChat
9
+ useChat,
10
+ xhrHttpStream,
11
+ xhrServerSentEvents
10
12
  };
11
13
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/ai-preact",
3
- "version": "0.6.35",
3
+ "version": "0.7.0",
4
4
  "description": "Preact hooks for TanStack AI streaming chat and typed messages.",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "tool-calling"
35
35
  ],
36
36
  "dependencies": {
37
- "@tanstack/ai-client": "0.13.0"
37
+ "@tanstack/ai-client": "0.14.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@testing-library/preact": "^3.2.4",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "preact": ">=10.11.0",
48
- "@tanstack/ai": "^0.22.1"
48
+ "@tanstack/ai": "^0.23.0"
49
49
  },
50
50
  "scripts": {
51
51
  "clean": "premove ./build ./dist",
package/src/index.ts CHANGED
@@ -9,6 +9,8 @@ export type {
9
9
  export {
10
10
  fetchServerSentEvents,
11
11
  fetchHttpStream,
12
+ xhrServerSentEvents,
13
+ xhrHttpStream,
12
14
  stream,
13
15
  rpcStream,
14
16
  createChatClientOptions,
@@ -17,5 +19,6 @@ export {
17
19
  type SubscribeConnectionAdapter,
18
20
  type RunAgentInputContext,
19
21
  type FetchConnectionOptions,
22
+ type XhrConnectionOptions,
20
23
  type InferChatMessages,
21
24
  } from '@tanstack/ai-client'