Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix preprocessor handling with sibling errors #2719

Closed
wants to merge 2 commits into from

Conversation

kpdecker
Copy link

@kpdecker kpdecker commented Sep 7, 2023

Fixes #2687

@netlify
Copy link

netlify bot commented Sep 7, 2023

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d6e982f
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/64fa3ae0e387ef00082df899
😎 Deploy Preview https://deploy-preview-2719--guileless-rolypoly-866f8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -721,7 +721,7 @@ z.string().regex(regex);
z.string().includes(string);
z.string().startsWith(string);
z.string().endsWith(string);
z.string().datetime(); // defaults to UTC, see below for options
z.string().datetime(); // ISO 8601; default is without UTC offset, see below for options
Copy link
Author

Choose a reason for hiding this comment

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

Unsure if PRs should include deno build artifacts. If no I can pull.

@thiagomeireless
Copy link

Hey @colinhacks would you be able to merge this fix? It's affecting multiple projects...

@nathanchapman
Copy link

Same here, we can't upgrade to 3.22.3 for the email regex vulnerability fix because of this breaking change on 3.22.0

@azhiv
Copy link
Contributor

azhiv commented Oct 6, 2023

I confirm that this PR also fixes #2677 and #2671.

@rap2hpoutre
Copy link

rap2hpoutre commented Oct 19, 2023

I would be glad having it merged! Do you have a fork @kpdecker ?

@moroine
Copy link

moroine commented Nov 22, 2023

Hey, any update on this?

Do we plan to merge this? I can help if needed.

@flavianh
Copy link

Please merge this, I can't upgrade Zod otherwise 😅

@flavianh
Copy link

flavianh commented Jan 6, 2024

@colinhacks Is there something blocking this PR? Can we help somehow?

@micahh2
Copy link

micahh2 commented Feb 6, 2024

It seems like (according to this comment: #2820 (comment)), the team here uses "thumbs up on the root comment" as a measure to gauge popularity of a PR.

If you'd like to see this PR considered, it could help to give a 👍 to the first comment on this thread.

@aaronadamsCA
Copy link

@kpdecker As a non-contributor who would love to see this merged, may I suggest some improvements to reduce the change size?

#2912 is a duplicate by @yukukotani with a simpler fix:

https://github.com/colinhacks/zod/pull/2912/files#diff-c54113cf61ec99691748a3890bfbeb00e10efb3f0a76f03a0fd9ec49072e410a

#3124 is another duplicate by @selimb with a simpler test (which itself could be further simplified):

https://github.com/colinhacks/zod/pull/3124/files#diff-baf84a3000a84c7d96342171542949faad6d2d5d28830f610af2df10180e3b9f

I'd also suggest removing the unrelated README.md changes.

yukukotani added a commit to yukukotani/zod that referenced this pull request Feb 7, 2024
@yukukotani
Copy link
Contributor

yukukotani commented Feb 7, 2024

As @aaronadamsCA said, my small PR is enough to fix this. I've just copied the test from this PR and it's passed. 619b985

But no matter how the PR is small, nothing happens while colinhacks is too busy to maintain zod. We need additional maintainers.

@kpdecker kpdecker closed this Feb 8, 2024
@kpdecker
Copy link
Author

kpdecker commented Feb 8, 2024

I unfortunately don't have time to support this PR as we've transitioned away from Zod. Closing to let one of the active community members take over.

@aaronadamsCA
Copy link

Here is a one-line fix you can apply as a local patch to the Zod package:

I would suggest lending your 👍 to #2912 to encourage a fix to be merged.

colinhacks pushed a commit to yukukotani/zod that referenced this pull request Mar 21, 2024
colinhacks added a commit that referenced this pull request Mar 21, 2024
…ect (#2912)

* add failing test

* refer parse status instead of issues length

* copy test from #2719

* Improve preprocess addIssue behavior

* Clean up

* Move tests

---------

Co-authored-by: Colin McDonnell <[email protected]>
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.

Preprocessing hides errors in zod 3.22.x
10 participants