Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
5.23.2
@rjsf/core
@rjsf/utils
- Short-circuit
File
andDate
constructor access in isObject to optimize performance in scenarios whereglobalThis
is aProxy
that incurs overhead for each class constructor access (#4413). Fixes #4409
@rjsf/validator-ajv8
- Fixed issue where
ui:title
in anyOf/oneOf is not shown in error messages. Fixes #4368
5.23.1
@rjsf/chakra-ui
- Updated
package.json
to restrict@chakra-ui/react
's peer dependency to be < 3.0.0, fixing #4390
@rjsf/core
- Updated
NumberField
to properly pass through theerrorSchema
andid
in the onChange handler, fixing #4382
Dev / docs / playground
- Updated the peer dependencies for
@rjsf/*
to be5.23.x
5.23.0
New features added
Experimental_DefaultFormStateBehavior.constAsDefaults
@rjsf/core
- Updated
SchemaField
to no longer make schema fields with const read-only by default, partially fixing #4344
@rjsf/utils
- Updated
Experimental_DefaultFormStateBehavior
to add a newconstAsDefaults
option - Updated
getDefaultFormState()
to use the newconstAsDefaults
option to control how const is used for defaulting, fixing #4344, #4361 and #4377 - Use
experimental_customMergeAllOf
option in functions that have previously missed it. - Updated
ErrorSchemaBuilder
methodsaddErrors
andsetErrors
to prevent duplicate error messages.
@rjsf/validator-ajv8
- Fixed issue where error messages do not have
title
orui:title
if aLocalizer
function is used. Fixes #4387
Dev / docs / playground
- Updated the playground to add a selector for the
constAsDefaults
option
5.22.4
5.22.3
5.22.2
@rjsf/core
- Fix an issue where only the first file was uploaded when users selected multiple files for upload.
- Fixed validation regression Form not revalidating after formData change, fixing #4343
@rjsf/validator-ajv8
- Fixed
AJV8Validator#transformRJSFValidationErrors
to replace the error message field with either theuiSchema
'sui:title
field if one exists or theparentSchema
title if one exists. Fixes #4348
5.22.1
@rjsf/*
- Bumped peer dependencies to
5.22.x
due to updated type definition and API changes in@rjsf/utils
5.22.0
New experimental features
@rjsf/core
- Updated
MultiSchemaField
to call theonChange
handler after setting the new option, fixing #3997 and #4314
@rjsf/utils
- Added
experimental_customMergeAllOf
option toretrieveSchema()
andgetDefaultFormState()
to allow custom merging ofallOf
schemas - Made fields with const property pre-filled and readonly, fixing #2600
- Added
mergeDefaultsIntoFormData
option toExperimental_DefaultFormStateBehavior
type to control how to handle merging of defaults - Updated
mergeDefaultsWithFormData()
to add new optionaldefaultSupercedesUndefined
that when true uses the defaults rather thanundefined
formData, fixing #4322 - Updated
getDefaultFormState()
to pass true tomergeDefaultsWithFormData
fordefaultSupercedesUndefined
whenmergeDefaultsIntoFormData
has the valueuseDefaultIfFormDataUndefined
, fixing #4322 - Updated
getClosestMatchingOption()
to improve the scoring of sub-property objects that are provided over ones that aren't, fixing #3997 and #4314
Dev / docs / playground
- Updated the
form-props.md
to add documentation for the newexperimental_customMergeAllOf
props and theexperimental_defaultFormStateBehavior.mergeDefaultsIntoFormData
option - Updated the
utility-functions.md
to add documentation for the new optionaldefaultSupercedesUndefined
parameter and the two missing optional fields ongetDefaultFormState()
- Updated the
custom-templates.md
to add a section header for wrappingBaseInputTemplate
- Updated the playground to add controls for the new
mergeDefaultsIntoFormData
option- In the process, moved the
Show Error List
component over one column, making it inline radio buttons rather than a select
- In the process, moved the
5.21.2
@rjsf/core
- Updated
SchemaField
to passrequired
flag to_AnyOfField
/_OneOfField
- Updated
Form
to deal with null objects infilterErrorsBasedOnSchema()
, fixing #4306
@rjsf/utils
- Updated
ErrorSchemaBuilder
to support adding, updating, and removing paths that are numbers, fixing #4297 - Updated
retrieveSchema
to not mergecontains
properties inallOf
schema lists, fixing #2923
Dev / docs / playground
- Updated the
custom-widgets-fields.md
to add examples of wrapping a widget/field