chore(deps): upgrade AI SDK family to v4/v7 (supersedes #255, #249, #253, #250) - #275
Conversation
β¦i/react) Bumps ai 6.0.206 -> 7.0.37, @ai-sdk/google 3.0.82 -> 4.0.24, @ai-sdk/openai 3.0.71 -> 4.0.20, @ai-sdk/react 3.0.201 -> 4.0.40 as one coordinated unit, superseding Dependabot PRs #255, #249, #253, #250. Root cause for not merging them individually: @ai-sdk/google@4 emits the new LanguageModelV4 spec, but the `ai` package's LanguageModel type only recognizes it from v7 onward -- upgrading @ai-sdk/google alone (as #255 proposed) left services/ai/providerFactory.ts with a real tsc error (LanguageModelV4 not assignable to LanguageModelV2 | LanguageModelV3). Bumping the whole family together resolves it with no application code changes needed. Verified: pnpm run typecheck (clean), pnpm run lint (clean), and the full AI-provider/completion-fetch test suites (171 tests across aiProviderService.test.ts, geminiService.test.ts, providerFactory.test.ts, useWorldScriptAI.test.ts, worldScriptCompletionFetch.test.ts) all passing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: β Files ignored due to path filters (1)
π Files selected for processing (2)
π WalkthroughWalkthroughThe AI SDK dependencies were upgraded to ChangesAI SDK upgrade
Estimated code review effort: 1 (Trivial) | ~5 minutes π₯ Pre-merge checks | β 5β Passed checks (5 passed)
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
π CodeAnt Quality Gate ResultsCommit: β Overall Status: PASSEDQuality Gate Details
|
Codecov Reportβ All modified and coverable lines are covered by tests. π’ Thoughts on this report? Let us know! |
Summary
Supersedes and closes the need for #255, #249, #253, #250 β those four Dependabot PRs each bump one package in the same AI SDK family, but only merging all four together actually works.
Root cause for why they couldn't merge individually:
@ai-sdk/google@4(proposed by #255) emits the newLanguageModelV4spec, but theaipackage'sLanguageModeltype only recognizesLanguageModelV4from v7 onward. Merging #255 alone leftservices/ai/providerFactory.tswith a realtscerror:Bumping
ai6β7,@ai-sdk/google3β4,@ai-sdk/openai3β4, and@ai-sdk/react3β4 together resolves this with no application code changes βstreamText/toTextStreamResponse/onFinish'susageshape (services/ai/worldScriptCompletionFetch.ts) andcreateLanguageModelForWorldScript'sLanguageModelreturn type (services/ai/providerFactory.ts) are unaffected by the major bump.Test plan
pnpm run typecheckβ clean (noLanguageModelV4mismatch)pnpm run lintβ cleanaiProviderService.test.ts(52),geminiService.test.ts(28),providerFactory.test.ts(13),useWorldScriptAI.test.ts(7),worldScriptCompletionFetch.test.ts(19), plus the 52 in aiProviderService again post-bump for a clean re-runai/@ai-sdk/reactdirectly (providerFactory.ts,worldScriptCompletionFetch.ts,useWorldScriptAI.ts) β all covered by the aboveFollow-up
Once this merges, I'll close #255, #249, #253, #250 as superseded by this PR.
π€ Generated with Claude Code
Summary by CodeRabbit