@tanstack/ai-preact 0.6.35 → 0.7.1
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.
- package/README.md +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +4 -2
- package/package.json +3 -3
- package/src/index.ts +3 -0
package/README.md
CHANGED
|
@@ -186,7 +186,7 @@ Official adapters include:
|
|
|
186
186
|
|
|
187
187
|
| Package | Use it for |
|
|
188
188
|
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
|
189
|
-
| [`@tanstack/ai-openrouter`](https://tanstack.com/ai/latest/docs/adapters/openrouter) | 300+ models through one OpenRouter API
|
|
189
|
+
| [`@tanstack/ai-openrouter`](https://tanstack.com/ai/latest/docs/adapters/openrouter) | 300+ models through one OpenRouter API, with per-request cost tracking |
|
|
190
190
|
| [`@tanstack/ai-openai`](https://tanstack.com/ai/latest/docs/adapters/openai) | OpenAI chat, image, video, speech, transcription, realtime, and provider tools |
|
|
191
191
|
| [`@tanstack/ai-anthropic`](https://tanstack.com/ai/latest/docs/adapters/anthropic) | Anthropic Claude chat, thinking, tools, and structured outputs |
|
|
192
192
|
| [`@tanstack/ai-gemini`](https://tanstack.com/ai/latest/docs/adapters/gemini) | Google Gemini chat, image, speech, and audio generation |
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.7.1",
|
|
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.
|
|
37
|
+
"@tanstack/ai-client": "0.14.1"
|
|
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.
|
|
48
|
+
"@tanstack/ai": "^0.23.1"
|
|
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'
|