sveltekit-superforms
Advanced tools
Changelog
[2.10.5] - 2024-03-18
fileProxy
, filesProxy
, fileFieldProxy
and filesFieldProxy
, so File
objects can be used with bind:files
on the input field. See file uploads for examples.FormPathLeavesWithErrors
, for the setError
function.instance
and special
validators for Valibot, which now enables File validation for Valibot!taintedMessage
didn't always work when navigating with the History API.tainted
didn't untaint automatically when using arrays.Changelog
[2.9.0] - 2024-03-12
SPA
option can now take a string, corresponding to a form action, and it will post there, even without a html form on the page. Especially useful for debounced server checks like available usernames.superForm
returned a form with an empty id, causing collisions, it is now a random string.customValidity
didn't clear without client-side validators.Changelog
[2.8.1] - 2024-03-07
page
store.Changelog
[2.8.0] - 2024-03-05
undefined
to a field in the $errors
store.onResult
.Changelog
[2.7.0] - 2024-03-03
newState
option for reset
, to set a new state for future resets. Can be used instead of the data
option.null
for nullable schema fields. Ensure that all required file fields aren't set to nullable.string
index in $errors
and $tainted
.submit
can now be passed directly to event handlers.valibot-json-schema
, with support for enum_, amongst others.ZodType
.