@rjsf/core
- Updated
MultiSchemaField
to utilize the newgetClosestMatchingOption()
andsanitizeDataForNewSchema()
functions, fixing the following issues: - Updated
ObjectField
to deal withadditionalProperties
withoneOf
/anyOf
, fixing #2538 - Updated
Form
,MultiSchemaField
,ObjectField
andSchemaField
to properly support makingformData
optional, fixing #3305
@rjsf/material-ui
- Fix shrinking of
SelectWidget
label only if value is not empty, fixing #3369
@rjsf/mui
- Fix shrinking of
SelectWidget
label only if value is not empty, fixing #3369
@rjsf/utils
- Added new
getClosestMatchingOption()
,getFirstMatchingOption()
andsanitizeDataForNewSchema()
schema-based utility functions- Deprecated
getMatchingOption()
and updated all calls to it in other utility functions to usegetFirstMatchingOption()
- Deprecated
- Updated
stubExistingAdditionalProperties()
to deal withadditionalProperties
withoneOf
/anyOf
, fixing #2538 - Updated
getSchemaType()
to grab the type of the first element of aoneOf
/anyOf
, fixing #1654 - Updated all props or function parameters of the generic type
T
to allow for them to be optionally provided, fixing #3305- This was done in both the types file and the actual implementation code
@rjsf/validator-ajv6
- Updated places where
formData
was required as a function argument to make it optional, fixing #3305
@rjsf/validator-ajv8
- Updated places where
formData
was required as a function argument to make it optional, fixing #3305
Dev / docs / playground
- Updated the playground to
onFormDataEdited()
to only change the formData in the state if theJSON.stringify()
of the old and new values are different, partially fixing #3236 - Updated the playground
npm start
command to always use the--force
option to avoid issues where changes made to other packages weren't getting picked up due tovite
caching - Updated the documentation for
utility-functions
and the5.x upgrade guide
to add the new utility functions and to document the deprecation ofgetMatchingOption()
- Also updated
utility-functions
, making all optional parameters without a default (as denoted by the syntax[<parameter>]: <type>
) to add| undefined
onto the type to make it clear it supports passing in undefined as a value.
- Also updated