SvelteKit SuperForms (javascript)

ciscoheat/sveltekit-superforms last check 86 releases
Notes
no notes yet
Release notes
v2.30.0
view on github

Security

  • Devalue dependency version updated to prevent CVE-2026-22774 and two other minor vulnerabilities.

Added

  • Added adapter to support Standard Schema, now any validation library implementing that interface can be used with Superforms! Big thanks to sillvva for this contribution! Note however that the defaults option is required when using this adapter, as for default values to be inferred automatically, a more specialized adapter for the validation library (handling JSON Schema) needs to be used.

Fixed

  • Improved error message for "No shape could be created for schema" to suggest using zod4 adapter when applicable. #594
  • Added runtime detection warning when Zod v4 schema is passed to Zod v3 adapter, helping users identify adapter version mismatch. #594
  • Valibot adapter now handles transformation actions (trim, transform, etc.) properly by using typeMode: 'input' and errorMode: 'ignore' as defaults. This prevents errors when schemas contain transformations. Users can override these settings by passing typeMode and errorMode options to the adapter. #668