Skip to content

Upgrade zod dependency from 3.x to 4.3.5#37006

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/update-zod-dependency-version
Closed

Upgrade zod dependency from 3.x to 4.3.5#37006
Copilot wants to merge 2 commits intomainfrom
copilot/update-zod-dependency-version

Conversation

Copy link
Contributor

Copilot AI commented Jan 9, 2026

Packages impacted by this PR

  • @azure/openai
  • @azure/ai-projects

Issues associated with this PR

Dependency upgrade tracking issue for zod package.

Describe the problem that is addressed by this PR

The zod dependency was pinned to version 3.x (3.24.2-3.25.76) across packages. Version 4.3.5 is available with no breaking changes between 3.25.76 and 4.0.0.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Direct version bump to latest stable 4.3.5. No code changes required due to backward compatibility.

Updated packages:

  • @azure/openai and samples: ^3.24.2 → ^4.3.5
  • @azure/ai-projects: ^4.2.1 → ^4.3.5

Are there test cases added in this PR? (If not, why?)

No. Dependency upgrade only. Existing tests validate compatibility.

Provide a list of related PRs (if any)

None

Command used to generate this PR:**(Applicable only to SDK release request PRs)

N/A

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)
Original prompt

This section details on the original issue you should resolve

<issue_title>Dependency package zod has a new version available</issue_title>
<issue_description>We have identified a dependency on version 3.25.76 of zod. A new version (4.3.5) is available for upgrade.

Following are the steps to upgrade package dependency.

  1. Understand the breaking changes between the version being used and the version you want to upgrade to.

  2. Identify all packages that take a dependency on this package.

  3. Go to the root folder for each such package (/sdk/service-name/package-name) and update package.json to have the new version.

  4. Run 'pnpm install' to ensure the new version is pulled in.

  5. Make relevant changes to absorb the breaking changes.

  6. Repeat steps 3 to 5 for each of the packages that have a dependency on this package.</issue_description>

Comments on the Issue (you are @copilot in this section)

@jeremymeng https://github.com/colinhacks/zod/releases/tag/v4.0.1

No real code changes between 3.25.76 and 4.0.0</comment_new>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jeremymeng <7583839+jeremymeng@users.noreply.github.com>
Copilot AI changed the title [WIP] Update zod package to version 4.3.5 Upgrade zod dependency from 3.x to 4.3.5 Jan 9, 2026
Copilot AI requested a review from jeremymeng January 9, 2026 18:48
@jeremymeng jeremymeng marked this pull request as ready for review January 9, 2026 18:51
Copilot AI review requested due to automatic review settings January 9, 2026 18:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the zod dependency from version 3.x to 4.3.5 across the @azure/openai and @azure/ai-projects packages. According to the zod release notes, there are no breaking changes between 3.25.76 and 4.0.0, making this a safe upgrade.

  • Upgrades zod from ^3.24.2 to ^4.3.5 in @azure/openai and its samples
  • Upgrades zod from ^4.2.1 to ^4.3.5 in @azure/ai-projects
  • Updates pnpm-lock.yaml to reflect the new version and removes references to the old 3.x version

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/openai/openai/package.json Updates zod devDependency from ^3.24.2 to ^4.3.5
sdk/openai/openai/samples/v2-beta/typescript/package.json Updates zod dependency from ^3.24.2 to ^4.3.5 for TypeScript samples
sdk/openai/openai/samples/v2-beta/javascript/package.json Updates zod dependency from ^3.24.2 to ^4.3.5 for JavaScript samples
sdk/ai/ai-projects/package.json Updates zod devDependency from ^4.2.1 to ^4.3.5
pnpm-lock.yaml Updates lock file to resolve all zod references to version 4.3.5 and removes 3.25.76
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@jeremymeng
Copy link
Member

/check-enforcer evaluate

@jeremymeng jeremymeng closed this Jan 13, 2026
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.

Dependency package zod has a new version available

3 participants