v1.10.0
What's changed
This release brings better Valibot integration with the future useForm hook while also fixing a few rough edges.
Breaking change
-
The memoize helper has moved into
@conform-to/react/future. (#1022 by @chimame)
If you were previously importing it from@conform-to/zod/v3/futureor@conform-to/zod/v4/future, you will need to update your imports:- import { memoize } from '@conform-to/zod/v4/future'; + import { memoize } from '@conform-to/react/future';
No other changes are required.
New in @conform-to/react/future
- Exposed several internal types, which can be useful if you are building abstractions on top of Conform:
Submission,SubmissionResult,FormContext,FormMetadata,FormRef,FieldMetadata,FieldName, andIntentDispatcher. (#1033)
New in @conform-to/valibot/future
- Added formatResult helpers for smoother integration with the future
useFormhook. (#1018 by @chimame)
Fixes and improvements
- Fixed an issue where the
validmetadata did not properly consider subfield errors. (#1024) - Fixed an issue where
useFormmight clear all form values during form submission after a form reset. (#1028) - Inlined types from
@standard-schema/specto fix type inference issues with standard schema. (#1029) - Improved file handling so that the future
useFormhook does not crash when submitting an empty file input. (#1027)
Full Changelog: v1.9.1...v1.10.0