Repository navigation
ci: Version Packages - #2051
Merged
Merged
ci: Version Packages#2051
Conversation
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
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@1.2.0
Minor Changes
#2033
48cbc66-withSandboxnow sends asandbox.startingCUSTOM event before it creates or resumes the sandbox. Then it sendssandbox.createdorsandbox.resumed. Use these events to show a pending state in the client while the sandbox starts.New in
@tanstack/ai:CUSTOM_EVENT.SANDBOX_STARTING, theSandboxStartingPayloadtype, and the typedSandboxStartingEvent,SandboxCreatedEvent, andSandboxResumedEventmembers ofKnownCustomEvent.Patch Changes
374fb69]:@tanstack/ai-bedrock@1.2.0
Minor Changes
#1973
374fb69-@aws-sdk/client-bedrock-runtimeand@aws-sdk/credential-providersare now optional peer dependencies. Bundles that do not use them are smaller.api: 'converse') or embeddings, install@aws-sdk/client-bedrock-runtime.@aws-sdk/credential-providers.The Chat Completions and Responses APIs sign SigV4 requests in the adapter and call Bedrock with
fetch. They do not load theopenaiSDK at runtime.Patch Changes
48cbc66,374fb69]:@tanstack/ai-cloudflare@1.2.0
Minor Changes
374fb69-@cloudflare/workers-typesis now an optional peer dependency. If you use TypeScript, install it as a dev dependency, because the adapter types use itsAibinding and AI Gateway types. The adapter needs no extra package at runtime.Patch Changes
#2036
382cb80-embed()with more than 100 inputs no longer fails on Workers AI embedding models that accept 100 texts per request, such as the BGE models. The adapter now sends the inputs in sequential requests of at most 100 texts and returns the vectors in input order. An aborted signal stops the remaining requests. Models with a lower limit, such as@cf/qwen/qwen3-embedding-0.6b, can still reject large inputs.Updated dependencies [
48cbc66,374fb69,374fb69]:@tanstack/ai-sandbox@1.2.0
Minor Changes
#2033
48cbc66-withSandboxnow sends asandbox.startingCUSTOM event before it creates or resumes the sandbox. Then it sendssandbox.createdorsandbox.resumed. Use these events to show a pending state in the client while the sandbox starts.New in
@tanstack/ai:CUSTOM_EVENT.SANDBOX_STARTING, theSandboxStartingPayloadtype, and the typedSandboxStartingEvent,SandboxCreatedEvent, andSandboxResumedEventmembers ofKnownCustomEvent.Patch Changes
#2039
c86063a-withSandboxno longer fails the firstchat()call withdeclares it provides "sandbox-projection" but never called provide() in setup()when the sandbox definition has noworkspace.sandbox-projectionis listed inprovidesonly when a workspace is declared, which is whensetupcallsprovide(). A sandbox with a workspace still satisfiesrequires: [ProjectionCapability].#1973
374fb69- The host tool bridge now uses the MCP v2 server package@modelcontextprotocol/server. The bridge works the same way. The package is marked"sideEffects": false, so bundlers can drop the modules that you do not import.Updated dependencies [
48cbc66,374fb69]:@tanstack/ai-utils@1.1.0
Minor Changes
374fb69- Add the@tanstack/ai-utils/httpsubpath. It has the smallfetchclient that the provider adapters use:createHttpClientwith retries and timeouts,parseSSE,mergeHeaders,toHeaderRecord, andtoFormData.@tanstack/ai-anthropic@1.1.1
Patch Changes
#2042
1f777da- Reportincomplete-streamwhen an Anthropic stream ends before a stop reason (nomessage_deltawithstop_reasonand nomessage_stop). Before, the run had no terminal event andonFinishgot the partial text as a success. An abort is not reported.#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create the@anthropic-ai/sdkclient. At runtime they load only small SDK modules, for example the error classes from@anthropic-ai/sdk/core/error. With a bundler that splits chunks, the startup bundle is smaller. Errors keep the same classes and fields.These options still load
@anthropic-ai/sdkon first use:middleware, OpenTelemetry tracing,logLevel: 'info'or'debug'(orANTHROPIC_LOG), and noapiKeyand noauthToken.Updated dependencies [
48cbc66,374fb69]:@tanstack/ai-byteplus@1.1.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.Updated dependencies [
48cbc66,374fb69,374fb69]:@tanstack/ai-elevenlabs@1.1.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create the@elevenlabs/elevenlabs-jsclient. At runtime they load only the SDK error classes. Bundles are smaller. Errors keep the same classes and fields.Updated dependencies [
48cbc66,374fb69]:@tanstack/ai-fal@1.1.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not load the provider SDK at runtime, except for the options below. With a bundler that splits chunks, the startup bundle is smaller. The SDK stays a dependency for its TypeScript types and for those options. Errors keep the samename,status,message, and body fields. If your code checks an error withinstanceofagainst an error class of@fal-ai/client, checkerror.nameinstead.@fal-ai/clienton first use.configureFalClientconfigures the globalfalclient of@fal-ai/clientfor apps that callfalthemselves.Updated dependencies [
48cbc66,374fb69]:@tanstack/ai-gemini@1.1.1
Patch Changes
#2037
ac406f1-embed()with the Gemini adapter now sends inputs in requests of at most 100 texts, one after the other, instead of one request for the whole array. Vectors keep input order and indexes, and Vertex billable characters are summed across requests. Calls with 100 or fewer inputs are unchanged.#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not load the provider SDK at runtime, except for the options below. With a bundler that splits chunks, the startup bundle is smaller. The SDK stays a dependency for its TypeScript types and for those options. Errors keep the samename,status,message, and body fields. If your code checks an error withinstanceofagainst an error class of@google/genai, checkerror.nameinstead.These options still load
@google/genaion first use:vertexai: true,enterprise: true, noapiKey, and a file path string as the upload.Updated dependencies [
48cbc66,374fb69]:@tanstack/ai-grok@1.1.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.Updated dependencies [
48cbc66,374fb69,374fb69]:@tanstack/ai-groq@1.0.2
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.Updated dependencies [
48cbc66,374fb69,374fb69]:@tanstack/ai-llmgateway@1.0.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.#1895
e024981- Update model metadata from OpenRouter APIUpdated dependencies [
48cbc66,374fb69,374fb69]:@tanstack/ai-lovable@1.1.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.Updated dependencies [
48cbc66,374fb69,374fb69]:@tanstack/ai-mistral@1.1.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create the@mistralai/mistralaiclient. At runtime they load only the SDK error classes. Bundles are smaller. A 422 response now throws the adapter's ownHTTPValidationError, not the SDK class. It has the samename,message, anddetailfields, and it is still aninstanceof MistralError. If your code checks a 422 error withinstanceofagainst the SDKHTTPValidationError, checkerror.nameinstead.Updated dependencies [
48cbc66,374fb69]:@tanstack/ai-neon@0.2.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.#1895
e024981- Update model metadata from OpenRouter APIUpdated dependencies [
1f777da,48cbc66,374fb69,374fb69,374fb69]:@tanstack/ai-openai@1.1.1
Patch Changes
#1986
b23df66-embed()with the OpenAI adapter now sends inputs in sequential requests of at most 2048 inputs each, the endpoint's limit, and sums the token usage. Before, more than 2048 texts failed with a 400 error. OpenAI also limits one request to 300,000 tokens across all inputs, so a large array of long texts can still fail. Split those calls yourself.#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.#1895
e024981- Update model metadata from OpenRouter APIUpdated dependencies [
48cbc66,374fb69,374fb69]:@tanstack/ai-openrouter@1.1.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create the@openrouter/sdkclient. At runtime they load only the SDK error classes. Bundles are smaller. Errors keep the samenameand fields, and they are still aninstanceof OpenRouterError. Aninstanceofcheck against a typed SDK error class (for exampleBadRequestResponseErrororTooManyRequestsResponseError) no longer matches. Checkerror.nameinstead.#1895
e024981- Update model metadata from OpenRouter APIUpdated dependencies [
48cbc66,374fb69]:@tanstack/ai-vercel-gateway@1.1.1
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.#1895
e024981- Update model metadata from OpenRouter APIUpdated dependencies [
48cbc66,374fb69,374fb69]:@tanstack/ai-vertex@1.0.1
Patch Changes
#1973
374fb69- Mark the package as"sideEffects": false, so bundlers can drop the modules that you do not import.Updated dependencies [
ac406f1,48cbc66,374fb69]:@tanstack/openai-base@1.0.2
Patch Changes
#1973
374fb69- The adapters now call the provider HTTP API withfetchand do not create theopenaiSDK client. At runtime they load only small SDK modules, for example the error classes fromopenai/core/error. With a bundler that splits chunks, the startup bundle is smaller. A single-file bundle can be a little larger, because a few rare options still load the full SDK on first use. Errors keep the same classes and fields.New exports:
createOpenAIClient,createAzureOpenAIClient, and theOpenAIClientLiketype. Some options still load theopenaiSDK on first use:workloadIdentity,provider,dataResidency,credential,x509Transport, an admin key with noapiKey, andazureADTokenProvideron Azure.Updated dependencies [
48cbc66,374fb69]: