Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
5.24.2
@rjsf/utils
- switch
lodash.isEqualWith
tofast-equals.createCustomEqual
providingareFunctionsEqual
assuming any functions are equal. - Fixed issue with oneOf selector can be modified in readonly mode, fixing #4460
- Fixed issue with fields inside an array can't be set to empty when a default is set, fixing #4456
- Fixed issue with file accept attribute, fixing #4404.
@rjsf/mui
- Fixed issue with file accept attribute, fixing #4404.
5.24.1
@rjsf/utils
- Fixed documentation for
getChangedFields()
Dev / docs / playground
- Updated the peer dependencies for
@rjsf/*
to be5.24.x
- Added documentation for
getChangedFields()
5.24.0
New features
getChangedFields()
utility function
@rjsf/core
- Fixed issue with schema if/then/else conditions where switching to then/else subschemas did not reflect the actual validation errors in the onChange event, fixing #4249 and improving performance.
- Fixed issue error message will not be cleared after the controlled Form formData is changed. Fixes #4426
@rjsf/utils
- Fixed issue with formData not updating when dependencies change, fixing #4325
- Fixed issue with assigning default values to formData with deeply nested required properties, fixing #4399
- Fixed issue error message will not be cleared after the controlled Form formData is changed. Fixes #4426
- Fix for AJV $data reference in const property in schema treated as default/const value. The issue is mentioned in #4361.
- Switched uses of
lodash.isEqual()
to@rjsf/utils.deepEquals
.
@rjsf/validator-ajv8
- Partially fixed issue where dependency errors do not show
title
orui:title
. This fix only applicable if we use an ajv-i18n localizer. Ref. #4402. - Switched uses of
lodash.isEqual()
to@rjsf/utils.deepEquals
at precompiledValidator.
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