chore(deps): update dependency @ai-sdk/react to v2.0.112#996
chore(deps): update dependency @ai-sdk/react to v2.0.112#996renovate[bot] merged 1 commit intomainfrom
Conversation
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
0398710 to
bee4ea8
Compare
| "dependencies": { | ||
| "@ai-sdk/openai": "2.0.80", | ||
| "@ai-sdk/react": "2.0.109", | ||
| "@ai-sdk/react": "2.0.112", |
There was a problem hiding this comment.
Bug: The direct ai dependency is 5.0.109, but @ai-sdk/react requires 5.0.110. This will cause two versions to be installed, leading to inconsistent behavior.
Severity: HIGH | Confidence: High
🔍 Detailed Analysis
The package.json specifies a direct dependency on ai@5.0.109, while the updated @ai-sdk/react package requires ai@5.0.110. This mismatch will cause the package manager to install both versions. Code that directly imports from ai, such as convertToModelMessages in src/app/api/chat/route.ts, will use version 5.0.109. Meanwhile, components like useChat from @ai-sdk/react will internally use version 5.0.110. This can lead to inconsistent behavior, particularly with features like providerMetadata preservation in tool calls, which was fixed in ai@5.0.105+. Using two different versions simultaneously could cause subtle bugs and data inconsistencies.
💡 Suggested Fix
Update the direct dependency for ai in package.json to match the version required by @ai-sdk/react. Change "ai": "5.0.109" to "ai": "5.0.110" to ensure a single, consistent version is used across the application.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: package.json#L19
Potential issue: The `package.json` specifies a direct dependency on `ai@5.0.109`, while
the updated `@ai-sdk/react` package requires `ai@5.0.110`. This mismatch will cause the
package manager to install both versions. Code that directly imports from `ai`, such as
`convertToModelMessages` in `src/app/api/chat/route.ts`, will use version `5.0.109`.
Meanwhile, components like `useChat` from `@ai-sdk/react` will internally use version
`5.0.110`. This can lead to inconsistent behavior, particularly with features like
`providerMetadata` preservation in tool calls, which was fixed in `ai@5.0.105+`. Using
two different versions simultaneously could cause subtle bugs and data inconsistencies.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 7015606
This PR contains the following updates:
2.0.109->2.0.112Release Notes
vercel/ai (@ai-sdk/react)
v2.0.112Patch Changes
v2.0.111Compare Source
Patch Changes
427547a]v2.0.110Compare Source
Patch Changes
52e8efe: Require minimal versions for RSC to address CVE-2025-55182Configuration
📅 Schedule: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.