Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
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
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
5.18.6
5.18.5
@rjsf/antd
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers
@rjsf/bootstrap4
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers
@rjsf/chakra-ui
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers
@rjsf/core
- Fix case where NumberField would not properly reset the field when using programmatic form reset #4202
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers - Fix field disable or readonly property can't cover globalOptions corresponding property #4212
@rjsf/fluent-ui
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers
@rjsf/fluentui-rc
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers
@rjsf/material-ui
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers
@rjsf/mui
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers
@rjsf/semantic-ui
- Updated widgets to handle undefined
target
inonFocus
andonBlur
handlers
@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.