sveltekit-superforms
Advanced tools
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.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.