v5.0.0-beta.1
Pre-release
Pre-release
Global changes across all themes:
- Node 16 is now the default node engine for all packages, fixing (#2687)
- Refactored all themes to use the new
@rjsf/utilslibrary functions and types - Refactored the individual theme forms to consolidate
templatesas part of the fix for #2526 - Bumped most devDependencies to the latest versions where possible
- Switched all repos
package.jsonandpackage-lock.jsonfiles to be built and maintained by Node 16. - Adding button templates help to change text for buttons (#2082, #2357)
@rjsf/utils
- New package created by refactoring and converting to Typescript the
utils.jsfile fromcoreinto independent functions. - Updated
typesfromcoreinutilsto better match the implementation across all themes - Clear errors on
formDatachange whenliveOmit=truewhen "additionalProperties: false" issue 1507 (#2631)
@rjsf/validator-ajv6
- New package created by refactoring and converting to Typescript the
validator.jsfile fromcoreinto independent functions as well as a class that implements the newValidatorTypeinterface. - Added support for customizing the options passed to the creation of the
ajvinstance.
@rjsf/validator-ajv6
- A BREAKING CHANGE to
toErrorList()was made so that it takesfieldPath: string[]rather thanfieldName='root'as part of the fix to (#1596)- The returned
errorsalso now addspropertyfrom thefieldPathalong with the proper path from thepropertyto thestackmessage, making it consistent with the AJV errors.- Previously the
stackattribute would sayroot: error message; now it says. error message
- Previously the
- In addition, the extra information provided by AJV is no longer lost from the
errorswhen merged with custom validation, fixing (#1596).
- The returned
@rjsf/core
- Converted core to Typescript (#583)
ui:emptyValuenow works with selects (#1041)- Refactoring
utils.jsinto the new@rjsf/utilsfixes (#2719) - BREAKING CHANGE Fix overriding core submit button className (#2979)
- Fix
ui:fieldwith anyOf or oneOf no longer rendered twice (#2890) - BREAKING CHANGE Fixed
anyOfandoneOfgetting incorrect, potentially duplicate ids when combined with array (#2197) formContextis now passed properly toSchemaField, fixes (#2394, #2274)- Added
ui:duplicateKeySuffixSeparatorto customize how duplicate object keys are renamed when usingadditionalProperties. - The
extraErrorsare now consistently appended onto the end of the schema validation-basederrorsinformation that is returned via theonErrors()callback when submit fails.- In addition, the extra information provided by AJV is no longer stripped from the
errorsduring the merge process, fixing (#1596).
- In addition, the extra information provided by AJV is no longer stripped from the
- Fixed id generation for
RadioWidgetto no longer use random numbers fixing (#2461) - Correctly call the
onChangehandler in the new set of props if it changed, fixing (#1708). - Fixed race condition for
onChangewhenformDatais controlled prop, fixing (#513),
@rjsf/antd
- Fix esm build to use
@rollup/plugin-replaceto replaceantd/libandrc-picker/libwithantd/esandrc-picker/esrespectively, fixing (#2962)
@rjsf/bootstrap-4
- Bootstrap-4
withThemecustomizations should work properly now (#2058) ArrayFieldTemplaterefactor seems to have fixed #2775- Fix issues with
SelectField(#2616, #2875)
@rjsf/chakra-ui
- Properly handle the hidden field in this theme (#2571)
@rjsf/material-ui
- The theme for Material UI version 5 (i.e.
@rjsf/mui) was split out of the theme for version 4 (i.e.@rjsf/material-ui) to resolve the following issues: - Material-UI TextWidget now respects
inputTypein uiSchema (#2057)- Also respects
stepfornumbertype (#2488)
- Also respects
- Material-UI UpDownWidget now support min/max/step (#2022)
- Properly handle the hidden field in this theme (#2571)
- Select properly accepts true or false (#2326)
@rjsf/mui
- The theme for Material UI version 5 (i.e.
@rjsf/mui) was split out of the theme for version 4 (i.e.@rjsf/material-ui) to resolve the following issues: - Material-UI TextWidget now respects
inputTypein uiSchema (#2057)- Also respects
stepfornumbertype (#2488)
- Also respects
- Material-UI UpDownWidget now support min/max/step (#2022)
- Properly handle the hidden field in this theme (#2571)
@rjsf/semantic-ui
- Fix missing error class on fields (#2666)
- Fixed the
maindefinition insemantic-uito fix (withastro/astro#4357) - Properly handle the hidden field in this theme (#2571)