Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
5.23.1
@rjsf/chakra-ui
- Updated
package.jsonto restrict@chakra-ui/react's peer dependency to be < 3.0.0, fixing #4390
@rjsf/core
- Updated
NumberFieldto properly pass through theerrorSchemaandidin 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
SchemaFieldto no longer make schema fields with const read-only by default, partially fixing #4344
@rjsf/utils
- Updated
Experimental_DefaultFormStateBehaviorto add a newconstAsDefaultsoption - Updated
getDefaultFormState()to use the newconstAsDefaultsoption to control how const is used for defaulting, fixing #4344, #4361 and #4377 - Use
experimental_customMergeAllOfoption in functions that have previously missed it. - Updated
ErrorSchemaBuildermethodsaddErrorsandsetErrorsto prevent duplicate error messages.
@rjsf/validator-ajv8
- Fixed issue where error messages do not have
titleorui:titleif aLocalizerfunction is used. Fixes #4387
Dev / docs / playground
- Updated the playground to add a selector for the
constAsDefaultsoption
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#transformRJSFValidationErrorsto replace the error message field with either theuiSchema'sui:titlefield if one exists or theparentSchematitle if one exists. Fixes #4348
5.22.1
@rjsf/*
- Bumped peer dependencies to
5.22.xdue to updated type definition and API changes in@rjsf/utils
5.22.0
New experimental features
@rjsf/core
- Updated
MultiSchemaFieldto call theonChangehandler after setting the new option, fixing #3997 and #4314
@rjsf/utils
- Added
experimental_customMergeAllOfoption toretrieveSchema()andgetDefaultFormState()to allow custom merging ofallOfschemas - Made fields with const property pre-filled and readonly, fixing #2600
- Added
mergeDefaultsIntoFormDataoption toExperimental_DefaultFormStateBehaviortype to control how to handle merging of defaults - Updated
mergeDefaultsWithFormData()to add new optionaldefaultSupercedesUndefinedthat when true uses the defaults rather thanundefinedformData, fixing #4322 - Updated
getDefaultFormState()to pass true tomergeDefaultsWithFormDatafordefaultSupercedesUndefinedwhenmergeDefaultsIntoFormDatahas 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.mdto add documentation for the newexperimental_customMergeAllOfprops and theexperimental_defaultFormStateBehavior.mergeDefaultsIntoFormDataoption - Updated the
utility-functions.mdto add documentation for the new optionaldefaultSupercedesUndefinedparameter and the two missing optional fields ongetDefaultFormState() - Updated the
custom-templates.mdto add a section header for wrappingBaseInputTemplate - Updated the playground to add controls for the new
mergeDefaultsIntoFormDataoption- In the process, moved the
Show Error Listcomponent over one column, making it inline radio buttons rather than a select
- In the process, moved the
5.21.2
@rjsf/core
- Updated
SchemaFieldto passrequiredflag to_AnyOfField/_OneOfField - Updated
Formto deal with null objects infilterErrorsBasedOnSchema(), fixing #4306
@rjsf/utils
- Updated
ErrorSchemaBuilderto support adding, updating, and removing paths that are numbers, fixing #4297 - Updated
retrieveSchemato not mergecontainsproperties inallOfschema lists, fixing #2923
Dev / docs / playground
- Updated the
custom-widgets-fields.mdto add examples of wrapping a widget/field
5.21.1
5.21.0
New Feature
Extended support for @rjsf/mui to include MUI v6
@rjsf/core
- Updated
Formto fixfocusOnError()to support the ids that include dots, fixing #4279
@rjsf/mui
- Updated the peer dependencies for
@mui/materialand@mui/icon-materialto add v6, fixing #4283
@rjsf/utils
- Fixes an issue with dependencies computeDefaults to ensure we can get the dependencies defaults #4271
- Updated
deepEquals()to usefast-equals.createCustomEqual()instead oflodash.isEqualWith(), fixing #4291- Switched uses of
lodash.isEqual()todeepEquals()in many of the utility functions as well
- Switched uses of
@validator-ajv8
- Use
@rjsf/utilsdeepEquals()instead oflodash.isEqual()to improve performance, fixing #4291
Dev / docs / playground
- Updated the playground to use
@mui/*version 6, changing the name of the dropdown frommaterial-ui-5tomui