Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/typescript/ai-anthropic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@
"test:types": "tsc"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.71.0",
"@tanstack/ai": "workspace:*"
"@anthropic-ai/sdk": "^0.71.0"
},
Comment on lines 42 to 44
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Search for @tanstack/ai imports in ai-anthropic source code
echo "Checking for @tanstack/ai imports in packages/typescript/ai-anthropic/src/"
rg -n "from ['\"]@tanstack/ai['\"]" packages/typescript/ai-anthropic/src/ || echo "No direct imports found"

echo ""
echo "Also checking for relative imports that might reference tanstack/ai types:"
rg -n "@tanstack/ai" packages/typescript/ai-anthropic/src/ || echo "No @tanstack/ai references found"

Repository: TanStack/ai

Length of output: 2777


This is a breaking change that requires a changeset.

The source code in packages/typescript/ai-anthropic/src/ directly imports from @tanstack/ai, including non-type imports from @tanstack/ai and @tanstack/ai/adapters in the adapter implementations (text.ts, summarize.ts). Removing @tanstack/ai from dependencies while retaining only a peerDependency means consuming projects must now explicitly install @tanstack/ai themselves, or the package will fail at runtime.

While this peer-dependency architecture may be intentional for adapter packages, it represents a breaking change in the installation contract. Verify this change is deliberate and check the changeset item in the PR checklist.

"devDependencies": {
"@vitest/coverage-v8": "4.0.14"
},
"peerDependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai": "workspace:^",
"zod": "^4.0.0"
}
}
5 changes: 2 additions & 3 deletions packages/typescript/ai-gemini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@
"adapter"
],
"dependencies": {
"@google/genai": "^1.30.0",
"@tanstack/ai": "workspace:*"
"@google/genai": "^1.30.0"
},
"devDependencies": {
"@vitest/coverage-v8": "4.0.14",
"vite": "^7.2.7"
},
"peerDependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai": "workspace:^",
"zod": "^4.0.0"
}
}
3 changes: 1 addition & 2 deletions packages/typescript/ai-ollama/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@
"adapter"
],
"dependencies": {
"@tanstack/ai": "workspace:*",
"ollama": "^0.6.3"
},
"devDependencies": {
"@vitest/coverage-v8": "4.0.14",
"vite": "^7.2.7"
},
"peerDependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai": "workspace:^",
"zod": "^4.0.0"
}
}
3 changes: 1 addition & 2 deletions packages/typescript/ai-openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@
"adapter"
],
"dependencies": {
"@tanstack/ai": "workspace:*",
"openai": "^6.9.1"
},
"devDependencies": {
"@vitest/coverage-v8": "4.0.14",
"vite": "^7.2.7"
},
"peerDependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai": "workspace:^",
"zod": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/typescript/ai-react-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
"remark-gfm": "^4.0.1"
},
"peerDependencies": {
"@tanstack/ai-client": "workspace:*",
"@tanstack/ai-react": "workspace:*",
"@types/react": ">=18.0.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@tanstack/ai-client": "workspace:*",
"@vitest/coverage-v8": "4.0.14",
"vite": "^7.2.7"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/typescript/ai-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"streaming"
],
"dependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai-client": "workspace:*"
},
"devDependencies": {
Expand All @@ -52,8 +51,7 @@
"vite": "^7.2.7"
},
"peerDependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai-client": "workspace:*",
"@tanstack/ai": "workspace:^",
"@types/react": ">=18.0.0",
"react": ">=18.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/typescript/ai-solid-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"solid-markdown": "^2.1.0"
},
"peerDependencies": {
"@tanstack/ai-client": "workspace:*",
"@tanstack/ai-solid": "workspace:*",
"@tanstack/ai-client": "workspace:^",
"@tanstack/ai-solid": "workspace:^",
"solid-js": ">=1.9.7"
},
"devDependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/typescript/ai-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"streaming"
],
"dependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai-client": "workspace:*"
},
"devDependencies": {
Expand All @@ -53,8 +52,7 @@
"vitest": "^4.0.14"
},
"peerDependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai-client": "workspace:*",
"@tanstack/ai": "workspace:^",
"solid-js": ">=1.9.10"
}
}
4 changes: 1 addition & 3 deletions packages/typescript/ai-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"streaming"
],
"dependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai-client": "workspace:*",
"svelte": "^5.20.0"
},
Expand All @@ -59,8 +58,7 @@
"vite": "^7.2.7"
},
"peerDependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai-client": "workspace:*",
"@tanstack/ai": "workspace:^",
"svelte": "^5.0.0"
}
}
3 changes: 0 additions & 3 deletions packages/typescript/ai-vue-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,13 @@
],
"dependencies": {
"@crazydos/vue-markdown": "^1.1.4",
"@tanstack/ai-client": "workspace:*",
"@tanstack/ai-vue": "workspace:*",
"rehype-highlight": "^7.0.2",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"remark-gfm": "^4.0.1"
},
"peerDependencies": {
"@tanstack/ai-client": "workspace:*",
"@tanstack/ai-vue": "workspace:*",
"@vitejs/plugin-vue": "^6.0.2",
"vue": ">=3.5.0"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/typescript/ai-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"streaming"
],
"dependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai-client": "workspace:*"
},
"devDependencies": {
Expand All @@ -53,8 +52,7 @@
"vue": "^3.5.25"
},
"peerDependencies": {
"@tanstack/ai": "workspace:*",
"@tanstack/ai-client": "workspace:*",
"@tanstack/ai": "workspace:^",
"vue": ">=3.5.0"
}
}
25 changes: 11 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading