github ciscoheat/sveltekit-superforms v2.10.6

latest releases: v3.0.0, v3.0.0-next.1, v2.31.0...
2 years ago

Migration guide: https://superforms.rocks/migration-v2
More detailed list of what's new: https://superforms.rocks/whats-new-v2

Changed

  • The clearOnSubmit option didn't clear the errors when supposed to. To avoid a breaking change, the default option for clearOnSubmit is now message, not errors-and-message, as it didn't work anyway.

Fixed

  • the event.result.error signature in onError was incorrect, it doesn't always match App.Error. It is now a union between App.Error, The built-in JS Error class, and the default App.Error signature { message: string }. See the server errors section for examples when the different kinds of errors are being created.

Don't miss a new sveltekit-superforms release

NewReleases is sending notifications on new releases.