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

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

Read the announcement and migration guide here.

Changed

  • It's not possible to send arbitrary data to superForm anymore, a SuperValidated structure is required, which is returned from superValidate on the server and superValidateSync, so in most cases this is not a problem.
  • Reverted that message/setMessage and setError will 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 error was thrown.
  • Form-level errors can be added with setError, using an empty string as path.

Don't miss a new sveltekit-superforms release

NewReleases is sending notifications on new releases.