Update npm non-major dependencies #117
Open
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.6.0→1.15.11.7.2→1.15.11.1.2→1.9.01.1.2→1.9.01.1.1→1.9.09.29.0→9.39.27.24.0→7.36.01.53.1→1.57.07.6.2→7.11.07.6.2→7.11.07.6.2→7.11.07.6.2→7.11.024.0.4→24.10.419.1.8→19.2.719.1.6→19.2.310.4.21→10.4.239.29.0→9.39.24.3.5→4.4.42.31.0→2.32.016.2.0→16.5.05.1.28→5.1.327.8.0→7.10.16.5.1→6.8.18.5.5→8.5.619.1.0→19.2.319.1.0→19.2.37.6.2→7.11.03.4.17→3.4.195.8.3→5.9.38.32.1→8.51.03.1.4→3.2.43.25.67→3.25.76Release Notes
edmundhung/conform (@conform-to/react)
v1.15.1Compare Source
What's Changed
getZodConstraint(#1126)useControlnot reflecting the input's default value in the DOM (#1121)useControlnot dispatching a change event when callingcontrol.change()with the input's default value (#1122)parseWithZodandparseWithValibotincorrectly treating falsy result values as errors (#1115)New Contributors
Full Changelog: edmundhung/conform@v1.15.0...v1.15.1
v1.15.0Compare Source
What's Changed
Added a getFieldValue helper to extract and validate field values from FormData or URLSearchParams. (#1112)
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
v1.10.1Compare Source
What's Changed
form.getFieldset()requiring a name parameter. This should be optional instead. (#1037 by @luchsamapparat)New Contributors
Full Changelog: edmundhung/conform@v1.10.0...v1.10.1
v1.10.0Compare Source
What's changed
This release brings better Valibot integration with the future
useFormhook 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:No other changes are required.
New in
@conform-to/react/futureSubmission,SubmissionResult,FormContext,FormMetadata,FormRef,FieldMetadata,FieldName, andIntentDispatcher. (#1033)New in
@conform-to/valibot/futureuseFormhook. (#1018 by @chimame)Fixes and improvements
validmetadata did not properly consider subfield errors. (#1024)useFormmight clear all form values during form submission after a form reset. (#1028)@standard-schema/specto fix type inference issues with standard schema. (#1029)useFormhook does not crash when submitting an empty file input. (#1027)Full Changelog: edmundhung/conform@v1.9.1...v1.10.0
v1.9.1Compare Source
What's Changed
This release restored form and field metadata that were present in v1 but accidentally omitted from the future
useFormhook (#1020). This includes:key,errorIdanddescriptionIdproperties to form metadatavalidproperty to both form and field metadata withinvaliddeprecated and to be removed in 1.10.0formIdproperty to field metadatafieldErrorsto field metadata (renamed from v1'sallErrors) with improvements:Full Changelog: edmundhung/conform@v1.9.0...v1.9.1
v1.9.0Compare Source
What's changed
This version introduces a set of new experimental APIs under the
futureexport.New React APIs (
@conform-to/react/future)isDirtyhelper.Enhanced Zod Integration (
@conform-to/zod/v3/futureor@conform-to/zod/v4/future):Additional Changes
getZodConstraint()with zod v4. Thanks @taku-hatano!Full Changelog: edmundhung/conform@v1.8.2...v1.9.0
v1.8.2Compare Source
What's Changed
@conform-to/zod's zod version requirements to^3.21.0 || ^4.0.0by @chimame in #985ui-libraries.mdby @WataruNishimura in #986New Contributors
Full Changelog: edmundhung/conform@v1.8.1...v1.8.2
v1.8.1Compare Source
What's Changed
useControlnow properly resets file inputs when receiving an empty array (#976)Full Changelog: edmundhung/conform@v1.8.0...v1.8.1
v1.8.0Compare Source
What's changed
This version introduced two new experimental APIs under the
futureexport.useFormData: A low-level React hook that lets you derive a value from the current FormData of a form and re-render only when that value changes.isDirty: A utility function for checking whether the current form values differ from the default values.These APIs are designed to decouple form state from the core logic and provide more flexibility for reacting to form changes without relying on internal context. They are also part of the groundwork for a simpler
useFormmodel in future versions.Learn more in the announcement post.
Full Changelog: edmundhung/conform@v1.7.2...v1.8.0
v1.7.2Compare Source
What's Changed
Full Changelog: edmundhung/conform@v1.7.1...v1.7.2
v1.7.1Compare Source
What's Changed
aria-invalidattriabute when usinggetFormPropsorgetFieldsetPropsby @evaogbe (#963)useControlfuture export works when File or FileList is undefined by @edmundhung (#966)New Contributors
Full Changelog: edmundhung/conform@v1.7.0...v1.7.1
v1.7.0What's changed
The
futureexport anduseControlhookWe’ve introduced the first API under the new
futureexport:useControl.The
futureexport is a new entry point for previewing upcoming features that may evolve before being stabilized in a future major version. If you haven’t seen it yet, check out our announcement for context.The first experimental API is useControl — a new hook that helps you integrate custom inputs with Conform. Compared to
useInputControl, it offers a more flexible setup with better support for multi-select, file inputs, and checkbox groups.We’ve documented it in detail:
useControl?Give it a try — and let us know what you think!
New field metadata for default values
Field metadata now includes three new properties:
defaultValue(string | undefined)defaultChecked(boolean | undefined)defaultOptions(string[] | undefined)These values are automatically derived from your form’s
defaultValue, making it easier to connect each field withuseControland wire up individual input elements.Full Changelog: edmundhung/conform@v1.6.0...v1.7.0
digdir/designsystemet (@digdir/designsystemet-css)
v1.9.0Compare Source
@digdir/designsystemet@1.9.0
Minor Changes
Add ability to override focus colors from config: (#4320)
{ "overrides": { "focus": { "inner": { "light": "HEX", "dark": "HEX" }, "outer": { "light": "HEX", "dark": "HEX" } } } }This comes with a change to you design tokens, where focus colors are now on the theme layer.
Make sure you rebuild your tokens:
npx @​digdir/designsystemet tokens create <options> --cleanPatch Changes
Update
@tokens-studio/sd-transformsto2.0.3(#4315)Updated dependencies []:
@digdir/designsystemet-css@1.9.0
Minor Changes
data-placementselector styles the Dialog as a "drawer"-component from the direction given (left | right | top | bottomorcenterwhich is the default) (#4323)Added 3 new local variables:
--dsc-dialog-placement-inline-max-width(max-width when placement="left | right")--dsc-dialog-placement-block-max-width(max-width when placement="top | bottom")--dsc-dialog-transition-duration(duration for the slide in animations)Patch Changes
Input, Search, Suggestion, Textfield: Uppercase Å was cut off at the top in Chrome and Safari, making it look like Ă (#4301)
link: Style background, border, and padding regardless of default browser styles (#4231) (#4302)
Add export for a default theme under
/theme. (#4328)If you are using the default theme from
@digdir/designsystemet-theme, we recommend importing the CSS from@digdir/designsystemet-css/theme.cssand removing@digdir/designsystemet-themefrom your dependencies.@digdir/designsystemet-react@1.9.0
Minor Changes
placementprop. This will setdata-placementand style theDialogas a "drawer"-component from the direction given:left | right | top | bottomorcenter(default) (#4323)Patch Changes
SuggestionClear: send
onClick. In earlier versionsonClickwas never called (#4327)Popover: Fix controlled open state going out of sync (#4314)
Update npm non-major dependencies (#4308)
Updated dependencies []:
@digdir/designsystemet-theme@1.9.0
Patch Changes
Export
designsystemet.cssunder@digdir/designsystemet-theme/index.css(#4291)Updated dependencies []:
@digdir/designsystemet-types@1.9.0
v1.8.0Compare Source
@digdir/designsystemet-theme
Minor Changes
Move submodule
@digdir/designsystemet/typesto a new package@digdir/designsystemet-typesand change all references. (#4241)After re-running
tokens builddownstream, this removes transitive dependencies on runtime dependencies on CLI tools likecommanderandstyle-dictionarywhich are never used in runtime, but are required for the CLI to function. It also makes code which doesn't use the CLI unaffected by our node version limitations (currently >= 22 due tostyle-dictionary).@digdir/designsystemet/typesis preserved for now as a deprecated re-export of@digdir/designsystemet-typesto avoid breaking people's builds.Patch Changes
Update npm non-major dependencies (#4262)
Updated dependencies [
c2faf2e]:@digdir/designsystemet-react
Minor Changes
Move submodule
@digdir/designsystemet/typesto a new package@digdir/designsystemet-typesand change all references. (#4241)After re-running
tokens builddownstream, this removes transitive dependencies on runtime dependencies on CLI tools likecommanderandstyle-dictionarywhich are never used in runtime, but are required for the CLI to function. It also makes code which doesn't use the CLI unaffected by our node version limitations (currently >= 22 due tostyle-dictionary).@digdir/designsystemet/typesis preserved for now as a deprecated re-export of@digdir/designsystemet-typesto avoid breaking people's builds.Patch Changes
Update npm non-major dependencies (#4275)
Update npm non-major dependencies (#4242)
Popover: Fix unnecesary call of
onOpenand missing call ofonClose(#4230)onOpenwhen clickingPopover.TriggerwhenPopoveris already open.onClosewhen a controlledPopoveris closed by clicking onPopover.Trigger.Update npm non-major dependencies (#4262)
Update
reactandreact-domto19.2.1(#4276)Updated dependencies [
c2faf2e]:@digdir/designsystemet-css
Patch Changes
badge: Set
display: inline-flexon.ds-badge(#4269)Update npm non-major dependencies (#4242)
select: Fix
:hoveron<label>adding border to<select>(#4248)Update npm non-major dependencies (#4262)
@digdir/designsystemet
Minor Changes
Move submodule
@digdir/designsystemet/typesto a new package@digdir/designsystemet-typesand change all references. (#4241)After re-running
tokens builddownstream, this removes transitive dependencies on runtime dependencies on CLI tools likecommanderandstyle-dictionarywhich are never used in runtime, but are required for the CLI to function. It also makes code which doesn't use the CLI unaffected by our node version limitations (currently >= 22 due tostyle-dictionary).@digdir/designsystemet/typesis preserved for now as a deprecated re-export of@digdir/designsystemet-typesto avoid breaking people's builds.Patch Changes
Update npm non-major dependencies (#4275)
Update npm non-major dependencies (#4242)
Update npm non-major dependencies (#4262)
Update dependency @tokens-studio/sd-transforms to v2 (#4271)
Updated dependencies [
c2faf2e]:@digdir/designsystemet-types@1.8.0
Minor Changes
Move submodule
@digdir/designsystemet/typesto a new package@digdir/designsystemet-typesand change all references. (#4241)After re-running
tokens builddownstream, this removes transitive dependencies on runtime dependencies on CLI tools likecommanderandstyle-dictionarywhich are never used in runtime, but are required for the CLI to function. It also makes code which doesn't use the CLI unaffected by our node version limitations (currently >= 22 due tostyle-dictionary).@digdir/designsystemet/typesis preserved for now as a deprecated re-export of@digdir/designsystemet-typesto avoid breaking people's builds.v1.7.3Compare Source
@digdir/designsystemet@1.7.3
[@digdir/designsystemet-css](https://redirect.github.com/digdir/designsyste
Configuration
📅 Schedule: Branch creation - "before 07:00 on Thursday" in timezone Europe/Oslo, 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.