Skip to content

chore(deps): bump jsondiffpatch and ai in /examples/node/observability-vercel-ai#3877

Draft
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/examples/node/observability-vercel-ai/multi-939c0d22d6
Draft

chore(deps): bump jsondiffpatch and ai in /examples/node/observability-vercel-ai#3877
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/examples/node/observability-vercel-ai/multi-939c0d22d6

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 2, 2026

Removes jsondiffpatch. It's no longer used after updating ancestor dependency ai. These dependencies need to be updated together.

Removes jsondiffpatch

Updates ai from 4.3.19 to 6.0.105

Release notes

Sourced from ai's releases.

ai@6.0.105

Patch Changes

  • Updated dependencies [58bc42d]
    • @​ai-sdk/provider-utils@​4.0.16
    • @​ai-sdk/gateway@​3.0.59

ai@6.0.104

Patch Changes

  • Updated dependencies [1330f2f]
    • @​ai-sdk/gateway@​3.0.58

ai@6.0.103

Patch Changes

  • Updated dependencies [ba63bc2]
    • @​ai-sdk/gateway@​3.0.57

ai@6.0.102

Patch Changes

  • Updated dependencies [45f0a7f]
    • @​ai-sdk/gateway@​3.0.56

ai@6.0.101

Patch Changes

  • 5230482: fix(ai): Don't create duplicate tool parts when models call non-existent tools

ai@5.0.141

Patch Changes

  • Updated dependencies [4db4318]
    • @​ai-sdk/gateway@​2.0.47

ai@5.0.140

Patch Changes

  • Updated dependencies [3749ed6]
    • @​ai-sdk/gateway@​2.0.46

ai@5.0.139

Patch Changes

  • Updated dependencies [9212b2d]
    • @​ai-sdk/gateway@​2.0.45
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Open with Devin

Removes [jsondiffpatch](https://github.com/benjamine/jsondiffpatch). It's no longer used after updating ancestor dependency [ai](https://github.com/vercel/ai). These dependencies need to be updated together.


Removes `jsondiffpatch`

Updates `ai` from 4.3.19 to 6.0.105
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/ai@4.3.19...ai@6.0.105)

---
updated-dependencies:
- dependency-name: jsondiffpatch
  dependency-version: 
  dependency-type: indirect
- dependency-name: ai
  dependency-version: 6.0.105
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 2, 2026
@vercel
Copy link

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Mar 2, 2026 2:23pm

Request Review

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 2, 2026
@mmabrouk mmabrouk self-requested a review March 3, 2026 11:06
@mmabrouk mmabrouk marked this pull request as draft March 3, 2026 11:06
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

Comment on lines 13 to +16
"@opentelemetry/sdk-trace-base": "^1.28.0",
"@opentelemetry/sdk-trace-node": "^1.28.0",
"@opentelemetry/semantic-conventions": "^1.28.0",
"ai": "^4.3.16",
"ai": "^6.0.105",
Copy link
Contributor

Choose a reason for hiding this comment

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

🔴 Incompatible @ai-sdk/openai v1.x with ai v6 due to mismatched @ai-sdk/provider major versions

ai was bumped from v4 to v6 but @ai-sdk/openai was left at ^1.3.22. These packages share a core interface contract via @ai-sdk/provider.

Root Cause and Impact

The lockfile shows ai v6.0.105 depends on @ai-sdk/provider v3.0.8, while @ai-sdk/openai v1.3.24 depends on @ai-sdk/provider v1.1.3. These are two incompatible major versions of the provider interface.

In examples/node/observability-vercel-ai/app.js:4-5:

import { openai } from "@ai-sdk/openai";
import { generateText } from "ai";

The call openai("gpt-4o-mini") creates a model object implementing the LanguageModel interface from @ai-sdk/provider v1.x. However, generateText from ai v6 expects a model implementing the LanguageModel interface from @ai-sdk/provider v3.x. Since these are two different major versions with breaking interface changes, this will fail at runtime.

@ai-sdk/openai needs to be bumped to a v2.x+ release that uses @ai-sdk/provider v3.x to be compatible with ai v6.

Impact: The example is completely broken — running npm start will fail at runtime when generateText attempts to use the incompatible model object.

(Refers to lines 10-16)

Prompt for agents
In examples/node/observability-vercel-ai/package.json, the @ai-sdk/openai dependency on line 10 needs to be updated from ^1.3.22 to a version compatible with ai v6 (which uses @ai-sdk/provider v3.x). This likely means updating to @ai-sdk/openai v2.x or higher. After updating the version in package.json, regenerate the package-lock.json by running npm install. Check the Vercel AI SDK v5/v6 migration guide for the exact compatible version of @ai-sdk/openai.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants