Skip to content

Commit 4358cc1

Browse files
widen @tanstack/ai peer + adapter ranges in @cloudflare/tanstack-ai
Pre-1.0 carets resolve to a single minor (e.g. ^0.8.0 → >=0.8.0 <0.9.0), so consumers on @tanstack/ai 0.14.x hit unmet-peer warnings. Switch the peer + optional adapter ranges to >=x.y.z <1.0.0 to accept the full 0.x line. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 329f1fb commit 4358cc1

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/tanstack-ai": patch
3+
---
4+
5+
Widen `@tanstack/ai` peer dependency and optional adapter ranges to accept newer 0.x releases (up to but not including 1.0.0). Previously the caret ranges on pre-1.0 versions resolved to a single minor (e.g. `^0.8.0` only allowed `>=0.8.0 <0.9.0`), causing unmet-peer warnings when consumers installed `@tanstack/ai@0.14.0` and matching adapter versions.

packages/tanstack-ai/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,17 @@
141141
"dotenv": "^17.4.0"
142142
},
143143
"peerDependencies": {
144-
"@tanstack/ai": "^0.8.0"
144+
"@tanstack/ai": ">=0.8.0 <1.0.0"
145145
},
146146
"optionalDependencies": {
147147
"@anthropic-ai/sdk": "^0.82.0",
148148
"@google/genai": "^1.48.0",
149149
"@openrouter/sdk": "^0.10.2",
150-
"@tanstack/ai-anthropic": "^0.7.1",
151-
"@tanstack/ai-gemini": "^0.8.4",
152-
"@tanstack/ai-grok": "^0.6.3",
153-
"@tanstack/ai-openai": "^0.7.2",
154-
"@tanstack/ai-openrouter": "^0.7.0"
150+
"@tanstack/ai-anthropic": ">=0.7.1 <1.0.0",
151+
"@tanstack/ai-gemini": ">=0.8.4 <1.0.0",
152+
"@tanstack/ai-grok": ">=0.6.3 <1.0.0",
153+
"@tanstack/ai-openai": ">=0.7.2 <1.0.0",
154+
"@tanstack/ai-openrouter": ">=0.7.0 <1.0.0"
155155
},
156156
"packageManager": "pnpm@10.33.0"
157157
}

0 commit comments

Comments
 (0)