Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
5.12.1
5.12.1
@rjsf/validator-ajv8
- Updated
AJV8PrecompiledValidator.rawValidation()
to resolve root schema with formData when comparing input schema, fixing #3825
@rjsf/core
- Updated
MultiSchemaField
to merge all top level fields except properties for anyOf/oneOf options, fixing #3808 and #3787
@rjsf/antd
- Updated CheckboxesWidget to not show duplicate title, fixing #3815
@rjsf/utils
- Updated
retrieveSchemaInternal
allOf logic for precompiled schemas to resolve top level properties fixing #3817
5.12.0
New features
- Added a new
never
option for theexperimental_defaultFormStateBehavior
for arrayMinItems - Added a new compileSchemaValidatorsCode() function to the
validator-ajv8
@rjsf/utils
- Experimental feature:
- Added
experimental_defaultFormStateBehavior = { arrayMinItems: { populate: 'never' } }
(feature #3796)
- Added
@rjsf/validator-ajv8
- Exposing new function
compileSchemaValidatorsCode
to allow creating precompiled validator without a file. This is useful in case when precompiled validator is to be created dynamically. #3793
Dev / docs / playground
- update playground vite config to use sources directly, allowing to reload changes in it without additional build step
- moving from
dts-cli
to use individual dev tools directly, updating package publish config- tsc for generating type definitions and esm modules
- esbuild for CJS bundle
- rollup for UMD bundle
- Updated the
form-props
documentationarrayMinItems
, added description fornever
. - Updated the
playground
to add the option for the newarrayMinItems.populate = 'never'
.
5.11.2
@rjsf/material-ui
- Removed unnecessary import of old
@types/material-ui
which can cause typescript issues in some situations
@rjsf/utils
- Updated the
resolveAllReferences()
function to use object spreading to update properties and items in a schema rather than directly modifying the schema to avoid issues with frozen object, fixing #3805
5.11.1
@rjsf/core
- Updated
SchemaField
to ignore errors foranyOf
/oneOf
parent schema, fixing 1295
@rjsf/utils
- Created new
resolveAllReferences()
function to resolve all references within a schema's properties and array items. - Updated
getClosestMatchingOption()
to useresolveAllReferences()
for all oneOf/anyOf schemas - Updated
resolveAnyOrOneOfSchemas()
to useresolveAllReferences()
for all oneOf/anyOf schemas - Better handle the
null
case inwithIdRefPrefix
, fixing #3792
5.11.0
NOTE: this release failed to publish.
New feature
extraErrorsBlockSubmit
onForm
, see the documentation
@rjsf/core
- Updated
MultiSchemaField
to usemergeSchema()
for merging in the remaining schema foranyOf
/oneOf
- Added new
extraErrorsBlockSubmit
prop toForm
that allows the extra asynchronous errors to block a form submit, fixing #3757
@rjsf/utils
- Updated
retrieveSchemaInternal()
to always resolve allOf schema without merging whenexpandAllBranches
is set, fixing compiled schema issue always throwing error withmergeAllOf
- Updated
getDefaultFormState()
to usemergeSchema()
for merging in the remaining schema foranyOf
/oneOf
- Updated
retrieveSchema()
to usemergeSchema()
for merging in the remaining schema foranyOf
/oneOf
Dev / docs / playground
- Switched to using npm workspaces for the sub-package hierarchy
- NOTE: Developers may need to run the
npm run refresh-node-modules
script first to get the build and tests to work correctly
- NOTE: Developers may need to run the
- Backfilled Docusaurus site with documentation for v3, v4
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