sveltekit-superforms
Advanced tools
Changelog
[2.22.0] - 2024-12-15
Infer
improvements for all adapters, by no other than the Zod creator himself, Colin McDonnell! What a christmas present! 🎄transport
option both for superValidate
and superForm
that the transport
export in hooks.ts
can be directly used in. Note: Requires SvelteKit ^2.11.0
.z.bigint()
was interpreted as a number instead of a BigInt.^3.10.0
. Only the effect
package is required now, not @effect/schema
as before. See the 3.10 release notes for details.Changelog
[2.21.1] - 2024-12-04
Changelog
[2.21.0] - 2024-12-01
^0.34.9
(hoping for a stable release soon).Changelog
[2.20.1] - 2024-11-15
1.0.0-beta.3
(hoping for a stable release soon).2.0.0-rc.23
(hoping for a stable release soon).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
.