npm sveltekit-superforms 2.11.0
v2.11.0

latest releases: 2.23.1, 2.23.0, 2.22.1...
11 months ago

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.

Don't miss a new sveltekit-superforms release

NewReleases is sending notifications on new releases.