sveltekit-superforms
Advanced tools
Changelog
[2.13.1] - 2024-05-07
FormPath
now extends only basic objects and arrays, avoiding issues with classes, all built-in objects like File
and Date
, and special "branded" types that validation libraries are using. Thanks to Matt DeKok for this fix!devalue
updated to ^5.0.0
to handle invalid dates.Changelog
[2.13.0] - 2024-05-03
Changelog
[2.12.6] - 2024-04-23
Changelog
[2.12.5] - 2024-04-16
use:enhance
was only intended for SPA mode to fully support progressive enhancement, so it now properly checks for that before adding the missing method="POST"
attribute on the form.Changelog
[2.12.4] - 2024-04-09
FormPathLeaves
caused a memory leak when using svelte-package
.Changelog
[2.12.3] - 2024-04-08
Map
and Set
.submit
method now falls back to submit, if no support for requestSubmit in browser.isTainted
now handles the type of $tainted
in generic components.id
option for superForm (not superValidate) wasn't used in multiple form scenarios.Changelog
[2.12.2] - 2024-03-29
FormResult
type that can be used in onUpdate
, it didn't filter out SuperValidated.Changelog
[2.12.0] - 2024-03-28
use:enhance
on all related forms.FormPath
with nested arrays. Error output improved as well.Changelog
[2.11.0] - 2024-03-22
ActionResult
for success or failure is now added to the onUpdate
event in the result
property. Can be used to more easily access the ActionData
.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.