v1.0.0-rc.3
Pre-release
Pre-release
The third and final RC for Superforms 1.0 has been released!
Read the announcement and migration guide here.
Removed
- For type safety, you cannot send
nullorundefinedtosuperFormanymore. UsesuperValidate, or pass a complete data object tosuperForm. Default values can be added with thedefaultValuesfunction. - The
validoption is removed frommessage, any status >= 400 will return a fail.
Changed
message/setMessageandsetErrorwill now throw an error if the status option is below 400.
Added
- Arrays and objects in the schema can now have errors! They can be found at
field._errorsin the$errorsstore. validatewill now validate the whole form when it's called with no arguments.- Support for
passthrough()on a schema,superValidatewill allow extra keys in that case.