SvelteKit SuperForms (javascript)
Notes
no notes yet
Release notes
v2.24.0
· 1y+
Added
- Exported
SuperValidateOptionstype. - Exported
MergeUnion,MergeFormUnionand amergeFormUnionutility, for handling discriminated unions in forms.
Fixed
- Fixed diff algorithm problem with tainted objects.
- Prevented crash when custom validity doesn't exist for an element.
dateProxydidn't restore properly with snapshots.- Fixed JSON Schema for simple adapters with empty arrays.
Changed
- Bumped TypeBox peerDep requirement to 0.34.28.
- Bumped Effect peerDep requirement to 3.13.7.
- Bumped Valibot peerDep requirement to 1.0.0-rc.3.
- Bumped Zod peerDep requirement to 3.24.2.
Deprecated
- The
flashMessageoption is now deprecated, since SvelteKit has moved to $app/state instead of$app/stores, making it hard to support both. Use sveltekit-flash-message directly (setFlashorredirect) instead of integrating it with Superforms, it's less complicated as well.