Releases: ciscoheat/sveltekit-superforms
Releases Β· ciscoheat/sveltekit-superforms
v2.24.0
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.
v2.23.0
Added
dateProxynow has astepoption, to support seconds (when not divisible by 60).- SuperDebug now opts out of runes mode as default.
Fixed
- Fixed
dateProxyfortimeformats, previously it returned an invalid date. If you only care about the time part in the date, usetime-utcas format to avoid timezone changes. - Vite 6 bundling fixed by introducing a
defaultfield into exports in package.json.
Changed
- Arktype 2.0 is finally released! Adapter updated, please check it out, it's validation on the next level.
- Arktype is now displaying errors with
probleminstead ofmessage, for nicer output. - Zod peerDependency updated to 3.24.1 to be compatible with its latest fix.
- VineJS adapter updated to 3.0.0.
v2.22.1
Fixed
- The transport feature released in 2.22.0 didn't fully handle classes. It should work better now, but the classes must be quite simple to work. Let me know if you have any problems with a certain class.
- Fixed Decimal.js detection in SuperDebug.
v2.22.0 - Christmas edition
Added
- Support for Zod 3.24 and
Inferimprovements for all adapters, by no other than the Zod creator himself, Colin McDonnell! What a christmas present! π - Arbitrary types can now be used in the form with the transport feature in SvelteKit hooks. There is a
transportoption both forsuperValidateandsuperFormthat thetransportexport inhooks.tscan be directly used in. Note: Requires SvelteKit^2.11.0.
Fixed
z.bigint()was interpreted as a number instead of a BigInt.
Changed
- Effect updated to require
^3.10.0. Only theeffectpackage is required now, not@effect/schemaas before. See the 3.10 release notes for details.
v2.21.1
v2.21.0
v2.20.1
Changed
- Valibot updated to require
1.0.0-beta.3(hoping for a stable release soon). - Arktype updated to require
2.0.0-rc.23(hoping for a stable release soon).
Added
- Support for Vine 2.0.
- New validation library: Effect!
Fixed
- customRequest didn't cancel when client-side validation failed.
v2.19.1
v2.19.0
Changed
- Arktype updated to require
2.0.0-rc.8, fixing some types (last update before 2.0).
Deprecated
- The
failStatusand SPA action form (string) options of single-page application mode are now deprecated.failStatusis rarely used, and SPA action form can be created just by setting invalidateAll and applyAction tofalse. See this example for details.
Added
- Exceptions thrown in the
onSubmit,onResultandonUpdateevents will now be caught and sent toonError, if it exists.
Fixed
- Updating the same variable to the same value prevented the onChange event from being triggered.
- Factorized SuperDebug clipboard script.
v2.18.1
Added
- New validation library: class-validator!
- Exported
SuperFormDataandSuperFormErrorstypes for superForm. - Exported
ZodObjectType,ZodObjectTypesandZodValidationtypes for the Zod adapter. - customRequest can now handle an
ActionResultas well, for better error handling.
Fixed
- Using setError in the load function and navigating to the same page client-side removed the errors.