Skip to content

upgrade dependencies for chat client sdk. - #1255

Merged
Zhenghui Yan (vwxyzh) merged 2 commits into
Azure:mainfrom
vwxyzh:z/dep
Nov 3, 2026
Merged

Zhenghui Yan (vwxyzh) merged 2 commits into
Azure:mainfrom
vwxyzh:z/dep

Conversation

@vwxyzh

Copy link
Copy Markdown
Member

This pull request updates dependencies in the webpubsub-chat-client package to address a security vulnerability and align with the latest schema import conventions. It also adapts the codebase to work with these updated dependencies.

Dependency and Security Updates:

  • Upgraded zod to version 4.6.6 to fix a memory-exhaustion vulnerability (GHSA-mrhx-c7xc-m3w5). [1] [2]
  • Upgraded @ag-ui/core from 0.0.57 to 1.0.3 to stay current and compatible with new schema import paths. [1] [2]

Codebase Adaptation:

  • Updated imports of EventSchemas to use @ag-ui/core/schemas instead of @ag-ui/core in agUiCodec.ts and agentCodec.test.ts. [1] [2]

Copilot AI balanced review requested due to automatic review settings November 2, 2026 07:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The lockfile hard-codes Microsoft feed proxy URLs instead of canonical npm tarball URLs, contrary to repository guidance and tying installs to that endpoint.

No open issues 🎉

What changed in this PR

Updates the chat client SDK’s dependencies to address the reported Zod memory-exhaustion vulnerability and adapt to the newer AG-UI schema exports.

Changes:

  • Upgrades @ag-ui/core to 1.0.3 and adds zod at ^4.6.6, with corresponding lockfile updates.
  • Moves schema imports to @ag-ui/core/schemas in the codec and its tests.
  • Documents the updates in the changelog and ignores the root .local directory.
File Description
sdk/​webpubsub-chat-client/​yarn.lock Locks the updated AG-UI and Zod dependencies.
sdk/​webpubsub-chat-client/​tests/​agentCodec.test.ts Adapts the test schema import.
sdk/​webpubsub-chat-client/​src/​agUiCodec.ts Adapts the codec schema import.
sdk/​webpubsub-chat-client/​package.json Updates runtime dependency declarations.
sdk/​webpubsub-chat-client/​CHANGELOG.md Records dependency and security updates for beta.4.
.gitignore Excludes the root .local directory.

Review effort: Balanced

Comment thread sdk/webpubsub-chat-client/CHANGELOG.md Resolved
Copilot AI balanced review requested due to automatic review settings November 3, 2026 02:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The committed lockfile still uses proxy tarball URLs in two entries, violating the repository’s requirement to use canonical registry.npmjs.org URLs.

No open issues 🎉

Review effort: Balanced

@vwxyzh
Zhenghui Yan (vwxyzh) merged commit 9a414d2 into Azure:main Nov 3, 2026
9 checks 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.

3 participants