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.13.31.7.2->1.13.31.1.2->1.7.31.1.2->1.7.31.1.1->1.7.39.29.0->9.39.17.24.0->7.33.51.53.1->1.56.17.6.2->7.9.67.6.2->7.9.67.6.2->7.9.67.6.2->7.9.624.0.4->24.10.119.1.8->19.2.619.1.6->19.2.310.4.21->10.4.229.29.0->9.39.14.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.019.1.0->19.2.07.6.2->7.9.63.4.17->3.4.185.8.3->5.9.38.32.1->8.47.03.1.4->3.2.43.25.67->3.25.76Release Notes
edmundhung/conform (@conform-to/react)
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.7.3Compare Source
@digdir/designsystemet@1.7.3
@digdir/designsystemet-css@1.7.3
@digdir/designsystemet-react@1.7.3
Patch Changes
Update npm non-major dependencies (#4233)
Tooltip: Check if
trim()is available (#4239)Tooltiphas<svg>as a child@digdir/designsystemet-theme@1.7.3
v1.7.2Compare Source
@digdir/designsystemet@1.7.2
Patch Changes
Add option to override
linkVisitedcolor in config: (#4182)New command that lets you generate a config file from your design tokens: (#4207)
npx @​digdir/designsystemet generate-config-from-tokens --dir <path to design tokens>Update npm non-major dependencies (#4193)
Update npm non-major dependencies (#4214)
For your config file, you can now get the schema file from designsystemet.no (#4195)
@digdir/designsystemet-css@1.7.2
Patch Changes
input: Remove hover effect when
<label>is hovered (#4196)tag: Add new variant,
[data-variant="outline"]. (#4173)data-variant, or set it todefault.Update npm non-major dependencies (#4214)
card: Add support for
<picture>(#4137)search: Don't set
position: relative, but useisolation: isolateon.ds-search(#4212)z-indexonbutton[type="reset"]tag: New css variables to go with
[data-variant="outline"]: (#4173)--dsc-tag-border-width--dsc-tag-border-color--dsc-tag-border-style@digdir/designsystemet-react@1.7.2
Patch Changes
Update
@u-elements/comboboxto v1.0.4 (#4226)Dialog: If the browser supports
closedByon<dialog>, we let the browser handle it (#4210)Tooltip: Tooltip is now automatically
aria-describedbyoraria-labelledbybased on the content of the trigger component. (#4202)type-prop that acceptsdecribedbyorlabelledby.Update npm non-major dependencies (#4193)
Update npm non-major dependencies (#4214)
Tag: Add new prop
variant(#4173)default|outline.defaultis the default value.@digdir/designsystemet-theme@1.7.2
Patch Changes
v1.7.1Compare Source
@digdir/designsystemet@1.7.1
@digdir/designsystemet-css@1.7.1
@digdir/designsystemet-react@1.7.1
Patch Changes
onSelectedChangenot always calling the latest callback (#4176)@digdir/designsystemet-theme@1.7.1
v1.7.0Compare Source
@digdir/designsystemet@1.7.0
Minor Changes
Restructure design tokens: (#4105)
primitives/modes/color-scheme/[dark/light]/global.json"link.color.visited"now references"$value": "color.link.visited"from your theme fileMake sure to regenerate your design tokens:
npx @​digdir/designsystemet tokens create <options> --cleanPatch Changes
Update npm non-major dependencies (#4147)
Export zod schema and type for config file: (#4170)
configSchematype ConfigSchemaAdd option override severity colors from config. (#4105)
You can override the base-hexcode, as well as individual steps:
Update npm non-major dependencies (#4167)
Update dependency ramda to ^0.32.0 (#4146)
@digdir/designsystemet-css@1.7.0
Patch Changes
Field: Set
display: blockon<label>(#4134)ToggleGroup: ensure ToggleGroup has same height as Button, and that individual buttons within the group never wrap their text (#4139)
ToggleGroup: use correct border-color (
--ds-color-text-default) to match text/icon color on selected button in secondary variant (#4139)Label: Use
line-height: var(--ds-body-md-line-height);(#4134)Field:
data-field="description"no longer getsmargin-top(#4134)chip: Remove hover effect on
.ds-input(#4165)@digdir/designsystemet-react@1.7.0
Patch Changes
Update npm non-major dependencies (#4147)
Suggestion, Tooltip, Popover: Positioning of floating elements rounded to nearest pixel (#4142)
Update npm non-major dependencies (#4167)
Dialog: Removed the autofocus attribute from built in closeButton, which prevented setting autofocus on other elements in Dialog. (#4159)
Field.Counter: Adjustments to how it works internally. (#4140)
Now, none of the validation messages underneath are
aria-describedon the input/textarea. This is done by anaria-liveregion only for screenreaders.A new
hintprop has been added, to announce how many characters are allowed when entering the input/textarea. Default value is'Maks %d tegn tillatt.'.@digdir/designsystemet-theme@1.7.0
Patch Changes
@digdir/designsystemet. See changelog for changes (#4105)v1.6.1Compare Source
@digdir/designsystemet@1.6.1
Patch Changes
Update npm non-major dependencies (#4129)
Update npm non-major dependencies (#4110)
@digdir/designsystemet-css@1.6.1
Patch Changes
pagination: If direct child of
lihasaria-hidden="true"it setsvisibility: hidden;(#4123)input: Add outline on
:hoverwhen not:focus-visible,:disabledor[readonly]. This adds a few new CSS variables: (#4125)--dsc-input-outline-color--hover--dsc-input-outline-color--toggle--hover--dsc-input-outline-width--hover--dsc-input-outline-style--hoverChip, Tag: Ensure font size scales correctly with the current size mode by using the token
--ds-body-sm-font-size. Note: there might be a small visual change forChipused without explicitdata-size, since it used to havefont-size: 90%. (#4098)@digdir/designsystemet-react@1.6.1
Patch Changes
Button: For
icon-buttons, dont render children if loading is true (#4023)Update npm non-major dependencies (#4129)
Suggestion: Updated u-combobox to 1.0.2 to fix a bug where input would not clear in conrolled mode (#4119)
Update npm non-major dependencies (#4110)
usePagination: Hide prev/next buttons with
aria-hidden="true"andvisibility: hidden;instead of disabling (#4123)Textfield: Move counter error message before error (#4104)
@digdir/designsystemet-theme@1.6.1
v1.6.0Compare Source
@digdir/designsystemet@1.6.0
Patch Changes
Add possiblity to override colors in config: (#4073)
Font size variables are now rounded to the nearest pixel. This affects size modes "sm" and "lg", which had subpixel values after v1.5.0. (#4070)
Update npm non-major dependencies (#4093)
Update supported engines. Now supports node >=20 <25 (#3925)
@digdir/designsystemet-css@1.6.0
Minor Changes
toggle-group: Added new secondary design available with
data-variant="secondary"(orvariant="secondary"in react) (#4092)toggle-group: Changed border-radius to
--ds-border-radius-default, border-color to--ds-color-border-defaultand color to--ds-color-text-default. (#4092)Patch Changes
link: Change
:focus-visiblestyling to use border, not background (#4095)--dsc-link-background--focus--dsc-link-color--focuslink: Add
--dsc-link-border-radius, default isvar(--ds-border-radius-md)(#4095)Dropdown:
Dropdown.Heading(h2-h6) - changed color to text-default and font-weight to 500 (#4076)@digdir/designsystemet-react@1.6.0
Minor Changes
variantto enable newsecondarydesign option (#4092)Patch Changes
aria-hiddenwhenaria-labelis set, which can be useful to hide or show the element from the accessibility tree based on some UI state like whether a visual label is also rendered. ([#4077](https://redirect.github.com/digdir/designsystemeConfiguration
📅 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 is behind base branch, 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.