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
ActionResultfor success or failure is now added to theonUpdateevent in theresultproperty. Can be used to access theActionDatamore easily. - Added a
failfunction, works the same as the SvelteKit fail, but removes files and setsform.validtofalse. options.configadded 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.