Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
5.10.0
@rjsf/core
- Updated
getFieldComponent()
to support rendering a custom component by given schema id ($id). #3740 - Updated
MultiSchemaField
to merge the selectedoneOf/anyOf
value into baseschema
, fixing #3744
@rjsf/utils
- Updated
getClosestMatchingOption()
to resolve refs in options before computing the closest matching option, fixing an issue with using precompiled validators- Also, added support for nested
anyOf
anddiscriminator
support in the recursivecalculateIndexScore()
- Also, added support for nested
- Updated
getDefaultFormState()
to merge the remaining schema intoanyOf/oneOf
schema selected during the computation of values, fixing #3744 - Updated
retrieveSchema()
to merge the remaining schema into theanyOf/oneOf
schema selected during the resolving of dependencies, fixing #3744
Dev / docs / playground
5.9.0
New utility function features
- Added new capability to the
mergeDefaultWithFormData()
utility function (see below) - Added new
experimental_defaultFormStateBehavior.arrayMinItems.mergeExtraDefaults
flag which caused a breaking change to the experimentalarrayMinItems
feature (see below):- If you were previously passing
experimental_defaultFormStateBehavior
as{ arrayMinItems = 'requiredOnly }
on theForm
, now you would pass{ arrayMinItems: { populate: 'requiredOnly' } }
- If you were previously passing
@rjsf/utils
- Updated
getDefaultFormState()
to fix a bug whereexperimental_defaultFormStateBehavior: { emptyObjectFields: 'populateRequiredDefaults' }
wasn't working for object properties with$ref
s - Experimental feature breaking change:
- Updated the
experimental_defaultFormStateBehavior.arrayMinItems
from simple flag to an object containing two optional fields,populate
andmergeExtraDefaults
- The new
arrayMinItems.mergeExtraDefaults
flag, when "true", allows users to merge defaults onto the end offormData
arrays whenminItems
is specified
- The new
- Updated the
- Added a new, optional
mergeExtraArrayDefaults=false
flag to themergeDefaultWithFormData()
utility function to support the newarrayMinItems.mergeExtraDefaults
experimental feature
Dev / docs / playground
- Updated the
utility-functions
documentation to add the newmergeExtraArrayDefaults
flag for themergeDefaultWithFormData()
function - Updated the
form-props
documentation to update thearrayMinItems
documentation for the new object behavior - Updated the
playground
to add a checkbox for the newarrayMinItems.mergeExtraDefaults
flag
5.8.2
5.8.1
Dev / docs / playground
- Updated peer dependencies in all packages to
^5.8.x
5.8.0
New feature
- Optional support for Markdown in descriptions
@rjsf/bootstrap-4
- Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes
@rjsf/chakra-ui
- Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes
@rjsf/core
- Updated SchemaField to be able to render markdown in the description field
- Updated
MultiSchemaField.getMatchingOption
to use option index fromgetClosestMatchingOption
, fixing #3693 and
#3705
@rjsf/fluent-ui
- Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes
@rjsf/material-ui
- Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes
@rjsf/mui
- Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes
@rjsf/semantic-ui
- Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes
@rjsf/utils
- Updated
getClosestMatchingOption
to return selected option if all options score the same, fixing #3693 and #3705 - Updated
resolveCondition
to default formData as empty object when evaluating if expression, fixing #3706 - Updated
retrieveSchemaInternal
to return failed merged allOf sub schemas for expandAllBranches flag, fixing #3689 - Updated
hashForSchema
to sort schema fields in consistent order before stringify to prevent different hash ids for the same schema - Updated
enumOptionsSelectValue
to allow picking falsy enumOptions, fixing #3716
@rjsf/validator-ajv8
- Updated
AJV8PrecompiledValidator.rawValidation()
to use resolve root schema when comparing input schema, fixing #3708
Dev / docs / playground
- Updated sample data and documentation about the markdown in
RJSFSchema
description - Fixed broken playground examples (#3696)
- Added experimental_defaultFormStateBehavior.emptyObjectFields control to Playground
- Fixed bug where subthemes would not appear in Playground
5.7.3
5.7.2
@rjsf/validator-ajv8
- Removed the importing of internal
ajv
types by simplifying theCompiledValidateFunction
type to avoid a bunch of Typescript errors encountered by users of the package
5.7.1
@rjsf/core
- Added protection against a null
field
in thefocusOnError
method inForm
@rjsf/validator-ajv8
- Updated the build for all but the
cjs
development version, to not export thecompileSchemaValidators()
function to avoid "Module not found: Can't resolve 'fs' error" issues, fixing #3668
Dev / docs / playground
- Updated the
validation
documentation to add a note with a web-resource to help folks work around the "Module not found: Can't resolve 'fs' error" issue for development environments - Updated all of the
package-lock.json
files to bump peer-dependencies to5.7.x
, fixing #3669
5.7.0
3 new features
- Added
experimental_defaultFormStateBehavior
prop toForm
to support alternate default form state behaviors - Added support for precompiled schemas in
validator-ajv8
- Added support for
additionalProperties
to fluent-ui theme while upgrading support to version 8 (backwards compatible with 7)
@rjsf/antd
- Fix #3608 by ensuring the root field is always wrapped in Form.Item
- Fix #3594 by removing the duplicate title for
SelectWidget
and description forCheckboxWidget
@rjsf/core
- Updated the
MultiSchemaField
to use the newgetDiscriminatorFieldFromSchema()
API - Added new
experimental_defaultFormStateBehavior
prop toForm
- Fixed regression #3650 in
FileWidget
to again support adding multiple files to arrays
@rjsf/fluent-ui
- Added support for
additionalProperties
to fluent-ui theme, fixing #2777. - Upgraded to
8.x
version of@fluentui/react
maintaining backwards compatibility to version 7, fixing #3463
@rjsf/utils
- Added two new APIs
getDiscriminatorFieldFromSchema()
(a refactor of code fromMultiSchemaField
) andhashForSchema()
- Updated
getDefaultFormState()
andtoPathSchema()
to usegetDiscriminatorFieldFromSchema()
to provide a discriminator field togetClosestMatchingOption()
calls.
- Updated
- Refactored the
retrieveSchema()
internal API functions to support implementing an internalschemaParser()
API for use in precompiling schemas, in support of #3543 - Fixed
toPathSchema()
to handleproperties
in an object along withanyOf
/oneOf
, fixing #3628 and #1628 - Refactored optional parameters for
computeDefaults()
into destructured props object to reduce clutter when only specifying later of the optional argument, fixing #3602 - Fixed
computeDefaults()
to handle$ref
in an object along withanyOf
/oneOf
, fixing #3633
@rjsf/validator-ajv8
- Added two new APIs
compileSchemaValidators()
andcreatePrecompiledValidator()
implemented to support using precompiled validators build with AJV 8, fixing #3543
Dev / docs / playground
- Added documentation to
custom-templates
describing how to extend theBaseInputTemplate
- Added minItems behavior for array field live setting, fixing #3602
- Upgraded playground to
8.x
version of@fluentui/react
, fixing #3463 - Added documentation to
validation
describing the new precompiled validators feature - Added new
validator-ajv8.md
documentation to theapi-reference
directory as well as putting it into thesidebar.js
5.6.2
Dev / docs / playground
- Fixed issues with
post-versioning
that caused the 5.6.1 branch to not be publishable