[Bug]: update zod results in an unexpected behaviour
maorun opened this issue · 3 comments
maorun commented
Which packages are impacted?
-
remix-validated-form
-
@remix-validated-form/with-zod
-
@remix-validated-form/with-yup
-
zod-form-data
What version of these packages are you using?
remix-validated-form
: latest
Please provide a link to a minimal reproduction of the issue.
https://github.com/maorun/remix-validated-form
Steps to Reproduce the Bug or Issue
- git clone https://github.com/maorun/remix-validated-form
- run
npm run vitest
(looking normal) - run
yarn up zod
- run
npm run vitest
(missing second error)
Expected behavior
As a user, I expected the update of zod has no changed in the error messages, but the last error is missed.
Screenshots or Videos
No response
Platform
- OS: macOS 13.4.1
Additional context
z.array(
z.number().positive(),
).parse(['asdf', -232])
gives an correct error
airjp73 commented
Looks like this might be an upstream issue in zod: colinhacks/zod#2677
maorun commented
yeah that could be.
colinhacks/zod#2719 should be fix that
maorun commented
seems to be fixed with colinhacks/zod#2912 and https://github.com/airjp73/remix-validated-form/pull/330