Fixed
- Fixed TypeScript type inference for discriminated unions in
ValidationErrors. #653 - Fixed FormData parsing for discriminated unions, so they work properly without requiring
dataType: 'json'. #655 reset()function didn't preserve tainted state for fields that are not being reset when using partial data. #656- Fixed FormData parsing incorrectly coercing empty strings to literal values (e.g.,
z.literal("bar")). Empty strings now properly fail validation instead of being replaced with the literal value. #664 - Fixed
ReferenceErrorwhen usingcustomValiditywithvalidateForm({ update: true }). #669