Backport #1902: Fix compatibility with Zod 4.4.x#1938
Merged
Conversation
* Fix compatibility with Zod 4.4.x * DCO Remediation Commit for Ziyak <ziyak97@gmail.com> I, Ziyak <ziyak97@gmail.com>, hereby add my Signed-off-by to this commit: 2bf5871 Signed-off-by: Ziyak <ziyak97@gmail.com> --------- Signed-off-by: Ziyak <ziyak97@gmail.com> Signed-off-by: Nathan Rajlich <n@n8.io> Co-authored-by: Nathan Rajlich <n@n8.io> Signed-off-by: Ziyak Jehangir <53836911+ziyak97@users.noreply.github.com>
🦋 Changeset detectedLatest commit: cee3e25 The changes in this PR will be included in the next version bump. This PR includes changesets to release 22 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
Backports #1902 to stable by adjusting the WorkflowRunSchema discriminated union so that fields modeled as z.undefined() are also marked .optional(), restoring compatibility with Zod 4.4.x (where z.undefined()-typed properties are treated as required).
Changes:
- Make
output,error, andcompletedAtoptional in union variants where they are constrained toundefined(e.g.,pending,running,cancelled,completedforerror,failedforoutput).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PR #1902 landed without a changeset; this adds the missing patch-level changeset for @workflow/world to the backport branch.
Member
Contributor
Author
🧪 E2E Test Results❌ Some tests failed Summary
❌ Failed Tests🌍 Community Worlds (83 failed)mongodb (11 failed):
redis (7 failed):
turso (65 failed):
Details by Category✅ ▲ Vercel Production
✅ 💻 Local Development
✅ 📦 Local Production
✅ 🐘 Local Postgres
✅ 🪟 Windows
❌ 🌍 Community Worlds
✅ 📋 Other
|
TooTallNate
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated backport of #1902 to
stable.Triggered by the
backport-stablelabel.Merge conflicts were resolved by AI (opencode with Claude Opus). Please review the conflict resolution carefully before merging.