Skip to content

v1.0.0-rc.3

Pre-release
Pre-release

Choose a tag to compare

@ciscoheat ciscoheat released this 06 Jun 20:47
· 1086 commits to main since this 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 null or undefined to superForm anymore. Use superValidate, or pass a complete data object to superForm. Default values can be added with the defaultValues function.
  • The valid option is removed from message, any status >= 400 will return a fail.

Changed

  • message/setMessage and setError will 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._errors in the $errors store.
  • validate will now validate the whole form when it's called with no arguments.
  • Support for passthrough() on a schema, superValidate will allow extra keys in that case.