chore(deps): update dependency @rjsf/core to v5 #1799
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~4.2.3
->~5.22.0
Release Notes
rjsf-team/react-jsonschema-form (@rjsf/core)
v5.22.1
Compare Source
v5.22.0
Compare Source
@rjsf/core
MultiSchemaField
to call theonChange
handler after setting the new option, fixing #3997 and #4314@rjsf/utils
experimental_customMergeAllOf
option toretrieveSchema()
andgetDefaultFormState()
to allow custom merging ofallOf
schemasmergeDefaultsIntoFormData
option toExperimental_DefaultFormStateBehavior
type to control how to handle merging of defaultsmergeDefaultsWithFormData()
to add new optionaldefaultSupercedesUndefined
that when true uses the defaults rather thanundefined
formData, fixing #4322getDefaultFormState()
to pass true tomergeDefaultsWithFormData
fordefaultSupercedesUndefined
whenmergeDefaultsIntoFormData
has the valueuseDefaultIfFormDataUndefined
, fixing #4322getClosestMatchingOption()
to improve the scoring of sub-property objects that are provided over ones that aren't, fixing #3997 and #4314Dev / docs / playground
form-props.md
to add documentation for the newexperimental_customMergeAllOf
props and theexperimental_defaultFormStateBehavior.mergeDefaultsIntoFormData
optionutility-functions.md
to add documentation for the new optionaldefaultSupercedesUndefined
parameter and the two missing optional fields ongetDefaultFormState()
custom-templates.md
to add a section header for wrappingBaseInputTemplate
mergeDefaultsIntoFormData
optionShow Error List
component over one column, making it inline radio buttons rather than a selectv5.21.2
Compare Source
@rjsf/core
SchemaField
to passrequired
flag to_AnyOfField
/_OneOfField
Form
to deal with null objects infilterErrorsBasedOnSchema()
, fixing #4306@rjsf/utils
ErrorSchemaBuilder
to support adding, updating, and removing paths that are numbers, fixing #4297retrieveSchema
to not mergecontains
properties inallOf
schema lists, fixing #2923Dev / docs / playground
custom-widgets-fields.md
to add examples of wrapping a widget/fieldv5.21.1
Compare Source
@rjsf/utils
deepEquals()
from [#4292]@validator-ajv8
deepEquals()
instead oflodash.isEqual()
from [#4292]v5.21.0
Compare Source
@rjsf/core
Form
to fixfocusOnError()
to support the ids that include dots, fixing #4279@rjsf/mui
@mui/material
and@mui/icon-material
, fixing 4283@rjsf/utils
deepEquals()
to usefast-equals.createCustomEqual()
instead oflodash.isEqualWith()
, fixing #4291lodash.isEqual()
todeepEquals()
in many of the utility functions as well@validator-ajv8
@rjsf/utils
deepEquals()
instead oflodash.isEqual()
to improve performance, fixing #4291Dev / docs / playground
@mui/*
version 6, changing the name of the dropdown frommaterial-ui-5
tomui
v5.20.1
Compare Source
Dev / docs / playground
5.20.x
due to types and API changes in@rjsf/utils
v5.20.0
Compare Source
@rjsf/core
ArrayField
,BooleanField
andStringField
to calloptionsList()
with the additionalUiSchema
parameter, fixing #4215 and #4260@rjsf/utils
WidgetProps
type to addes?: ErrorSchema<T>, id?: string
to the params of theonChange
handler functionUIOptionsBaseType
to add the newenumNames
prop to support an alternate way to provide labels forenum
s in a schema, fixing #4215optionsList()
to take an optionaluiSchema
that is used to extract alternate labels forenum
s oroneOf
/anyOf
in a schema, fixing #4215 and #4260optionsList()
were expanded from<S extends StrictRJSFSchema = RJSFSchema>
to<S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any>
to support theUiSchema
.Dev / docs / playground
custom-widget-fields.md
to add documentation for how to raise errors from a custom widget or fieldv5.19.4
Compare Source
@rjsf/core
@rjsf/utils
ValidatorType
interface to add an optionalreset?: () => void
prop that can be implemented to reset a validator back to initial constructed stateParserValidator
to provide areset()
function that clears the schema mapMarkdown
rather than HTML tags since we now render them withMarkdown
@rjsf/validator-ajv8
AJV8Validator
to implement thereset()
function to remove cached schemas in theajv
instanceDev / docs / playground
Validator
dropdown to addAJV8 (discriminator)
which sets the AJV validator discriminator option totrue
to support testing schemas with that option in themv5.19.3
Compare Source
@rjsf/antd
@rjsf/chakra-ui
@rjsf/fluentui-rc
@rjsf/material-ui
@rjsf/mui
@rjsf/semantic-ui
v5.19.2
Compare Source
@rjsf/core
.only
on tests that was accidentally added in5.19.0
v5.19.1
Compare Source
Dev / docs / playground
5.19.x
due to use of new API in5.19.0
v5.19.0
Compare Source
@rjsf/antd
AltDateWidget
to use the newdateRangeOptions()
function inutils
to support relative Years and reversing the order of the Year choices@rjsf/chakra-ui
AltDateWidget
to use the newdateRangeOptions()
function inutils
to support relative Years and reversing the order of the Year choices@rjsf/core
readOnly
from a JSON Schema was not applied in SchemaField (#4236)AltDateWidget
to use the newdateRangeOptions()
function inutils
to support relative Years and reversing the order of the Year choices@rjsf/utils
dateRangeOptions()
function to implement relative Years in (via negative ranges) and reversing the order of the Year choicesDev / docs / playground
dateRangeOptions()
function as well as showing examples of using relative Years and reversed Year orderingv5.18.6
Compare Source
@rjsf/antd
@rjsf/core
omitExtraData
not working inonSubmit
andvalidateForm
; fixing #4187, #4165 and #4109@rjsf/utils
@rjsf/validator-ajv6
@rjsf/validator-ajv8
v5.18.5
Compare Source
@rjsf/antd
target
inonFocus
andonBlur
handlers@rjsf/bootstrap4
target
inonFocus
andonBlur
handlers@rjsf/chakra-ui
target
inonFocus
andonBlur
handlers@rjsf/core
target
inonFocus
andonBlur
handlers@rjsf/fluent-ui
target
inonFocus
andonBlur
handlers@rjsf/fluentui-rc
target
inonFocus
andonBlur
handlers@rjsf/material-ui
target
inonFocus
andonBlur
handlers@rjsf/mui
target
inonFocus
andonBlur
handlers@rjsf/semantic-ui
target
inonFocus
andonBlur
handlers@rjsf/validator-ajv6
@rjsf/validator-ajv8
v5.18.4
Compare Source
Dev / docs / playground
constants.ts
,Form.tsx
v5.18.3
Compare Source
@rjsf/semantic-ui
peerDependencies
Dev / docs / playground
react
to18.x
custom-widgets-fields.md
in the documentationLICENSE.md
to include the proper copyright dates and ownerv5.18.2
Compare Source
@rjsf/core
@rjsf/utils
v5.18.1
: 5.18.1Compare Source
5.18.0
introduced new features in@rjsf/utils
that affect@rjsf/core
v5.18.0
Compare Source
@rjsf/antd
@rjsf/core
@rjsf/mui
SelectWidget
andBaseInputTemplate
to filter outerrorSchema
andautocomplete
from thetextFieldProps
being spread onto theTextField
, fixing #4134@rjsf/utils
skipEmptyDefault
option inemptyObjectFields
, fixing #3880computeSkipPopulate
option inarrayMinItems
, allowing custom logic to skip populating arrays with default values, implementing #4121."\</strong>"
would get printed next to filenames when uploading files, and restored intended bolding of filenames fixing #4120.Dev / docs / playground
skipEmptyDefault
option.Form
in usage documentation - fixing #4127v5.17.1
Compare Source
@rjsf/chakra-ui
UiSchema
"ui:rows"
option fortextarea
elements, fixing #4070.@rjsf/core
errorSchema
toArrayFieldTemplate
props.@rjsf/utils
base64
object from the@rjsf/utils
package. Note that this is a breaking change if you relied on thebase64
object 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.errorSchema
to theArrayFieldTemplateProps
type.Dev / docs / playground
base64
encoder/decoder object to the Playground package.v5.17.0
Compare Source
@rjsf/core
anyOf
/oneOf
inuiSchema
s in theMultiSchemaField
, fixing #4039@rjsf/utils
base64
to supportencoding
anddecoding
using theUTF-8
charset to support the characters out of theLatin1
range.enumOptionsValueForIndex()
to fix issue that filtered enum options with a value that was 0, fixing #4067Dev / docs / playground
atob
andbtoa
) to invoke the functions from the newbase64
object in@rjsf/utils
.uiSchema.md
documentation to describe how to use the newanyOf
/oneOf
supportv5.16.1
Compare Source
Dev / docs / playground
v5.16.0
Compare Source
@rjsf/core
dateElementProps
function implementation, and replaced it withgetDateElementProps
from@rjsf/utils
.format: "data-url"
inFileWidget
, fixing #3957.@rjsf/antd
dateElementProps
function implementation, and replaced it withgetDateElementProps
from@rjsf/utils
.@rjsf/chakra-ui
dateElementProps
function implementation, and replaced it withgetDateElementProps
from@rjsf/utils
.@rjsf/mui
FieldErrorTemplate
andFieldHelpTemplate
to support html-based errors that cause<xxxx> cannot appear as a descendant of <p>
browser warnings, fixing #4031@rjsf/utils
getDateElementProps()
to refactor duplicate function incore
,antd
&chakra-ui
AltDateWidget's source code. The same function, implements the feature requested in #297Dev / docs / playground
v5.15.1
Compare Source
@rjsf/core
getFieldNames
. Now correctly defines an array of primitives.@rjsf/validator-ajv6
AJV6Validator
class to expose the internalajv
object, allowing access to support a fix related to #3972@rjsf/validator-ajv8
AJV8Validator
class to expose the internalajv
object, allowing access to support a fix related to #3972Dev / docs / playground
ajv
variablev5.15.0
Compare Source
@rjsf/mui
"ui:label": false
is specified.@rjsf/utils
resolveAllReferences()
to use own recurse list for each object properties, fixing #3961allOf
toexperimental_defaultFormStateBehavior
for populating defaults when usingallOf
schemas #3969Dev / playground
utils
invalidator-ajv6
andvalidator-ajv8
packages tsconfigsexperimental_defaultFormStateBehavior.allOf
behaviour in the playgroundv5.14.3
Compare Source
@rjsf/core
retrieveSchema
atForm
state to memoize the result ofschemUtils.retrieveSchema
@rjsf/fluentui-rc
ArrayFieldItemTemplate
itemsDev
"importHelpers": false
to remove need for tslib dependency #3958snapshot-tests
in a root tsconfig, update it to also use es modulesv5.14.2
Compare Source
@rjsf/antd
peerDependencies
for@ant-design/icons
to also support v5, fixing #3507@rjsf/core
retrieveSchema
twice duringgetStateFromProps
andmustValidate
is true #3959@rjsf/mui
hideError
property to the DOM element, fixing #3945@rjsf/material-ui
hideError
property to the DOM element, fixing #3945@rjsf/utils
sanitizeDataForNewSchema()
to avoid spreading strings and Arrays into the returned value when the old schema is of typestring
orarray
and the new schema is of typeobject
. Fixing #3922v5.14.1
Compare Source
@rjsf/utils
sanitizeDataForNewSchema()
to avoid spreading strings and Arrays into the returned value when the old schema is of typestring
orarray
and the new schema is of typeobject
. Fixing #3922labelValue
to have more granular return types, fixing #3946Dev / playground
v5.13.6
Compare Source
@rjsf/core
StringField
to passhideError
prop toWidget
so that all fields are consistent. Missed this file in previous patchv5.13.5
Compare Source
@rjsf/core
StringField
andBooleanField
to passhideError
prop toWidget
so that all fields are consistentv5.13.4
Compare Source
@rjsf/core
SchemaField
to show errors foranyOf
/oneOf
when being rendered as select control, fixing 3908v5.13.3
Compare Source
@rjsf/antd
SelectWidget
so that filtering works by reworking howoptions
are passed to the underlyingSelect
@rjsf/core
UNSAFE_componentWillReceiveProps()
method in the Form.tsx component with an improved solution utilizing the React lifecycle methods:getSnapshotBeforeUpdate()
andcomponentDidUpdate()
. Fixing #1794ArrayField
implementation to never pass an undefined schema for fixed arrays to other methods, fixing #3924getSnapshotBeforeUpdate()
caused by the fix for #1794, fixing #3927@rjsf/utils
toPathSchemaInternal()
util to generate correct path schemas for fixed arrays by picking up individual schemas in theitems
array, fixing #3909v5.13.2
Compare Source
@rjsf/utils
resolveAnyOrOneOfSchemas()
to not take arecurseList
anymore, and instead always pass an empty array down toresolveAllReferences()
, fixing #3902parseSchema()
andresolveDependencies()
to no longer passrecurseList
toresolveAnyOrOneOfSchemas()
@rjsf/validator-ajv8
AJV8PrecompiledValidator
to add a newensureSameRootSchema()
function that is called in bothrawValidation()
andisValid()
v5.13.1
Compare Source
@rjsf/core
ArrayField
to move errors in the errorSchema when the position of array items changes for the insert and copy cases.@rjsf/material-ui
Grid
container component in theArrayFieldTemplate
component that wrapped theArrayFieldItemTemplate
, fixing #3863SelectWidget
switches from controlled to uncontrolled whenenumOptions
does not include a value, fixing #3844@rjsf/mui
Grid
container component in theArrayFieldTemplate
component that wrapped theArrayFieldItemTemplate
, fixing #3863SelectWidget
switches from controlled to uncontrolled whenenumOptions
does not include a value, fixing #3844@rjsf/utils
getOptionMatchingSimpleDiscriminator()
functiongetMatchingOption
andgetClosestMatchingOption
now bypassvalidator.isValid()
calls when simple discriminator is provided, fixing #3692FieldTemplateProps['onChange']
retrieveSchema()
to properly resolve references inside ofproperties
and arrayitems
while also dealing with recursive$ref
s, fixing #3761schemaParser()
andgetClosestMatchingOption()
to pass the newrecursiveRef
parameter added to internalretrieveSchema()
APIs100%
test coverage that was lost when updating to Jest 29getDefaultFormState()
to remove an unnecessary check forformData
being an object since it is always guaranteed to be one, thereby allowing full testing coveragegetSchemaType()
to return the first schematype
when it is an array not containing'null'
, fixing #3875@rjsf/validator-ajv8
validator
andprecompiledValidator
tests to the restore100%
coverage that was lost when updating to Jest 29isValid()
for thevalidator
commenting out an if condition that was preventing100%
coverage, with a TODO to fix it laterDev / docs / playground
@types/jest
as a globaldevDependency
so that developer tools properly recognize the jest function typesv5.13.0
Compare Source
@rjsf/antd
StyleProvider
from@ant-design/cssinjs
. They need not have to install this package, its a transitive package coming from antd.@rjsf/core
MultiSchemaField
to only merge top level required field fixing duplicate field and description.validateForm()
) removes previous errors if all data is now valid.@rjsf/chakra-ui
isMultiple
option inMultiSchemaField
. It no longer offers multiple choice inside a select field in aoneOf
case in Chakra UI, fixing #3848Dev / docs / playground
v5.12.1
Compare Source
@rjsf/validator-ajv8
AJV8PrecompiledValidator.rawValidation()
to resolve root schema with formData when comparing input schema, fixing #3825@rjsf/core
MultiSchemaField
to merge all top level fields except properties for anyOf/oneOf options, fixing #3808 and #3787@rjsf/antd
@rjsf/utils
retrieveSchemaInternal
allOf logic for precompiled schemas to resolve top level properties fixing #3817v5.12.0
Compare Source
@rjsf/utils
experimental_defaultFormStateBehavior = { arrayMinItems: { populate: 'never' } }
(feature #3796)@rjsf/validator-ajv8
compileSchemaValidatorsCode
to allow creating precompiled validator without a file. This is useful in case when precompiled validator is to be created dynamically. #3793Dev / docs / playground
dts-cli
to use individual dev tools directly, updating package publish configform-props
documentationarrayMinItems
, added description fornever
.playground
to add the option for the newarrayMinItems.populate = 'never'
.v5.11.2
Compare Source
@rjsf/material-ui
@types/material-ui
which can cause typescript issues in some situations@rjsf/utils
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 #3805v5.11.1
Compare Source
@rjsf/core
SchemaField
to ignore errors foranyOf
/oneOf
parent schema, fixing 1295@rjsf/utils
resolveAllReferences()
function to resolve all references within a schema's properties and array items.getClosestMatchingOption()
to useresolveAllReferences()
for all oneOf/anyOf schemasresolveAnyOrOneOfSchemas()
to useresolveAllReferences()
for all oneOf/anyOf schemasnull
case inwithIdRefPrefix
, fixing #3792v5.10.0
Compare Source
@rjsf/core
getFieldComponent()
to support rendering a custom component by given schema id ($id). #3740MultiSchemaField
to merge the selectedoneOf/anyOf
value into baseschema
, fixing #3744@rjsf/utils
getClosestMatchingOption()
to resolve refs in options before computing the closest matching option, fixing an issue with using precompiled validatorsanyOf
anddiscriminator
support in the recursivecalculateIndexScore()
getDefaultFormState()
to merge the remaining schema intoanyOf/oneOf
schema selected during the computation of values, fixing #3744retrieveSchema()
to merge the remaining schema into theanyOf/oneOf
schema selected during the resolving of dependencies, fixing #3744Dev / docs / playground
custom-widgets-fields
documentation to add the new added behaviour ofgetFieldComponent()
function. #3740playground
to add an example of the new added behaviour ofgetFieldComponent()
function. #3740v5.9.0
Compare Source
@rjsf/utils
getDefaultFormState()
to fix a bug whereexperimental_defaultFormStateBehavior: { emptyObjectFields: 'populateRequiredDefaults' }
wasn't working for object properties with$ref
sexperimental_defaultFormStateBehavior.arrayMinItems
from simple flag to an object containing two optional fields,populate
andmergeExtraDefaults
arrayMinItems.mergeExtraDefaults
flag, when "true", allows users to merge defaults onto the end offormData
arrays whenminItems
is specifiedexperimental_defaultFormStateBehavior
as{ arrayMinItems = 'requiredOnly }
on theForm
, now you would pass{ arrayMinItems: { populate: 'requiredOnly' } }
mergeExtraArrayDefaults=false
flag to themergeDefaultWithFormData()
utility function to support the newarrayMinItems.mergeExtraDefaults
experimental featureDev / docs / playground
utility-functions
documentation to add the newmergeExtraArrayDefaults
flag for themergeDefaultWithFormData()
functionform-props
documentation to update thearrayMinItems
documentation for the new object behaviorplayground
to add a checkbox for the newarrayMinItems.mergeExtraDefaults
flagv5.8.2
Compare Source
@rjsf/validator-ajv8
v5.8.1
Compare Source
Dev / docs / playground
^5.8.x
v5.8.0
Compare Source
@rjsf/bootstrap-4
@rjsf/chakra-ui
@rjsf/core
MultiSchemaField.getMatchingOption
to use option index fromgetClosestMatchingOption
, fixing #3693 and#3705
@rjsf/fluent-ui
@rjsf/material-ui
@rjsf/mui
@rjsf/semantic-ui
@rjsf/utils
getClosestMatchingOption
to return selected option if all options score the same, fixing #3693 and #3705resolveCondition
to default formData as empty object when evaluating if expression, fixing #3706retrieveSchemaInternal
to return failed merged allOf sub schemas for expandAllBranches flag, fixing #3689hashForSchema
to sort schema fields in consistent order before stringify to prevent different hash ids for the same schemaenumOptionsSelectValue
to allow picking falsy enumOptions, fixing #3716@rjsf/validator-ajv8
AJV8PrecompiledValidator.rawValidation()
to use resolve root schema when comparing input schema, fixing #3708Dev / docs / playground
RJSFSchema
descriptionv5.7.3
Compare Source
@rjsf/utils
getClosestMatchingOption
JUNK_OPTION
schema with a well known $idschemaParser
to resolve array items field, fixing #3689@rjsf/validator-ajv8
AJV8PrecompiledValidator.isValid()
to return false for junk schema option, fixing #3677v5.7.2
Compare Source
@rjsf/validator-ajv8
ajv
types by simplifying theCompiledValidateFunction
type to avoid a bunch of Typescript errors encountered by users of the packagev5.7.1
Compare Source
@rjsf/validator-ajv8
cjs
development version, to not export thecompileSchemaValidators()
function to avoid "Module not found: Can't resolve 'fs' error" issues, fixing #3668@rjsf/core
field
in thefocusOnError
method inForm
Dev / docs / playground
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 environmentspackage-lock.json
files to bump peer-dependencies to5.7.x
, fixing #3669v5.7.0
Compare Source
@rjsf/antd
SelectWidget
and description forCheckboxWidget
@rjsf/core
MultiSchemaField
to use the newgetDiscriminatorFieldFromSchema()
APIexperimental_defaultFormStateBehavior
prop toForm
minItems
is set but field is notrequired
(fixes #3363) (#3602)emptyObjectFields
supporting required fields only and skipping defaults entirely, fixing [#2980](https://redirect.github.com/rjsf-team/react-jsonsConfiguration
📅 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.