Skip to content

v1.10.0

Choose a tag to compare

@edmundhung edmundhung released this 15 Sep 11:44
· 50 commits to main since this release
6e44246

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/future or @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, and IntentDispatcher. (#1033)

New in @conform-to/valibot/future

Fixes and improvements

  • Fixed an issue where the valid metadata did not properly consider subfield errors. (#1024)
  • Fixed an issue where useForm might clear all form values during form submission after a form reset. (#1028)
  • Inlined types from @standard-schema/spec to fix type inference issues with standard schema. (#1029)
  • Improved file handling so that the future useForm hook does not crash when submitting an empty file input. (#1027)

Full Changelog: v1.9.1...v1.10.0