ci: Version Packages#653
Merged
Merged
Conversation
d230d95 to
5c80a2d
Compare
5c80a2d to
a338ebc
Compare
AlemTuzlak
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@tanstack/ai@0.23.0
Minor Changes
#654
980ff9b- Surface OpenRouter's per-request cost onRUN_FINISHED.usage.OpenRouter reports the actual cost of each request inline on the chat response.
The
openRouterTextandopenRouterResponsesTextadapters now forward thatvalue on the terminal
RUN_FINISHEDevent asusage.cost, with OpenRouter'sper-request breakdown under
usage.costDetails. This is the cost OpenRouteritself reports — it is not computed locally from token counts, so it accounts
for routing, fallback providers, BYOK, and cached-token pricing.
@tanstack/aiadds a sharedUsageTotalstype with optionalcostandcostDetailsfields, plus a provider-neutralUsageCostBreakdowninterfacewith three canonical fields (
upstreamCost,upstreamInputCost,upstreamOutputCost). Each adapter's extractor normalizes its provider'swire-shape onto this canonical form, so consumer code reads the same fields
regardless of which gateway populated them — swapping adapters is a one-line
change with no consumer rewrites. The OpenRouter adapter collapses its two
endpoint naming styles (Chat Completions'
prompt/completionsandResponses'
input/output) onto the same canonical input/output split, sincethey bill against the same tokens.
RunFinishedEvent.usage, the middlewareUsageInfo(onUsage), andFinishInfo.usage(onFinish) all useUsageTotals. The fields are optional and additive — adapters that do notreport cost are unaffected.
#647
d5645cf- Add React Native support for chat clients and framework hooks, includingclient-safe streaming utilities and connection adapters that work in mobile
environments.
The
fetcheroption is now available onChatClientand the framework chathooks (
useChat/createChat), mirroring the generation hooks. Pass eitherconnectionorfetcher-- the XOR is enforced at the type level viaChatTransport. Fetchers may return either aResponse(parsed as SSE) or anAsyncIterable<StreamChunk>(yielded directly).The client-safe
@tanstack/ai/clientsubpath is now public for frameworkpackages and mobile bundles.
stream(),fetchServerSentEvents,fetchHttpStream,rpcStream,xhrServerSentEvents, andxhrHttpStreamareavailable from the client package and framework re-exports. React Native docs,
an Expo chat example, and smoke tests are included for the supported mobile
setup.
Patch Changes
@tanstack/ai-client@0.14.0
Minor Changes
#647
d5645cf- Add React Native support for chat clients and framework hooks, includingclient-safe streaming utilities and connection adapters that work in mobile
environments.
The
fetcheroption is now available onChatClientand the framework chathooks (
useChat/createChat), mirroring the generation hooks. Pass eitherconnectionorfetcher-- the XOR is enforced at the type level viaChatTransport. Fetchers may return either aResponse(parsed as SSE) or anAsyncIterable<StreamChunk>(yielded directly).The client-safe
@tanstack/ai/clientsubpath is now public for frameworkpackages and mobile bundles.
stream(),fetchServerSentEvents,fetchHttpStream,rpcStream,xhrServerSentEvents, andxhrHttpStreamareavailable from the client package and framework re-exports. React Native docs,
an Expo chat example, and smoke tests are included for the supported mobile
setup.
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-openrouter@0.10.0
Minor Changes
#654
980ff9b- Surface OpenRouter's per-request cost onRUN_FINISHED.usage.OpenRouter reports the actual cost of each request inline on the chat response.
The
openRouterTextandopenRouterResponsesTextadapters now forward thatvalue on the terminal
RUN_FINISHEDevent asusage.cost, with OpenRouter'sper-request breakdown under
usage.costDetails. This is the cost OpenRouteritself reports — it is not computed locally from token counts, so it accounts
for routing, fallback providers, BYOK, and cached-token pricing.
@tanstack/aiadds a sharedUsageTotalstype with optionalcostandcostDetailsfields, plus a provider-neutralUsageCostBreakdowninterfacewith three canonical fields (
upstreamCost,upstreamInputCost,upstreamOutputCost). Each adapter's extractor normalizes its provider'swire-shape onto this canonical form, so consumer code reads the same fields
regardless of which gateway populated them — swapping adapters is a one-line
change with no consumer rewrites. The OpenRouter adapter collapses its two
endpoint naming styles (Chat Completions'
prompt/completionsandResponses'
input/output) onto the same canonical input/output split, sincethey bill against the same tokens.
RunFinishedEvent.usage, the middlewareUsageInfo(onUsage), andFinishInfo.usage(onFinish) all useUsageTotals. The fields are optional and additive — adapters that do notreport cost are unaffected.
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-preact@0.7.0
Minor Changes
#647
d5645cf- Add React Native support for chat clients and framework hooks, includingclient-safe streaming utilities and connection adapters that work in mobile
environments.
The
fetcheroption is now available onChatClientand the framework chathooks (
useChat/createChat), mirroring the generation hooks. Pass eitherconnectionorfetcher-- the XOR is enforced at the type level viaChatTransport. Fetchers may return either aResponse(parsed as SSE) or anAsyncIterable<StreamChunk>(yielded directly).The client-safe
@tanstack/ai/clientsubpath is now public for frameworkpackages and mobile bundles.
stream(),fetchServerSentEvents,fetchHttpStream,rpcStream,xhrServerSentEvents, andxhrHttpStreamareavailable from the client package and framework re-exports. React Native docs,
an Expo chat example, and smoke tests are included for the supported mobile
setup.
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-react@0.13.0
Minor Changes
#647
d5645cf- Add React Native support for chat clients and framework hooks, includingclient-safe streaming utilities and connection adapters that work in mobile
environments.
The
fetcheroption is now available onChatClientand the framework chathooks (
useChat/createChat), mirroring the generation hooks. Pass eitherconnectionorfetcher-- the XOR is enforced at the type level viaChatTransport. Fetchers may return either aResponse(parsed as SSE) or anAsyncIterable<StreamChunk>(yielded directly).The client-safe
@tanstack/ai/clientsubpath is now public for frameworkpackages and mobile bundles.
stream(),fetchServerSentEvents,fetchHttpStream,rpcStream,xhrServerSentEvents, andxhrHttpStreamareavailable from the client package and framework re-exports. React Native docs,
an Expo chat example, and smoke tests are included for the supported mobile
setup.
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-solid@0.11.0
Minor Changes
#647
d5645cf- Add React Native support for chat clients and framework hooks, includingclient-safe streaming utilities and connection adapters that work in mobile
environments.
The
fetcheroption is now available onChatClientand the framework chathooks (
useChat/createChat), mirroring the generation hooks. Pass eitherconnectionorfetcher-- the XOR is enforced at the type level viaChatTransport. Fetchers may return either aResponse(parsed as SSE) or anAsyncIterable<StreamChunk>(yielded directly).The client-safe
@tanstack/ai/clientsubpath is now public for frameworkpackages and mobile bundles.
stream(),fetchServerSentEvents,fetchHttpStream,rpcStream,xhrServerSentEvents, andxhrHttpStreamareavailable from the client package and framework re-exports. React Native docs,
an Expo chat example, and smoke tests are included for the supported mobile
setup.
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-svelte@0.11.0
Minor Changes
#647
d5645cf- Add React Native support for chat clients and framework hooks, includingclient-safe streaming utilities and connection adapters that work in mobile
environments.
The
fetcheroption is now available onChatClientand the framework chathooks (
useChat/createChat), mirroring the generation hooks. Pass eitherconnectionorfetcher-- the XOR is enforced at the type level viaChatTransport. Fetchers may return either aResponse(parsed as SSE) or anAsyncIterable<StreamChunk>(yielded directly).The client-safe
@tanstack/ai/clientsubpath is now public for frameworkpackages and mobile bundles.
stream(),fetchServerSentEvents,fetchHttpStream,rpcStream,xhrServerSentEvents, andxhrHttpStreamareavailable from the client package and framework re-exports. React Native docs,
an Expo chat example, and smoke tests are included for the supported mobile
setup.
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-vue@0.11.0
Minor Changes
#647
d5645cf- Add React Native support for chat clients and framework hooks, includingclient-safe streaming utilities and connection adapters that work in mobile
environments.
The
fetcheroption is now available onChatClientand the framework chathooks (
useChat/createChat), mirroring the generation hooks. Pass eitherconnectionorfetcher-- the XOR is enforced at the type level viaChatTransport. Fetchers may return either aResponse(parsed as SSE) or anAsyncIterable<StreamChunk>(yielded directly).The client-safe
@tanstack/ai/clientsubpath is now public for frameworkpackages and mobile bundles.
stream(),fetchServerSentEvents,fetchHttpStream,rpcStream,xhrServerSentEvents, andxhrHttpStreamareavailable from the client package and framework re-exports. React Native docs,
an Expo chat example, and smoke tests are included for the supported mobile
setup.
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-anthropic@0.11.1
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-code-mode@0.1.23
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-code-mode-skills@0.1.23
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-devtools-core@0.4.1
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-elevenlabs@0.2.14
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-event-client@0.4.1
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-fal@0.7.16
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-gemini@0.12.1
Patch Changes
e6ff2b4- Surface token usage from the Gemini image adapter'sgenerateContentpath(e.g. Nano Banana) by parsing
usageMetadatafrom the response instead ofomitting
usage. The Imagen (generateImages) path is unchanged — that SDKresponse type does not expose
usageMetadata. Fixes #330.980ff9b,d5645cf]:@tanstack/ai-grok@0.9.1
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-groq@0.2.8
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-isolate-cloudflare@0.2.14
Patch Changes
@tanstack/ai-isolate-node@0.1.23
Patch Changes
@tanstack/ai-isolate-quickjs@0.1.23
Patch Changes
@tanstack/ai-ollama@0.6.23
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-openai@0.10.4
Patch Changes
980ff9b,d5645cf]:@tanstack/ai-react-ui@0.8.4
Patch Changes
d5645cf]:@tanstack/ai-solid-ui@0.7.4
Patch Changes
d5645cf]:@tanstack/ai-vue-ui@0.2.7
Patch Changes
d5645cf]:@tanstack/openai-base@0.4.1
Patch Changes
980ff9b,d5645cf]:@tanstack/preact-ai-devtools@0.1.44
Patch Changes
@tanstack/react-ai-devtools@0.2.44
Patch Changes
@tanstack/solid-ai-devtools@0.2.44
Patch Changes