github ciscoheat/sveltekit-superforms v1.0.0-rc.3

latest releases: v3.1.0, v3.0.0, v3.0.0-next.1...
pre-release3 years ago

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.

Don't miss a new sveltekit-superforms release

NewReleases is sending notifications on new releases.