sveltekit-superforms
Advanced tools
Changelog
[2.19.1] - 2024-10-05
ClientValidationAdapter
from sveltekit-superforms/adapters
.onUpdate
.Changelog
[2.19.0] - 2024-09-18
2.0.0-rc.8
, fixing some types (last update before 2.0).failStatus
and SPA action form (string
) options of single page application mode are now deprecated. failStatus
is rarely used, and SPA action form can be created just by setting invalidateAll and applyAction to false
. See this example for details.onSubmit
, onResult
and onUpdate
events will now be caught and sent to onError
, if it exists.Changelog
[2.18.1] - 2024-09-13
SuperFormData
and SuperFormErrors
types for superForm.ZodObjectType
, ZodObjectTypes
and ZodValidation
types for the Zod adapter.ActionResult
as well, for better error handling.Changelog
[2.17.0] - 2024-08-13
posted
is deprecated, due to inconsistencies between server and client validation, and SPA mode. It will be removed in v3. Use a status message or return your own data in the form action to handle form post status.descriptionAsErrors
option for the JSON Schema validator, so you can specify error messages directly in the schema with the description
field.enhance
weren't cleaned up when the form was destroyed. Note that this could be deprecated in a future version. It's advised to use events only when calling superForm
, not with enhance
.Changelog
[2.16.1] - 2024-07-18
2.0.0-beta.0
, which should fix some typing issues with the adapter.Changelog
[2.16.0] - 2024-07-09
customRequest
added to the onSubmit options, that lets you use a custom fetch or XMLHttpRequest when submitting the form. Very useful for progress bars when uploading large files._errors
for all objects, only for arrays.Changelog
[2.15.2] - 2024-06-26
>=0.33.0
to fix a type issue. Please follow the migration guide to update your Valibot schemas if your version is below v0.31.0.Changelog
[2.15.1] - 2024-06-10
0.31.0
, which ends support for any version below that. Please follow the migration guide to update your Valibot schemas.