Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
5.21.0
New Feature
Extended support for @rjsf/mui
to include MUI v6
@rjsf/core
- Updated
Form
to fixfocusOnError()
to support the ids that include dots, fixing #4279
@rjsf/mui
- Updated the peer dependencies for
@mui/material
and@mui/icon-material
to add v6, fixing #4283
@rjsf/utils
- Fixes an issue with dependencies computeDefaults to ensure we can get the dependencies defaults #4271
- Updated
deepEquals()
to usefast-equals.createCustomEqual()
instead oflodash.isEqualWith()
, fixing #4291- Switched uses of
lodash.isEqual()
todeepEquals()
in many of the utility functions as well
- Switched uses of
@validator-ajv8
- Use
@rjsf/utils
deepEquals()
instead oflodash.isEqual()
to improve performance, fixing #4291
Dev / docs / playground
- Updated the playground to use
@mui/*
version 6, changing the name of the dropdown frommaterial-ui-5
tomui
6.0.0-alpha.0
@rjsf/bootstrap-4
- Package has been replaced with
@rjsf/react-bootstrap
.react-boostrap
v1 / Bootstrap 4 are no longer supported in RJSF v6.
@rjsf/material-ui
- Removed
@rjsf/material-ui
package. Material UI v4 (@material-ui/core
) has been deprecated since September 2021. To use Material UI v5 (@mui/core
) with RJSF, please use the@rjsf/mui
theme instead.
@rjsf/react-bootstrap
- Added new package to replace
@rjsf/bootstrap-4
react-bootstrap
peer dependency bumped to^2.0.0
, corresponding to Bootstrap 5- CheckboxesWidget: Remove deprecated prop
custom
- IconButton: Remove deprecated
block
prop - RangeWidget: Use
FormRange
component - SelectWidget: Use new FormSelect component, remove
bsPrefix
prop to achieve correct styling
5.20.1
Dev / docs / playground
- Updated the peer dependencies to
5.20.x
due to types and API changes in@rjsf/utils
5.20.0
New Features
- Support to allow raising errors from custom widgets
- Added support for overriding the labels for
enums
,anyOf
andoneOf
via theUiSchema
@rjsf/core
- Support allowing raising errors from within a custom Widget #2718
- Updated
ArrayField
,BooleanField
andStringField
to calloptionsList()
with the additionalUiSchema
parameter, fixing #4215 and #4260
@rjsf/utils
- Updated the
WidgetProps
type to addes?: ErrorSchema<T>, id?: string
to the params of theonChange
handler function - Updated
UIOptionsBaseType
to add the newenumNames
prop to support an alternate way to provide labels forenum
s in a schema, fixing #4215 - Updated
optionsList()
to take an optionaluiSchema
that is used to extract alternate labels forenum
s oroneOf
/anyOf
in a schema, fixing #4215 and #4260- NOTE: The generics for
optionsList()
were expanded from<S extends StrictRJSFSchema = RJSFSchema>
to<S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any>
to support theUiSchema
.
- NOTE: The generics for
Dev / docs / playground
- Update the
custom-widget-fields.md
to add documentation for how to raise errors from a custom widget or field
5.19.4
Security fix
The XSS fix in this release could potentially cause issues if you were using the translateString feature to render HTML. Switching to Markdown will solve your problems.
@rjsf/core
- Fix XSS when rendering schema validation errors #4254
- NOTE: This will have potential consequences if you are using the translateString feature and are trying to render HTML. Switching to Markdown will solve your problems.
@rjsf/utils
- Updated the
ValidatorType
interface to add an optionalreset?: () => void
prop that can be implemented to reset a validator back to initial constructed state- Updated the
ParserValidator
to provide areset()
function that clears the schema map
- Updated the
- Also updated the default translatable string to use
Markdown
rather than HTML tags since we now render them withMarkdown
@rjsf/validator-ajv8
- Updated the
AJV8Validator
to implement thereset()
function to remove cached schemas in theajv
instance
Dev / docs / playground
- Updated the
Validator
dropdown to addAJV8 (discriminator)
which sets the AJV validator discriminator option totrue
to support testing schemas with that option in them
5.19.3
@rjsf/antd
- SelectWidget now displays an empty option when appropriate, fixing #4197
@rjsf/chakra-ui
- SelectWidget now displays an empty option when appropriate, fixing #4197
@rjsf/fluentui-rc
- SelectWidget now displays an empty option when appropriate, fixing #4197
@rjsf/material-ui
- SelectWidget now displays an empty option when appropriate, fixing #4197
@rjsf/mui
- SelectWidget now displays an empty option when appropriate, fixing #4197
@rjsf/semantic-ui
- SelectWidget now displays an empty option when appropriate, fixing #4197
v5.19.2
@rjsf/core
- Removed
.only
on tests that was accidentally added in5.19.0
5.19.1
5.19.1
Dev / docs / playground
- Bumped the peer dependencies to
5.19.x
due to use of new API in5.19.0
5.19.0
New API and feature
- API:
dateRangeOptions()
- Feature:
AltDateWidget
supports relative Years and reversed order of Year choices
@rjsf/antd
- Updated
AltDateWidget
to use the newdateRangeOptions()
function inutils
to support relative Years and reversing the order of the Year choices
@rjsf/chakra-ui
- Updated
AltDateWidget
to use the newdateRangeOptions()
function inutils
to support relative Years and reversing the order of the Year choices
@rjsf/core
- Fixed case where
readOnly
from a JSON Schema was not applied in SchemaField (#4236) - Updated
AltDateWidget
to use the newdateRangeOptions()
function inutils
to 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