v2.11.0
Migration guide: https://superforms.rocks/migration-v2
More detailed list of what's new: https://superforms.rocks/whats-new-v2
Added
- The
ActionResult
for success or failure is now added to theonUpdate
event in theresult
property. Can be used to access theActionData
more easily. - Added a
fail
function, works the same as the SvelteKit fail, but removes files and setsform.valid
tofalse
. options.config
added to the Zod adapter, so the JSON Schema generation can be customized.
Fixed
- Snapshots couldn't handle files. They are now reverted to their default value when captured and restored in a snapshot, including the tainted state for these fields.