airjp73/rvf

[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

  1. git clone https://github.com/maorun/remix-validated-form
  2. run npm run vitest (looking normal)
  3. run yarn up zod
  4. 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

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