SvelteKit SuperForms (javascript)

ciscoheat/sveltekit-superforms last check 86 releases
Notes
no notes yet
Release notes
v2.11.0 · 1y+
view on github

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 the onUpdate event in the result property. Can be used to access the ActionData more easily.
  • Added a fail function, works the same as the SvelteKit fail, but removes files and sets form.valid to false.
  • 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.