redux-devtools
redux-devtools copied to clipboard
fix(deps): update dependency @rjsf/core to v5
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @rjsf/core | ^4.2.3 -> ^5.19.0 |
Release Notes
rjsf-team/react-jsonschema-form (@rjsf/core)
v5.19.0
- Updated
AltDateWidgetto use the newdateRangeOptions()function inutilsto support relative Years and reversing the order of the Year choices
- Updated
AltDateWidgetto use the newdateRangeOptions()function inutilsto support relative Years and reversing the order of the Year choices
@rjsf/core
- Fixed case where
readOnlyfrom a JSON Schema was not applied in SchemaField (#4236) - Updated
AltDateWidgetto use the newdateRangeOptions()function inutilsto support relative Years and reversing the order of the Year choices
@rjsf/utils
- Added a new
dateRangeOptions()function to implement relative Years in (via negative ranges) and reversing the order of the Year choices
Dev / docs / playground
- Added documentation for the new
dateRangeOptions()function as well as showing examples of using relative Years and reversed Year ordering
v5.18.6
@rjsf/antd
- Fix disabled property of options in CheckboxesWidget and RadioWidget (#4216)
@rjsf/core
@rjsf/utils
- Fix IdSchema and PathSchema types (#4196)
@rjsf/validator-ajv6
- Fix IdSchema and PathSchema types (#4196)
@rjsf/validator-ajv8
- Fix IdSchema and PathSchema types (#4196)
v5.18.5
@rjsf/antd
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers
@rjsf/bootstrap4
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers
@rjsf/chakra-ui
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers
@rjsf/core
- Fix case where NumberField would not properly reset the field when using programmatic form reset (#4202)[https://github.com/rjsf-team/react-jsonschema-form/issues/4202](https://togithub.com/rjsf-team/react-jsonschema-form/issues/4202)2]
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers - Fix field disable or readonly property can't cover globalOptions corresponding property (#4212)[https://github.com/rjsf-team/react-jsonschema-form/pull/4212](https://togithub.com/rjsf-team/react-jsonschema-form/pull/4212)2]
@rjsf/fluent-ui
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers
@rjsf/fluentui-rc
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers
@rjsf/material-ui
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers
@rjsf/mui
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers
@rjsf/semantic-ui
- Updated widgets to handle undefined
targetinonFocusandonBlurhandlers
@rjsf/validator-ajv6
- Improved performance issues with large schema dependencies and oneOf conditions #4203.
@rjsf/validator-ajv8
- Improved performance issues with large schema dependencies and oneOf conditions #4203.
v5.18.4
Dev / docs / playground
- Fixed typo in
constants.ts,Form.tsx
v5.18.3
@rjsf/semantic-ui
- Added support for version 2 in the
peerDependencies
Dev / docs / playground
- Bumped devDependencies on
reactto18.x - Fixed typo in
custom-widgets-fields.mdin the documentation - Updated the
LICENSE.mdto include the proper copyright dates and owner
v5.18.2
@rjsf/core
- Fixed Programmatic submit not working properly in Firefox #3121
@rjsf/utils
- #4116 Fix Maximum call stack size exceeded when encountering circular definitions (Link to PR)
v5.18.1: 5.18.1
- Bumped peer dependencies since
5.18.0introduced new features in@rjsf/utilsthat affect@rjsf/core
v5.18.0
@rjsf/antd
- Fix issue where the theme provided by the ConfigProvider under antd v5 wasn't respected thereby rendering the form items unusable under dark themes #4129
@rjsf/core
- Fix Error state not resetting when schema changes #4079
@rjsf/mui
- Fixed the
SelectWidgetandBaseInputTemplateto filter outerrorSchemaandautocompletefrom thetextFieldPropsbeing spread onto theTextField, fixing #4134
@rjsf/utils
- Added a new
skipEmptyDefaultoption inemptyObjectFields, fixing #3880 - Added a new
computeSkipPopulateoption inarrayMinItems, allowing custom logic to skip populating arrays with default values, implementing #4121. - Fixed bug where the string
"\</strong>"would get printed next to filenames when uploading files, and restored intended bolding of filenames fixing #4120.
Dev / docs / playground
- Updated the documentation to describe how to use the
skipEmptyDefaultoption. - Fixed missing import of
Formin usage documentation - fixing #4127
v5.17.1
@rjsf/chakra-ui
- Added support for
UiSchema"ui:rows"option fortextareaelements, fixing #4070.
@rjsf/core
- #4091 Added
errorSchematoArrayFieldTemplateprops.
@rjsf/utils
- #4080 - BREAKING CHANGE: Removed the
base64object from the@rjsf/utilspackage. Note that this is a breaking change if you relied on thebase64object exported by@rjsf/utils. Since this change caused #4080, and was only internally used by playground code, we are shipping this change in a patch release. - #4091 Added
errorSchemato theArrayFieldTemplatePropstype.
Dev / docs / playground
- #4080 - Moved the
base64encoder/decoder object to the Playground package. - Added test configuration and script to the Playground.
v5.17.0
@rjsf/core
- Added support for
anyOf/oneOfinuiSchemas in theMultiSchemaField, fixing #4039 - Fix potential XSS vulnerability in the preview button of FileWidget, fixing #4057
@rjsf/utils
- #4024 Added
base64to supportencodinganddecodingusing theUTF-8charset to support the characters out of theLatin1range. - Updated
enumOptionsValueForIndex()to fix issue that filtered enum options with a value that was 0, fixing #4067 - Changes the way of parsing the data URL, to fix #4057
Dev / docs / playground
- #4024 Updated the base64 references from (
atobandbtoa) to invoke the functions from the newbase64object in@rjsf/utils. - Updated the
uiSchema.mddocumentation to describe how to use the newanyOf/oneOfsupport
v5.16.1
Dev / docs / playground
- Bumped peer dependencies due to new utils function
v5.16.0
@rjsf/core
- Pass indexed title from array into its items, adding enhancement asked in #3983
- Removed
dateElementPropsfunction implementation, and replaced it withgetDateElementPropsfrom@rjsf/utils. - Modify submit method to make it a public method, fixing #4015
- Support file deletion for
format: "data-url"inFileWidget, fixing #3957.
@rjsf/antd
- Removed
dateElementPropsfunction implementation, and replaced it withgetDateElementPropsfrom@rjsf/utils.
@rjsf/chakra-ui
- Removed
dateElementPropsfunction implementation, and replaced it withgetDateElementPropsfrom@rjsf/utils.
@rjsf/mui
- Updated the
FieldErrorTemplateandFieldHelpTemplateto support html-based errors that cause<xxxx> cannot appear as a descendant of <p>browser warnings, fixing #4031
@rjsf/utils
- Added
getDateElementProps()to refactor duplicate function incore,antd&chakra-uiAltDateWidget's source code. The same function, implements the feature requested in #297
Dev / docs / playground
- Updated docs and playground with the implementation guide of newly added date re-order feature.
v5.15.1
@rjsf/core
- fix
getFieldNames. Now correctly defines an array of primitives.
@rjsf/validator-ajv6
- Updated the
AJV6Validatorclass to expose the internalajvobject, allowing access to support a fix related to #3972
@rjsf/validator-ajv8
- Updated the
AJV8Validatorclass to expose the internalajvobject, allowing access to support a fix related to #3972
Dev / docs / playground
- Updated the documentation to describe how to use the newly exposed
ajvvariable
v5.15.0
@rjsf/mui
- fix gap in text and select widget outlines when
"ui:label": falseis specified.
@rjsf/utils
- Updated
resolveAllReferences()to use own recurse list for each object properties, fixing #3961 - Added an experimental flag
allOftoexperimental_defaultFormStateBehaviorfor populating defaults when usingallOfschemas #3969
Dev / playground
- add missing typescript project reference for
utilsinvalidator-ajv6andvalidator-ajv8packages tsconfigs - Added a dropdown for changing the
experimental_defaultFormStateBehavior.allOfbehaviour in the playground
v5.14.3
@rjsf/core
- add
retrieveSchemaatFormstate to memoize the result ofschemUtils.retrieveSchema
@rjsf/fluentui-rc
- Updated README.md references
- Fixed width of
ArrayFieldItemTemplateitems
Dev
- update tsconfigs:
"importHelpers": falseto remove need for tslib dependency #3958- increase compilation target level from es6 to es2018 (so there are no need for transpiling object spread/rest feature)
- add missing typescript project reference for
snapshot-testsin a root tsconfig, update it to also use es modules
v5.14.2
@rjsf/antd
- Fixed the
peerDependenciesfor@ant-design/iconsto also support v5, fixing #3507
@rjsf/core
- avoid call
retrieveSchematwice duringgetStateFromPropsandmustValidateis true #3959
@rjsf/mui
- Resolve the React error caused by the propagation of the
hideErrorproperty to the DOM element, fixing #3945
@rjsf/material-ui
- Resolve the React error caused by the propagation of the
hideErrorproperty to the DOM element, fixing #3945
@rjsf/utils
- Update
sanitizeDataForNewSchema()to avoid spreading strings and Arrays into the returned value when the old schema is of typestringorarrayand the new schema is of typeobject. Fixing #3922
v5.14.1
@rjsf/utils
- Update
sanitizeDataForNewSchema()to avoid spreading strings and Arrays into the returned value when the old schema is of typestringorarrayand the new schema is of typeobject. Fixing #3922 - update types for
labelValueto have more granular return types, fixing #3946
Dev / playground
- Added Fluent UI v9 (React Components) theme to playground
- Update Fluent UI v9 and playground project references
- Update eslint ignores to exclude new typescript build output folders
v5.13.6
@rjsf/core
- Updated
StringFieldto passhideErrorprop toWidgetso that all fields are consistent. Missed this file in previous patch
v5.13.5
@rjsf/core
- Updated
StringFieldandBooleanFieldto passhideErrorprop toWidgetso that all fields are consistent
v5.13.4
@rjsf/core
- Updated
SchemaFieldto show errors foranyOf/oneOfwhen being rendered as select control, fixing 3908
v5.13.3
@rjsf/antd
- Fixed the
SelectWidgetso that filtering works by reworking howoptionsare passed to the underlyingSelect
@rjsf/core
- Replaced the deprecated
UNSAFE_componentWillReceiveProps()method in the Form.tsx component with an improved solution utilizing the React lifecycle methods:getSnapshotBeforeUpdate()andcomponentDidUpdate(). Fixing #1794 - Fixed the
ArrayFieldimplementation to never pass an undefined schema for fixed arrays to other methods, fixing #3924 - Fixed a refresh issue in
getSnapshotBeforeUpdate()caused by the fix for #1794, fixing #3927
@rjsf/utils
- Updated
toPathSchemaInternal()util to generate correct path schemas for fixed arrays by picking up individual schemas in theitemsarray, fixing #3909
v5.13.2
@rjsf/utils
- Updated
resolveAnyOrOneOfSchemas()to not take arecurseListanymore, and instead always pass an empty array down toresolveAllReferences(), fixing #3902- Also updated
parseSchema()andresolveDependencies()to no longer passrecurseListtoresolveAnyOrOneOfSchemas()
- Also updated
@rjsf/validator-ajv8
- Updated
AJV8PrecompiledValidatorto add a newensureSameRootSchema()function that is called in bothrawValidation()andisValid()- This function adds an optimization to avoid resolving the root schema unless necessary
v5.13.1
@rjsf/core
- Updated
ArrayFieldto move errors in the errorSchema when the position of array items changes for the insert and copy cases.
@rjsf/material-ui
- Removed an unnecessary
Gridcontainer component in theArrayFieldTemplatecomponent that wrapped theArrayFieldItemTemplate, fixing #3863 - Fixed an issue where
SelectWidgetswitches from controlled to uncontrolled whenenumOptionsdoes not include a value, fixing #3844
@rjsf/mui
- Removed an unnecessary
Gridcontainer component in theArrayFieldTemplatecomponent that wrapped theArrayFieldItemTemplate, fixing #3863 - Fixed an issue where
SelectWidgetswitches from controlled to uncontrolled whenenumOptionsdoes not include a value, fixing #3844
@rjsf/utils
- Added
getOptionMatchingSimpleDiscriminator()function getMatchingOptionandgetClosestMatchingOptionnow bypassvalidator.isValid()calls when simple discriminator is provided, fixing #3692- Fix data type in
FieldTemplateProps['onChange'] - Updated
retrieveSchema()to properly resolve references inside ofpropertiesand arrayitemswhile also dealing with recursive$refs, fixing #3761- Updated
schemaParser()andgetClosestMatchingOption()to pass the newrecursiveRefparameter added to internalretrieveSchema()APIs
- Updated
- Added/updated all the necessary tests to restore the
100%test coverage that was lost when updating to Jest 29- Updated
getDefaultFormState()to remove an unnecessary check forformDatabeing an object since it is always guaranteed to be one, thereby allowing full testing coverage
- Updated
- Updated
getSchemaType()to return the first schematypewhen it is an array not containing'null', fixing #3875
@rjsf/validator-ajv8
- Updated the
validatorandprecompiledValidatortests to the restore100%coverage that was lost when updating to Jest 29- Updated
isValid()for thevalidatorcommenting out an if condition that was preventing100%coverage, with a TODO to fix it later
- Updated
Dev / docs / playground
- Added the
@types/jestas a globaldevDependencyso that developer tools properly recognize the jest function types
v5.13.0
@rjsf/antd
- Bump Antd version from v4 to v5.
- Intentionally kept peer dependencies to v4 so that this change doesn't make breaking change for @rfjs/antd users.
- However, if users of @rjsf/antd want to use v5 styling, they need to wrap your application with the
StyleProviderfrom@ant-design/cssinjs. They need not have to install this package, its a transitive package coming from antd.
import { StyleProvider } from '@​ant-design/cssinjs';
const Component = () => {
return (
<StyleProvider>
<YourFormComponents />
</StyleProvider>
);
};
@rjsf/core
- Updated
MultiSchemaFieldto only merge top level required field fixing duplicate field and description. - Fixed programmatic validation (
validateForm()) removes previous errors if all data is now valid.
@rjsf/chakra-ui
- Fixed a faulty check of the
isMultipleoption inMultiSchemaField. It no longer offers multiple choice inside a select field in aoneOfcase in Chakra UI, fixing #3848
Dev / docs / playground
- Fixed custom validation playground example (#3856)
v5.12.1
@rjsf/validator-ajv8
- Updated
AJV8PrecompiledValidator.rawValidation()to resolve root schema with formData when comparing input schema, fixing #3825
@rjsf/core
- Updated
MultiSchemaFieldto 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
retrieveSchemaInternalallOf logic for precompiled schemas to resolve top level properties fixing #3817
v5.12.0
@rjsf/utils
- Experimental feature:
- Added
experimental_defaultFormStateBehavior = { arrayMinItems: { populate: 'never' } }(feature #3796)
- Added
@rjsf/validator-ajv8
- Exposing new function
compileSchemaValidatorsCodeto 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-clito 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-propsdocumentationarrayMinItems, added description fornever. - Updated the
playgroundto add the option for the newarrayMinItems.populate = 'never'.
v5.11.2
@rjsf/material-ui
- Removed unnecessary import of old
@types/material-uiwhich 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
v5.11.1
@rjsf/core
- Updated
SchemaFieldto ignore errors foranyOf/oneOfparent 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
nullcase inwithIdRefPrefix, fixing #3792
v5.10.0
@rjsf/core
- Updated
getFieldComponent()to support rendering a custom component by given schema id ($id). #3740 - Updated
MultiSchemaFieldto merge the selectedoneOf/anyOfvalue 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
anyOfanddiscriminatorsupport in the recursivecalculateIndexScore()
- Also, added support for nested
- Updated
getDefaultFormState()to merge the remaining schema intoanyOf/oneOfschema selected during the computation of values, fixing #3744 - Updated
retrieveSchema()to merge the remaining schema into theanyOf/oneOfschema selected during the resolving of dependencies, fixing #3744
Dev / docs / playground
- Updated the
custom-widgets-fieldsdocumentation to add the new added behaviour ofgetFieldComponent()function. #3740 - Updated the
playgroundto add an example of the new added behaviour ofgetFieldComponent()function. #3740
v5.9.0
@rjsf/utils
- Updated
getDefaultFormState()to fix a bug whereexperimental_defaultFormStateBehavior: { emptyObjectFields: 'populateRequiredDefaults' }wasn't working for object properties with$refs - Experimental feature breaking change:
- Updated the
experimental_defaultFormStateBehavior.arrayMinItemsfrom simple flag to an object containing two optional fields,populateandmergeExtraDefaults- The new
arrayMinItems.mergeExtraDefaultsflag, when "true", allows users to merge defaults onto the end offormDataarrays whenminItemsis specified
- The new
- If you were previously passing
experimental_defaultFormStateBehavioras{ arrayMinItems = 'requiredOnly }on theForm, now you would pass{ arrayMinItems: { populate: 'requiredOnly' } }
- Updated the
- Added a new, optional
mergeExtraArrayDefaults=falseflag to themergeDefaultWithFormData()utility function to support the newarrayMinItems.mergeExtraDefaultsexperimental feature
Dev / docs / playground
- Updated the
utility-functionsdocumentation to add the newmergeExtraArrayDefaultsflag for themergeDefaultWithFormData()function - Updated the
form-propsdocumentation to update thearrayMinItemsdocumentation for the new object behavior - Updated the
playgroundto add a checkbox for the newarrayMinItems.mergeExtraDefaultsflag
v5.8.2
@rjsf/validator-ajv8
- Explicitly cache schemas by their hash when checking data is valid to avoid multiple compilations for schemas without IDs leading to poor performance #3721
v5.8.1
Dev / docs / playground
- Updated peer dependencies in all packages to
^5.8.x
v5.8.0
@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.getMatchingOptionto 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
getClosestMatchingOptionto return selected option if all options score the same, fixing #3693 and #3705 - Updated
resolveConditionto default formData as empty object when evaluating if expression, fixing #3706 - Updated
retrieveSchemaInternalto return failed merged allOf sub schemas for expandAllBranches flag, fixing #3689 - Updated
hashForSchemato sort schema fields in consistent order before stringify to prevent different hash ids for the same schema - Updated
enumOptionsSelectValueto 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
RJSFSchemadescription - Fixed broken playground examples (#3696)
- Added experimental_defaultFormStateBehavior.emptyObjectFields control to Playground
- Fixed bug where subthemes would not appear in Playground
v5.7.3
@rjsf/utils
- Updated
getClosestMatchingOptionJUNK_OPTIONschema with a well known $id - Updated
schemaParserto resolve array items field, fixing #3689
@rjsf/validator-ajv8
- Updated
AJV8PrecompiledValidator.isValid()to return false for junk schema option, fixing #3677
v5.7.2
@rjsf/validator-ajv8
- Removed the importing of internal
ajvtypes by simplifying theCompiledValidateFunctiontype to avoid a bunch of Typescript errors encountered by users of the package
v5.7.1
@rjsf/validator-ajv8
- Updated the build for all but the
cjsdevelopment version, to not export thecompileSchemaValidators()function to avoid "Module not found: Can't resolve 'fs' error" issues, fixing #3668
@rjsf/core
- Added protection against a null
fieldin thefocusOnErrormethod inForm
Dev / docs / playground
- Updated the
validationdocumentation 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.jsonfiles to bump peer-dependencies to5.7.x, fixing #3669
v5.7.0
@rjsf/antd
- Fix #3608 by ensuring the root field is always wrapped in Form.Item
- Fix #3594 by removing the duplicate title for
SelectWidgetand description forCheckboxWidget
@rjsf/core
- Updated the
MultiSchemaFieldto use the newgetDiscriminatorFieldFromSchema()API - Added new
experimental_defaultFormStateBehaviorprop toForm- to specify alternate behavior when dealing with the rendering of array fields where
minItemsis set but field is notrequired(fixes #3363) (#3602) - to handle setting object defaults based on the value of
emptyObjectFieldssupporting required fields only and skipping defaults entirely, fixing #2980
- to specify alternate behavior when dealing with the rendering of array fields where
- Fixed regression #3650 in
FileWidgetto again support adding multiple files to arrays
@rjsf/fluent-ui
- Added support for
additionalPropertiesto fluent-ui theme, fixing #2777. - Upgraded to
8.xversion of@fluentui/reactmaintaining 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 handlepropertiesin 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$refin 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-templatesdescribing how to extend theBaseInputTemplate - Added minItems behavior for array field live setting, fixing #3602
- Upgraded playground to
8.xversion of@fluentui/react, fixing #3463 - Added documentation to
validationdescribing the new precompiled validators feature - Added new
validator-ajv8.mddocumentation to theapi-referencedirectory as well as putting it into thesidebar.js
v5.6.2
Dev / docs / playground
- Fixed issues with
post-versioningthat caused the 5.6.1 branch to not be publishable
v5.6.0
@rjsf/antd
- Treat multiple as a boolean rather than comparing against
undefinedin theSelectWidget, fixing #3595
@rjsf/core
- Switched
Formto use the newvalidatorDataMerge()andtoErrorList()functions instead of the now deprecatedschemaUtils.mergeValidatorData()andschemaUtils.getValidator().toErrorList() - Added option to provide a callback function to
focusOnFirstError(3590) - Updated
MultiSchemaFieldto handle the OpenAPIdiscriminatorextension onanyOf/oneOffields by passing it intogetClosestMatchingOption()if it exists, fixing #3512 - Updated
SchemaFieldfunction to usegetSchemaTyperather thanschema.typeto set the proper class name.
@rjsf/utils
- Refactored the
createErrorHandler(),toErrorList(),toErrorSchema()andunwrapErrorHandler()functions from the@rjsf/validator-ajv6and@rjsf/validator-ajv8implementations since they were identical- As a result, the
mergeValidationData()function was deprecated in favor of the newvalidationDataMerge()function that uses the refactoredtoErrorList()function - Refactored the
ROOT_SCHEMA_PREFIXconstant as well
- As a result, the
- Updated
ValidatorTypeandSchemaUtilsTypeto deprecate thetoErrorList()andmergeValidationData()functions, respectively - Updated the
getClosestMatchingOption()andgetFirstMatchingOption()to pass the newdiscriminatorFieldto thegetMatchingOption()function - Updated
getMatchingOption()to usediscriminatorFieldwhen it is present in theoptionsobject properties to drill into the object to detect if that one field is valid - Updated
SchemaUtilsTypeand the associated forward functions increateSchemaUtilsto add the newdiscriminatorField?: stringoptional parameter - Updated
toIdSchema()function to usegetSchemaType(schema) === 'object'rather thanschema.type === 'object'to get the proper pathing for ids, fixing #2044
@rjsf/validator-ajv6
- Removed the refactored functions and constant from the
AJV6Validatorin favor of using the new functions and constant from@rjsf/utils
@rjsf/validator-ajv8
- Removed the refactored functions and constant from the
AJV8Validatorin favor of using the new functions and constant from@rjsf/utils
Dev / docs / playground
- Updated the
utility-functionsdocumentation to describe the new refactored functions as well as deprecating themergeValidationData()function - Updated the
playgroundto properly restoreliveSettingsfrom shared links and added a switch fornoHtml5Validationin the live settings rather than having it set totruealways- Also added a new
Blankexample to help users easily paste their code
- Also added a new
v5.5.2
@rjsf/material-ui
- Switched to using
TextFieldfor theWrapIfAdditionalTemplatelabel key input to match the@rjsf/muifix
@rjsf/mui
- Switched to using
TextFieldfor theWrapIfAdditionalTemplatelabel key input, fixing #3578
Dev / docs / playground
- Updated the
templatespassed into the mainFormto not include undefined values, fixing #3576 and #3579
v5.5.1
@rjsf/core
- Updated
Formto include the topdisabledproperty in theui:submitButtonOptionsso the submit button will be disabled when the whole form is disabled. Fixes #3264.
@rjsf/utils
- Added protections against infinite recursion of
$refs for thetoIdSchema(),toPathSchema()andgetDefaultFormState()functions, fixing #3560 - Updated
getDefaultFormState()to handle object-basedadditionalPropertieswith defaults usingformDatain addition to values contained in adefaultobject, fixing #2593 - Updated internal helper
withExactlyOneSubschema()inside ofretrieveSchema()to use theisValid()function rather thanvalidateFormData()when determining the one-of branch
Dev / docs / playground
- Refactored some parts of
playgroundto make it cleaner- This includes fixing the spelling of the
disabledflag being passed into theFormfrom the incorrectdisablespelling
- This includes fixing the spelling of the
- Formatted the entire monorepo which included 6 unformatted files outside of
playground - Removed
react-app-polyfillpackage fromplaygound. This ends IE11 support - Fix a handful of broken docs links, fixing #3553
v5.5.0
@rjsf/antd
- Updated tests to use centralized snapshots from
core
@rjsf/bootstrap-4
- Updated tests to use centralized snapshots from
core
@rjsf/chakra-ui
- Updated tests to use centralized snapshots from
core
@rjsf/core
- Updated
FileWidgetto pass false forrequiredonce a value has been specified, fixing #3504 - Updated
ObjectFieldto pass theerrorSchemato theObjectFieldTemplateto allow custom templates access to the errors - Centralized snapshot tests from each theme into
core, adding snapshots tests forcoreas well
@rjsf/fluent-ui
- Updated tests to use centralized snapshots from
core
@rjsf/material-ui
- Updated tests to use centralized snapshots from
core
@rjsf/mui
- Updated tests to use centralized snapshots from
core
@rjsf/semantic-ui
- Updated tests to use centralized snapshots from
core
@rjsf/utils
- Added
errorSchemaas an optional prop onObjectFieldTemplateProps
Dev / docs / playground
- Converted the
playgroundto use Typescript, including some refactoring of code to make that job easier - Updated the
custom-templatesdocumentation to adderrorSchemato the props forObjectFieldTemplate
v5.4.0
@rjsf/antd
- Added the ability to use a tooltip for a description
- Updated
ObjectFieldTemplateto hide the titles and descriptions whendisplayLabelis true (including globally), fixing #3231 - Updated
CheckboxWidgetto show thedescriptionusing theDescriptionFieldTemplate, fixing #2791 - Updated
CheckboxesWidgetandSelectWidgetto show thelabelusing theTitleFieldTemplate, fixing #2134
@rjsf/bootstrap-4
- Updated
ObjectFieldTemplateto hide the titles and descriptions whendisplayLabelis true (including globally), fixing #3231 - Updated
CheckboxWidgetto show thedescriptionusing theDescriptionFieldTemplate, fixing #2791 - Updated
RangeWidgetto fix the label hiding bug usinglabelValue()
@rjsf/chakra-ui
- Fix: MUI radio widget initializes as uncontrolled when schema has no default value, fixing #3511
- Updated
ObjectFieldTemplateto hide the titles and descriptions whendisplayLabelis true (including globally), fixing #3231 - Updated
CheckboxesWidget,CheckboxWidget,RadioWidgetandSelectWidgetto hide labels whenhideLabelis true using the newlabelValue()helper (including globally) - Updated
CheckboxWidgetto show thedescriptionusing theDescriptionFieldTemplate, fixing #2791
@rjsf/core
- Updated
FileWidgetto show a preview of images and a download link for non-images when thefilePreviewoptions is set to true in theUiSchema - Updated
ArrayField,BooleanField,MultiSelectFieldandStringFieldto passlabel(read fromuiSchema.title||schema.title||name) andhideLabeldown to all of theWidgetsthey render, fixing #827, #2636, #2399 and [#3531](https://togithub.com/rjsf-tea
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
⚠️ No Changeset found
Latest commit: b6b9ac8e5251b05d7e372187a8b6578718220067
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.