fix(deps): update dependency @conform-to/react to v1.15.0 #610
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.10.1->1.15.0Release Notes
edmundhung/conform (@conform-to/react)
v1.15.0Compare Source
What's Changed
Added a getFieldValue helper to extract and validate field values from FormData or URLSearchParams.
It also infers types from the field name:
Full Changelog: edmundhung/conform@v1.14.1...v1.15.0
v1.14.1Compare Source
What's Changed
FormConfigtype to allow bothlastResultandonSubmitto be optional (#1116)Full Changelog: edmundhung/conform@v1.14.0...v1.14.1
v1.14.0Compare Source
Breaking Changes (Future APIs)
The
intendedValueoption in the report helper has been renamed tovalueand now works as thedefaultValuewhen resetting the form. Previously, this option was ignored when resetting and the form would always reset to the default value. You can now use thevalueoption to update or reset forms to a specific value. (#1079)parseSubmissionnow strips empty values by default. This makes it easier to work with schemas directly (withoutcoerceFormValue) since you no longer need extra validation like.min(1)for required fields. You can setstripEmptyValues: falseto preserve empty values if needed. (#1110)What's Changed
Schema-first future
useFormhook with improved type inference (#1106)The
schemaoption is now promoted to the first argument ofuseFormfor better type inference:onValidateis now required when not using a schemaEither(Relaxed the type to allow both to be optional in v1.14.1)onSubmitorlastResultmust be providedThe old API with
schemain options still works but is now deprecated. It will be removed in the next minor release.Fixed
parseSubmissionarray handling for entries ending with[]. Previously, when multiple form entries had the same name ending with[](e.g.,todos[]), all items were incorrectly pushed as a single nested array element. Now they are correctly spread as individual array items. (#1108)Improvements
@conform-to/zod/v3if you need to work with v3 schema using zod v4. (Thanks @kesoji - #1090)getFieldset()with interface declarations (#1097)lastResultlogic from an effect to the render phase. Your form component may now render twice within a single lifecycle when needed, but state updates that previously spanned two separate lifecycles now complete in one. (#1103)FormOptionsandValidationAttributestypes compatibility withexactOptionalPropertyTypessetting in tsconfig. (#1105)Full Changelog: edmundhung/conform@v1.13.3...v1.14.0
v1.13.3Compare Source
What's Changed
.required()support with coerceFormValue by @chimame (#1084)Full Changelog: edmundhung/conform@v1.13.2...v1.13.3
v1.13.2Compare Source
What's Changed
Full Changelog: edmundhung/conform@v1.13.1...v1.13.2
v1.13.1Compare Source
What's Changed
DefaultValuethat prevented settingundefinedon required fields whenexactOptionalPropertyTypesis enabled. (#1072)Full Changelog: edmundhung/conform@v1.13.0...v1.13.1
v1.13.0Compare Source
Breaking changes on
futureexportsThe following metadata will no longer returns
undefinedto resolves behavior difference on React 18 and 19 with regards to thedefaultValueproperty:metadata.defaultValuenow returns an empty string''instead ofundefinedwhen no default value is set or the value cannot be serializedmetadata.defaultOptionsnow returns an empty array[]instead ofundefinedwhen no default options are set or the value cannot be serializedmetadata.defaultCheckednow explicitly returnsfalseinstead ofundefinedwhen the field value is not'on'What's Changed
The
intent.reset()method now accepts an optionaldefaultValueparameter to reset forms to a different value (#1065)Additionally,
intent.update()has been optimized to behave more consistently withintent.reset(), with improved type inference when updating form value by not specifying thenameoption.Added
formReftouseControlhook (#1059)The
useControlhook now exposes aformRefproperty that provides access to the form element associated with the registered input. This is particularly useful when usinguseControlwith other form-level hooks likeuseFormData()anduseIntent().Fixed an issue with
coerceFormValuewidening the schema type toGenericSchema | GenericSchemaAsync. It now preserves the exact schema type with compatibility to the standard schema types. (#1060)Full Changelog: edmundhung/conform@v1.12.1...v1.13.0
v1.12.1Compare Source
What's Changed
insertandupdateintent type inference when field shape cannot be inferred. (#1063)Full Changelog: edmundhung/conform@v1.12.0...v1.12.1
v1.12.0Compare Source
What's changed
Metadata Customization
This update introduces a
<FormOptionsProvider />component under thefutureexport. (#1047)You can now define global form options, including custom metadata properties that match your form component types when integrating with UI libraries or any custom components.
Additionally, you can now customize the base error shape globally using the
CustomTypesinterface:This restricts the error shape expected from forms and improves type inference when using
useFieldanduseFormMetadata.Improvements
ariaInvalidandariaDescribedByfield metadata (#1047)Full Changelog: edmundhung/conform@v1.11.0...v1.12.0
v1.11.0Compare Source
What's Changed
Breaking change (Future APIs)
In this release, we simplified some of the type signatures by removing the
Metadatageneric parameter (#1045):FormMetadata<ErrorShape = string>(previouslyFormMetadata<ErrorShape, Metadata>)FieldMetadata<FieldShape, ErrorShape = string>(previouslyFieldMetadata<FieldShape, Metadata>)Fieldset<FieldShape, ErrorShape = string>(previouslyFieldset<FieldShape, Metadata>)Improvements
Added standard schema issue support to
report(#1041)The
reporthelper now accepts standard schema issues directly, eliminating the need to useformatResultin most cases:return report(submission, { + error: { issues: result.error.issues }, // Zod + error: { issues: result.issues }, // Valibot - error: formatResult(result), });When both
issuesandformErrors/fieldErrorsare provided, they will be merged together, withissuesbeing formatted first:This allows you to pass the validation results from Zod and Valibot to
reportdirectly without usingformatResult. But it is still useful when you need to customize the error shape.Added
schemaValueproperty to theonValidatecallback argument containing the validated value from successful schema validation. This property isundefinedwhen no schema is provided or when validation fails. (#1046)Full Changelog: edmundhung/conform@v1.10.1...v1.11.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.