v1.0.0-rc.4
Pre-release
Pre-release
Read the announcement and migration guide here.
Changed
- It's not possible to send arbitrary data to
superFormanymore, aSuperValidatedstructure is required, which is returned fromsuperValidateon the server andsuperValidateSync, so in most cases this is not a problem. - Reverted that
message/setMessageandsetErrorwill throw an error if status is lower than 400. Using a range error type check instead.
Fixed
- Fixed flash messages being displayed early. This update also means that at least sveltekit-flash-message 1.0.0-rc.3 is required to work together with Superforms.
- Form data was reset to its previous state when
errorwas thrown. - Form-level errors can be added with
setError, using an empty string as path.