Skip to content

v1.0.0-rc.4

Pre-release
Pre-release

Choose a tag to compare

@ciscoheat ciscoheat released this 09 Jun 10:43
· 1086 commits to main since this release

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.