v2.10.6
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
, noterrors-and-message
, as it didn't work anyway.
Fixed
- the
event.result.error
signature in onError was incorrect, it doesn't always matchApp.Error
. It is now a union betweenApp.Error
, The built-in JSError
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.