ci: Version Packages#591
Merged
Merged
Conversation
b6240e3 to
a496c17
Compare
AlemTuzlak
approved these changes
May 19, 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.20.0
Minor Changes
feat(ai):
systemPromptsaccept{ content, metadata }with adapter-inferred metadata typing (#575)chat({ systemPrompts })now accepts either a plain string (the existingshape — fully backward compatible) or
{ content, metadata }. Themetadatafield's type is inferred from the adapter via a new
TSystemPromptMetadatageneric onTextAdapter/BaseTextAdapter:@tanstack/ai-anthropicdeclaresAnthropicSystemPromptMetadata→users get
cache_controlautocomplete and type-checking onsystemPrompts[i].metadatafor Anthropic chats.OpenRouter, openai-base) inherit the default
never, which means themetadatafield carries no meaningful value at the call site —TypeScript only accepts
undefinedthere. Provider-foreign metadatathat reaches an adapter via JS /
as anyis silently dropped, neverwritten to the wire.
New exports:
@tanstack/ai:SystemPrompt,NormalizedSystemPrompttypes and thenormalizeSystemPrompts()helper adapters use to normalize the wideinput shape to
{ content, metadata? }before consumption.@tanstack/ai-anthropic:AnthropicSystemPromptMetadatainterface(currently exposes
cache_controlfor prompt caching).Internal:
TSystemPromptMetadata = nevergeneric onTextAdapter/BaseTextAdapter, surfaced via'~types'['systemPromptMetadata']for inference at the
chat()call site.metadata.cache_controland attaches it tothe corresponding
TextBlockParam.normalizeSystemPrompts()and join.contentfor their respectiveinstructions/system/systemInstructionfields. Foreign metadata that reaches them via JS/
as anyis dropped (never written to the wire).normalizeSystemPrompts()is the public API boundary and throwsTypeError(naming the offending index) for object-form entries whosecontentisn't a string — preventing literal"undefined"fromreaching the model on stale call sites.
tanstack.ai.system_prompt.metadataJSON span attribute whencaptureContent: trueand at least one entry carries metadata, soobservability backends can distinguish cache hit/miss for Anthropic.
@tanstack/ai-event-clientmirrors theSystemPromptshape locally(avoids a circular import) and projects metadata away on the devtools
wire — devtools UI still receives
Array<string>.Patch Changes
496db9c]:@tanstack/ai-anthropic@0.10.0
Minor Changes
feat(ai):
systemPromptsaccept{ content, metadata }with adapter-inferred metadata typing (#575)chat({ systemPrompts })now accepts either a plain string (the existingshape — fully backward compatible) or
{ content, metadata }. Themetadatafield's type is inferred from the adapter via a new
TSystemPromptMetadatageneric onTextAdapter/BaseTextAdapter:@tanstack/ai-anthropicdeclaresAnthropicSystemPromptMetadata→users get
cache_controlautocomplete and type-checking onsystemPrompts[i].metadatafor Anthropic chats.OpenRouter, openai-base) inherit the default
never, which means themetadatafield carries no meaningful value at the call site —TypeScript only accepts
undefinedthere. Provider-foreign metadatathat reaches an adapter via JS /
as anyis silently dropped, neverwritten to the wire.
New exports:
@tanstack/ai:SystemPrompt,NormalizedSystemPrompttypes and thenormalizeSystemPrompts()helper adapters use to normalize the wideinput shape to
{ content, metadata? }before consumption.@tanstack/ai-anthropic:AnthropicSystemPromptMetadatainterface(currently exposes
cache_controlfor prompt caching).Internal:
TSystemPromptMetadata = nevergeneric onTextAdapter/BaseTextAdapter, surfaced via'~types'['systemPromptMetadata']for inference at the
chat()call site.metadata.cache_controland attaches it tothe corresponding
TextBlockParam.normalizeSystemPrompts()and join.contentfor their respectiveinstructions/system/systemInstructionfields. Foreign metadata that reaches them via JS/
as anyis dropped (never written to the wire).normalizeSystemPrompts()is the public API boundary and throwsTypeError(naming the offending index) for object-form entries whosecontentisn't a string — preventing literal"undefined"fromreaching the model on stale call sites.
tanstack.ai.system_prompt.metadataJSON span attribute whencaptureContent: trueand at least one entry carries metadata, soobservability backends can distinguish cache hit/miss for Anthropic.
@tanstack/ai-event-clientmirrors theSystemPromptshape locally(avoids a circular import) and projects metadata away on the devtools
wire — devtools UI still receives
Array<string>.Patch Changes
496db9c]:@tanstack/ai-client@0.11.2
Patch Changes
496db9c]:@tanstack/ai-code-mode@0.1.15
Patch Changes
496db9c]:@tanstack/ai-code-mode-skills@0.1.15
Patch Changes
496db9c]:@tanstack/ai-devtools-core@0.3.32
Patch Changes
496db9c]:@tanstack/ai-elevenlabs@0.2.7
Patch Changes
496db9c]:@tanstack/ai-event-client@0.3.5
Patch Changes
feat(ai):
systemPromptsaccept{ content, metadata }with adapter-inferred metadata typing (#575)chat({ systemPrompts })now accepts either a plain string (the existingshape — fully backward compatible) or
{ content, metadata }. Themetadatafield's type is inferred from the adapter via a new
TSystemPromptMetadatageneric onTextAdapter/BaseTextAdapter:@tanstack/ai-anthropicdeclaresAnthropicSystemPromptMetadata→users get
cache_controlautocomplete and type-checking onsystemPrompts[i].metadatafor Anthropic chats.OpenRouter, openai-base) inherit the default
never, which means themetadatafield carries no meaningful value at the call site —TypeScript only accepts
undefinedthere. Provider-foreign metadatathat reaches an adapter via JS /
as anyis silently dropped, neverwritten to the wire.
New exports:
@tanstack/ai:SystemPrompt,NormalizedSystemPrompttypes and thenormalizeSystemPrompts()helper adapters use to normalize the wideinput shape to
{ content, metadata? }before consumption.@tanstack/ai-anthropic:AnthropicSystemPromptMetadatainterface(currently exposes
cache_controlfor prompt caching).Internal:
TSystemPromptMetadata = nevergeneric onTextAdapter/BaseTextAdapter, surfaced via'~types'['systemPromptMetadata']for inference at the
chat()call site.metadata.cache_controland attaches it tothe corresponding
TextBlockParam.normalizeSystemPrompts()and join.contentfor their respectiveinstructions/system/systemInstructionfields. Foreign metadata that reaches them via JS/
as anyis dropped (never written to the wire).normalizeSystemPrompts()is the public API boundary and throwsTypeError(naming the offending index) for object-form entries whosecontentisn't a string — preventing literal"undefined"fromreaching the model on stale call sites.
tanstack.ai.system_prompt.metadataJSON span attribute whencaptureContent: trueand at least one entry carries metadata, soobservability backends can distinguish cache hit/miss for Anthropic.
@tanstack/ai-event-clientmirrors theSystemPromptshape locally(avoids a circular import) and projects metadata away on the devtools
wire — devtools UI still receives
Array<string>.Updated dependencies [
496db9c]:@tanstack/ai-fal@0.7.8
Patch Changes
496db9c]:@tanstack/ai-gemini@0.10.7
Patch Changes
feat(ai):
systemPromptsaccept{ content, metadata }with adapter-inferred metadata typing (#575)chat({ systemPrompts })now accepts either a plain string (the existingshape — fully backward compatible) or
{ content, metadata }. Themetadatafield's type is inferred from the adapter via a new
TSystemPromptMetadatageneric onTextAdapter/BaseTextAdapter:@tanstack/ai-anthropicdeclaresAnthropicSystemPromptMetadata→users get
cache_controlautocomplete and type-checking onsystemPrompts[i].metadatafor Anthropic chats.OpenRouter, openai-base) inherit the default
never, which means themetadatafield carries no meaningful value at the call site —TypeScript only accepts
undefinedthere. Provider-foreign metadatathat reaches an adapter via JS /
as anyis silently dropped, neverwritten to the wire.
New exports:
@tanstack/ai:SystemPrompt,NormalizedSystemPrompttypes and thenormalizeSystemPrompts()helper adapters use to normalize the wideinput shape to
{ content, metadata? }before consumption.@tanstack/ai-anthropic:AnthropicSystemPromptMetadatainterface(currently exposes
cache_controlfor prompt caching).Internal:
TSystemPromptMetadata = nevergeneric onTextAdapter/BaseTextAdapter, surfaced via'~types'['systemPromptMetadata']for inference at the
chat()call site.metadata.cache_controland attaches it tothe corresponding
TextBlockParam.normalizeSystemPrompts()and join.contentfor their respectiveinstructions/system/systemInstructionfields. Foreign metadata that reaches them via JS/
as anyis dropped (never written to the wire).normalizeSystemPrompts()is the public API boundary and throwsTypeError(naming the offending index) for object-form entries whosecontentisn't a string — preventing literal"undefined"fromreaching the model on stale call sites.
tanstack.ai.system_prompt.metadataJSON span attribute whencaptureContent: trueand at least one entry carries metadata, soobservability backends can distinguish cache hit/miss for Anthropic.
@tanstack/ai-event-clientmirrors theSystemPromptshape locally(avoids a circular import) and projects metadata away on the devtools
wire — devtools UI still receives
Array<string>.Updated dependencies [
496db9c]:@tanstack/ai-grok@0.8.4
Patch Changes
496db9c]:@tanstack/ai-groq@0.2.3
Patch Changes
496db9c]:@tanstack/ai-isolate-cloudflare@0.2.6
Patch Changes
@tanstack/ai-isolate-node@0.1.15
Patch Changes
@tanstack/ai-isolate-quickjs@0.1.15
Patch Changes
@tanstack/ai-ollama@0.6.18
Patch Changes
feat(ai):
systemPromptsaccept{ content, metadata }with adapter-inferred metadata typing (#575)chat({ systemPrompts })now accepts either a plain string (the existingshape — fully backward compatible) or
{ content, metadata }. Themetadatafield's type is inferred from the adapter via a new
TSystemPromptMetadatageneric onTextAdapter/BaseTextAdapter:@tanstack/ai-anthropicdeclaresAnthropicSystemPromptMetadata→users get
cache_controlautocomplete and type-checking onsystemPrompts[i].metadatafor Anthropic chats.OpenRouter, openai-base) inherit the default
never, which means themetadatafield carries no meaningful value at the call site —TypeScript only accepts
undefinedthere. Provider-foreign metadatathat reaches an adapter via JS /
as anyis silently dropped, neverwritten to the wire.
New exports:
@tanstack/ai:SystemPrompt,NormalizedSystemPrompttypes and thenormalizeSystemPrompts()helper adapters use to normalize the wideinput shape to
{ content, metadata? }before consumption.@tanstack/ai-anthropic:AnthropicSystemPromptMetadatainterface(currently exposes
cache_controlfor prompt caching).Internal:
TSystemPromptMetadata = nevergeneric onTextAdapter/BaseTextAdapter, surfaced via'~types'['systemPromptMetadata']for inference at the
chat()call site.metadata.cache_controland attaches it tothe corresponding
TextBlockParam.normalizeSystemPrompts()and join.contentfor their respectiveinstructions/system/systemInstructionfields. Foreign metadata that reaches them via JS/
as anyis dropped (never written to the wire).normalizeSystemPrompts()is the public API boundary and throwsTypeError(naming the offending index) for object-form entries whosecontentisn't a string — preventing literal"undefined"fromreaching the model on stale call sites.
tanstack.ai.system_prompt.metadataJSON span attribute whencaptureContent: trueand at least one entry carries metadata, soobservability backends can distinguish cache hit/miss for Anthropic.
@tanstack/ai-event-clientmirrors theSystemPromptshape locally(avoids a circular import) and projects metadata away on the devtools
wire — devtools UI still receives
Array<string>.Updated dependencies [
496db9c]:@tanstack/ai-openai@0.9.4
Patch Changes
feat(ai):
systemPromptsaccept{ content, metadata }with adapter-inferred metadata typing (#575)chat({ systemPrompts })now accepts either a plain string (the existingshape — fully backward compatible) or
{ content, metadata }. Themetadatafield's type is inferred from the adapter via a new
TSystemPromptMetadatageneric onTextAdapter/BaseTextAdapter:@tanstack/ai-anthropicdeclaresAnthropicSystemPromptMetadata→users get
cache_controlautocomplete and type-checking onsystemPrompts[i].metadatafor Anthropic chats.OpenRouter, openai-base) inherit the default
never, which means themetadatafield carries no meaningful value at the call site —TypeScript only accepts
undefinedthere. Provider-foreign metadatathat reaches an adapter via JS /
as anyis silently dropped, neverwritten to the wire.
New exports:
@tanstack/ai:SystemPrompt,NormalizedSystemPrompttypes and thenormalizeSystemPrompts()helper adapters use to normalize the wideinput shape to
{ content, metadata? }before consumption.@tanstack/ai-anthropic:AnthropicSystemPromptMetadatainterface(currently exposes
cache_controlfor prompt caching).Internal:
TSystemPromptMetadata = nevergeneric onTextAdapter/BaseTextAdapter, surfaced via'~types'['systemPromptMetadata']for inference at the
chat()call site.metadata.cache_controland attaches it tothe corresponding
TextBlockParam.normalizeSystemPrompts()and join.contentfor their respectiveinstructions/system/systemInstructionfields. Foreign metadata that reaches them via JS/
as anyis dropped (never written to the wire).normalizeSystemPrompts()is the public API boundary and throwsTypeError(naming the offending index) for object-form entries whosecontentisn't a string — preventing literal"undefined"fromreaching the model on stale call sites.
tanstack.ai.system_prompt.metadataJSON span attribute whencaptureContent: trueand at least one entry carries metadata, soobservability backends can distinguish cache hit/miss for Anthropic.
@tanstack/ai-event-clientmirrors theSystemPromptshape locally(avoids a circular import) and projects metadata away on the devtools
wire — devtools UI still receives
Array<string>.Updated dependencies [
496db9c]:@tanstack/ai-openrouter@0.9.4
Patch Changes
feat(ai):
systemPromptsaccept{ content, metadata }with adapter-inferred metadata typing (#575)chat({ systemPrompts })now accepts either a plain string (the existingshape — fully backward compatible) or
{ content, metadata }. Themetadatafield's type is inferred from the adapter via a new
TSystemPromptMetadatageneric onTextAdapter/BaseTextAdapter:@tanstack/ai-anthropicdeclaresAnthropicSystemPromptMetadata→users get
cache_controlautocomplete and type-checking onsystemPrompts[i].metadatafor Anthropic chats.OpenRouter, openai-base) inherit the default
never, which means themetadatafield carries no meaningful value at the call site —TypeScript only accepts
undefinedthere. Provider-foreign metadatathat reaches an adapter via JS /
as anyis silently dropped, neverwritten to the wire.
New exports:
@tanstack/ai:SystemPrompt,NormalizedSystemPrompttypes and thenormalizeSystemPrompts()helper adapters use to normalize the wideinput shape to
{ content, metadata? }before consumption.@tanstack/ai-anthropic:AnthropicSystemPromptMetadatainterface(currently exposes
cache_controlfor prompt caching).Internal:
TSystemPromptMetadata = nevergeneric onTextAdapter/BaseTextAdapter, surfaced via'~types'['systemPromptMetadata']for inference at the
chat()call site.metadata.cache_controland attaches it tothe corresponding
TextBlockParam.normalizeSystemPrompts()and join.contentfor their respectiveinstructions/system/systemInstructionfields. Foreign metadata that reaches them via JS/
as anyis dropped (never written to the wire).normalizeSystemPrompts()is the public API boundary and throwsTypeError(naming the offending index) for object-form entries whosecontentisn't a string — preventing literal"undefined"fromreaching the model on stale call sites.
tanstack.ai.system_prompt.metadataJSON span attribute whencaptureContent: trueand at least one entry carries metadata, soobservability backends can distinguish cache hit/miss for Anthropic.
@tanstack/ai-event-clientmirrors theSystemPromptshape locally(avoids a circular import) and projects metadata away on the devtools
wire — devtools UI still receives
Array<string>.Updated dependencies [
496db9c]:@tanstack/ai-preact@0.6.27
Patch Changes
496db9c]:@tanstack/ai-react@0.11.2
Patch Changes
496db9c]:@tanstack/ai-solid@0.10.2
Patch Changes
496db9c]:@tanstack/ai-svelte@0.10.2
Patch Changes
496db9c]:@tanstack/ai-vue@0.10.3
Patch Changes
496db9c]:@tanstack/ai-vue-ui@0.1.39
Patch Changes
@tanstack/openai-base@0.3.3
Patch Changes
feat(ai):
systemPromptsaccept{ content, metadata }with adapter-inferred metadata typing (#575)chat({ systemPrompts })now accepts either a plain string (the existingshape — fully backward compatible) or
{ content, metadata }. Themetadatafield's type is inferred from the adapter via a new
TSystemPromptMetadatageneric onTextAdapter/BaseTextAdapter:@tanstack/ai-anthropicdeclaresAnthropicSystemPromptMetadata→users get
cache_controlautocomplete and type-checking onsystemPrompts[i].metadatafor Anthropic chats.OpenRouter, openai-base) inherit the default
never, which means themetadatafield carries no meaningful value at the call site —TypeScript only accepts
undefinedthere. Provider-foreign metadatathat reaches an adapter via JS /
as anyis silently dropped, neverwritten to the wire.
New exports:
@tanstack/ai:SystemPrompt,NormalizedSystemPrompttypes and thenormalizeSystemPrompts()helper adapters use to normalize the wideinput shape to
{ content, metadata? }before consumption.@tanstack/ai-anthropic:AnthropicSystemPromptMetadatainterface(currently exposes
cache_controlfor prompt caching).Internal:
TSystemPromptMetadata = nevergeneric onTextAdapter/BaseTextAdapter, surfaced via'~types'['systemPromptMetadata']for inference at the
chat()call site.metadata.cache_controland attaches it tothe corresponding
TextBlockParam.normalizeSystemPrompts()and join.contentfor their respectiveinstructions/system/systemInstructionfields. Foreign metadata that reaches them via JS/
as anyis dropped (never written to the wire).normalizeSystemPrompts()is the public API boundary and throwsTypeError(naming the offending index) for object-form entries whosecontentisn't a string — preventing literal"undefined"fromreaching the model on stale call sites.
tanstack.ai.system_prompt.metadataJSON span attribute whencaptureContent: trueand at least one entry carries metadata, soobservability backends can distinguish cache hit/miss for Anthropic.
@tanstack/ai-event-clientmirrors theSystemPromptshape locally(avoids a circular import) and projects metadata away on the devtools
wire — devtools UI still receives
Array<string>.Updated dependencies [
496db9c]:@tanstack/preact-ai-devtools@0.1.36
Patch Changes
@tanstack/react-ai-devtools@0.2.36
Patch Changes
@tanstack/solid-ai-devtools@0.2.36
Patch Changes