Skip to content

ci: Version Packages#653

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

ci: Version Packages#653
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 28, 2026

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 on RUN_FINISHED.usage.

    OpenRouter reports the actual cost of each request inline on the chat response.
    The openRouterText and openRouterResponsesText adapters now forward that
    value on the terminal RUN_FINISHED event as usage.cost, with OpenRouter's
    per-request breakdown under usage.costDetails. This is the cost OpenRouter
    itself reports — it is not computed locally from token counts, so it accounts
    for routing, fallback providers, BYOK, and cached-token pricing.

    @tanstack/ai adds a shared UsageTotals type with optional cost and
    costDetails fields, plus a provider-neutral UsageCostBreakdown interface
    with three canonical fields (upstreamCost, upstreamInputCost,
    upstreamOutputCost). Each adapter's extractor normalizes its provider's
    wire-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/completions and
    Responses' input/output) onto the same canonical input/output split, since
    they bill against the same tokens. RunFinishedEvent.usage, the middleware
    UsageInfo (onUsage), and FinishInfo.usage (onFinish) all use
    UsageTotals. The fields are optional and additive — adapters that do not
    report cost are unaffected.

  • #647 d5645cf - Add React Native support for chat clients and framework hooks, including
    client-safe streaming utilities and connection adapters that work in mobile
    environments.

    The fetcher option is now available on ChatClient and the framework chat
    hooks (useChat / createChat), mirroring the generation hooks. Pass either
    connection or fetcher -- the XOR is enforced at the type level via
    ChatTransport. Fetchers may return either a Response (parsed as SSE) or an
    AsyncIterable<StreamChunk> (yielded directly).

    The client-safe @tanstack/ai/client subpath is now public for framework
    packages and mobile bundles. stream(), fetchServerSentEvents,
    fetchHttpStream, rpcStream, xhrServerSentEvents, and xhrHttpStream are
    available 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

  • Updated dependencies []:
    • @tanstack/ai-event-client@0.4.1

@tanstack/ai-client@0.14.0

Minor Changes

  • #647 d5645cf - Add React Native support for chat clients and framework hooks, including
    client-safe streaming utilities and connection adapters that work in mobile
    environments.

    The fetcher option is now available on ChatClient and the framework chat
    hooks (useChat / createChat), mirroring the generation hooks. Pass either
    connection or fetcher -- the XOR is enforced at the type level via
    ChatTransport. Fetchers may return either a Response (parsed as SSE) or an
    AsyncIterable<StreamChunk> (yielded directly).

    The client-safe @tanstack/ai/client subpath is now public for framework
    packages and mobile bundles. stream(), fetchServerSentEvents,
    fetchHttpStream, rpcStream, xhrServerSentEvents, and xhrHttpStream are
    available 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

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-event-client@0.4.1

@tanstack/ai-openrouter@0.10.0

Minor Changes

  • #654 980ff9b - Surface OpenRouter's per-request cost on RUN_FINISHED.usage.

    OpenRouter reports the actual cost of each request inline on the chat response.
    The openRouterText and openRouterResponsesText adapters now forward that
    value on the terminal RUN_FINISHED event as usage.cost, with OpenRouter's
    per-request breakdown under usage.costDetails. This is the cost OpenRouter
    itself reports — it is not computed locally from token counts, so it accounts
    for routing, fallback providers, BYOK, and cached-token pricing.

    @tanstack/ai adds a shared UsageTotals type with optional cost and
    costDetails fields, plus a provider-neutral UsageCostBreakdown interface
    with three canonical fields (upstreamCost, upstreamInputCost,
    upstreamOutputCost). Each adapter's extractor normalizes its provider's
    wire-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/completions and
    Responses' input/output) onto the same canonical input/output split, since
    they bill against the same tokens. RunFinishedEvent.usage, the middleware
    UsageInfo (onUsage), and FinishInfo.usage (onFinish) all use
    UsageTotals. The fields are optional and additive — adapters that do not
    report cost are unaffected.

Patch Changes

@tanstack/ai-preact@0.7.0

Minor Changes

  • #647 d5645cf - Add React Native support for chat clients and framework hooks, including
    client-safe streaming utilities and connection adapters that work in mobile
    environments.

    The fetcher option is now available on ChatClient and the framework chat
    hooks (useChat / createChat), mirroring the generation hooks. Pass either
    connection or fetcher -- the XOR is enforced at the type level via
    ChatTransport. Fetchers may return either a Response (parsed as SSE) or an
    AsyncIterable<StreamChunk> (yielded directly).

    The client-safe @tanstack/ai/client subpath is now public for framework
    packages and mobile bundles. stream(), fetchServerSentEvents,
    fetchHttpStream, rpcStream, xhrServerSentEvents, and xhrHttpStream are
    available 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

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-client@0.14.0

@tanstack/ai-react@0.13.0

Minor Changes

  • #647 d5645cf - Add React Native support for chat clients and framework hooks, including
    client-safe streaming utilities and connection adapters that work in mobile
    environments.

    The fetcher option is now available on ChatClient and the framework chat
    hooks (useChat / createChat), mirroring the generation hooks. Pass either
    connection or fetcher -- the XOR is enforced at the type level via
    ChatTransport. Fetchers may return either a Response (parsed as SSE) or an
    AsyncIterable<StreamChunk> (yielded directly).

    The client-safe @tanstack/ai/client subpath is now public for framework
    packages and mobile bundles. stream(), fetchServerSentEvents,
    fetchHttpStream, rpcStream, xhrServerSentEvents, and xhrHttpStream are
    available 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

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-client@0.14.0

@tanstack/ai-solid@0.11.0

Minor Changes

  • #647 d5645cf - Add React Native support for chat clients and framework hooks, including
    client-safe streaming utilities and connection adapters that work in mobile
    environments.

    The fetcher option is now available on ChatClient and the framework chat
    hooks (useChat / createChat), mirroring the generation hooks. Pass either
    connection or fetcher -- the XOR is enforced at the type level via
    ChatTransport. Fetchers may return either a Response (parsed as SSE) or an
    AsyncIterable<StreamChunk> (yielded directly).

    The client-safe @tanstack/ai/client subpath is now public for framework
    packages and mobile bundles. stream(), fetchServerSentEvents,
    fetchHttpStream, rpcStream, xhrServerSentEvents, and xhrHttpStream are
    available 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

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-client@0.14.0

@tanstack/ai-svelte@0.11.0

Minor Changes

  • #647 d5645cf - Add React Native support for chat clients and framework hooks, including
    client-safe streaming utilities and connection adapters that work in mobile
    environments.

    The fetcher option is now available on ChatClient and the framework chat
    hooks (useChat / createChat), mirroring the generation hooks. Pass either
    connection or fetcher -- the XOR is enforced at the type level via
    ChatTransport. Fetchers may return either a Response (parsed as SSE) or an
    AsyncIterable<StreamChunk> (yielded directly).

    The client-safe @tanstack/ai/client subpath is now public for framework
    packages and mobile bundles. stream(), fetchServerSentEvents,
    fetchHttpStream, rpcStream, xhrServerSentEvents, and xhrHttpStream are
    available 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

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-client@0.14.0

@tanstack/ai-vue@0.11.0

Minor Changes

  • #647 d5645cf - Add React Native support for chat clients and framework hooks, including
    client-safe streaming utilities and connection adapters that work in mobile
    environments.

    The fetcher option is now available on ChatClient and the framework chat
    hooks (useChat / createChat), mirroring the generation hooks. Pass either
    connection or fetcher -- the XOR is enforced at the type level via
    ChatTransport. Fetchers may return either a Response (parsed as SSE) or an
    AsyncIterable<StreamChunk> (yielded directly).

    The client-safe @tanstack/ai/client subpath is now public for framework
    packages and mobile bundles. stream(), fetchServerSentEvents,
    fetchHttpStream, rpcStream, xhrServerSentEvents, and xhrHttpStream are
    available 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

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-client@0.14.0

@tanstack/ai-anthropic@0.11.1

Patch Changes

@tanstack/ai-code-mode@0.1.23

Patch Changes

@tanstack/ai-code-mode-skills@0.1.23

Patch Changes

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-code-mode@0.1.23

@tanstack/ai-devtools-core@0.4.1

Patch Changes

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-event-client@0.4.1

@tanstack/ai-elevenlabs@0.2.14

Patch Changes

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-client@0.14.0

@tanstack/ai-event-client@0.4.1

Patch Changes

@tanstack/ai-fal@0.7.16

Patch Changes

@tanstack/ai-gemini@0.12.1

Patch Changes

@tanstack/ai-grok@0.9.1

Patch Changes

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/openai-base@0.4.1

@tanstack/ai-groq@0.2.8

Patch Changes

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/openai-base@0.4.1

@tanstack/ai-isolate-cloudflare@0.2.14

Patch Changes

  • Updated dependencies []:
    • @tanstack/ai-code-mode@0.1.23

@tanstack/ai-isolate-node@0.1.23

Patch Changes

  • Updated dependencies []:
    • @tanstack/ai-code-mode@0.1.23

@tanstack/ai-isolate-quickjs@0.1.23

Patch Changes

  • Updated dependencies []:
    • @tanstack/ai-code-mode@0.1.23

@tanstack/ai-ollama@0.6.23

Patch Changes

@tanstack/ai-openai@0.10.4

Patch Changes

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-client@0.14.0
    • @tanstack/openai-base@0.4.1

@tanstack/ai-react-ui@0.8.4

Patch Changes

  • Updated dependencies [d5645cf]:
    • @tanstack/ai-client@0.14.0
    • @tanstack/ai-react@0.13.0

@tanstack/ai-solid-ui@0.7.4

Patch Changes

  • Updated dependencies [d5645cf]:
    • @tanstack/ai-client@0.14.0
    • @tanstack/ai-solid@0.11.0

@tanstack/ai-vue-ui@0.2.7

Patch Changes

  • Updated dependencies [d5645cf]:
    • @tanstack/ai-vue@0.11.0

@tanstack/openai-base@0.4.1

Patch Changes

@tanstack/preact-ai-devtools@0.1.44

Patch Changes

  • Updated dependencies []:
    • @tanstack/ai-devtools-core@0.4.1

@tanstack/react-ai-devtools@0.2.44

Patch Changes

  • Updated dependencies []:
    • @tanstack/ai-devtools-core@0.4.1

@tanstack/solid-ai-devtools@0.2.44

Patch Changes

  • Updated dependencies []:
    • @tanstack/ai-devtools-core@0.4.1

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 91a5640 to d230d95 Compare May 29, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants