5.0.0-beta.18
Pre-release
Pre-release
·
739 commits
to main
since this release
@rjsf/core
- Updated
MultiSchemaFieldto utilize the newgetClosestMatchingOption()andsanitizeDataForNewSchema()functions, fixing the following issues: - Updated
ObjectFieldto deal withadditionalPropertieswithoneOf/anyOf, fixing #2538 - Updated
Form,MultiSchemaField,ObjectFieldandSchemaFieldto properly support makingformDataoptional, fixing #3305
@rjsf/material-ui
- Fix shrinking of
SelectWidgetlabel only if value is not empty, fixing #3369
@rjsf/mui
- Fix shrinking of
SelectWidgetlabel 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 withadditionalPropertieswithoneOf/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
Tto 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
formDatawas required as a function argument to make it optional, fixing #3305
@rjsf/validator-ajv8
- Updated places where
formDatawas 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 startcommand to always use the--forceoption to avoid issues where changes made to other packages weren't getting picked up due tovitecaching - Updated the documentation for
utility-functionsand the5.x upgrade guideto 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| undefinedonto the type to make it clear it supports passing in undefined as a value.
- Also updated