Skip to content

fix(deps): peer the AI SDK v7 provider majors, not the v6 ones - #6

Merged
siarheidudko merged 1 commit into
mainfrom
claude/mcp-remote-http-oauth-ges1mj
Aug 16, 2026
Merged

fix(deps): peer the AI SDK v7 provider majors, not the v6 ones#6
siarheidudko merged 1 commit into
mainfrom
claude/mcp-remote-http-oauth-ges1mj

Conversation

@siarheidudko

Copy link
Copy Markdown
Member

Why

Follow-up to #5, which fixed the same class of problem for @browser-ai/* but only for those two entries.

Every @ai-sdk/* peer range is one major behind the SDK this package depends on. With ai at ^7.0.66, the v3 provider line (v2 for deepseek / openai-compatible) targets ai v6 — so a consumer who follows the declared ranges installs a provider that cannot talk to the core, and npm refuses to resolve the tree at all as soon as anything else pulls in a v7-era provider:

Could not resolve dependency:
peerOptional @ai-sdk/anthropic@"^3.0.0" from @dudko.dev/agent-web@0.0.10
Conflicting peer dependency: @ai-sdk/anthropic@3.0.111

Found the same way as #5 — pointing the sibling demo (dudko-dev/agent-web-react#3) at the published package.

What

peer was now
@ai-sdk/anthropic ^3.0.0 ^4.0.0
@ai-sdk/deepseek ^2.0.0 ^3.0.0
@ai-sdk/google ^3.0.0 ^4.0.0
@ai-sdk/openai ^3.0.0 ^4.0.0
@ai-sdk/openai-compatible ^2.0.0 ^3.0.0
@ai-sdk/xai ^3.0.0 ^4.0.0

These are exactly the majors the devDependencies install, i.e. what CI has been testing against since the AI SDK v7 bump. No source changes; typecheck, format:check, build, test (89 passing) are green. Version bumped to 0.0.11 so the release workflow publishes it.


Generated by Claude Code

Every @ai-sdk/* peer range was one major behind the SDK this package
actually depends on: with `ai` at ^7.0.66, the v3 provider line (v2 for
deepseek and openai-compatible) speaks ai v6, so a consumer following
the ranges installs a provider that cannot talk to the core — and npm
refuses to resolve the tree at all once anything else pulls a v7-era
provider in. Found while pointing the demo at the published package.

The ranges now match what the devDependencies install and CI has been
testing against all along.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011FKop4At26QqqkwVGEjJur
@siarheidudko
siarheidudko merged commit eb803da into main Aug 16, 2026
1 check passed
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.

2 participants