I want to implement frontend validation with either Yup or Joi.
From all the docs and articles that I've found, I've got to a couple of conclusions:
However, I didn't manage to find what Joi lacks in terms of support compared to Yup?
Right now, from all of these conclusions, it's choosing to either have a smaller bundle or better performance.
For frontend performance bundle size is more important than fast work (you do not need to make millions of validations on the client-side). As you mentioned: "Yup bundle size [60.1kB] is ~2.5 times smaller than Joi [145.9kB] - link"
So my choice is Yup.
But if you use Joi for backend and you're going to share schemas with frontend, I agree with Seth Holladay.