Skip to content

Releases: rjsf-team/react-jsonschema-form

5.21.0

11 Sep 17:18
Compare
Choose a tag to compare

New Feature

Extended support for @rjsf/mui to include MUI v6

@rjsf/core

  • Updated Form to fix focusOnError() 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 use fast-equals.createCustomEqual() instead of lodash.isEqualWith(), fixing #4291
    • Switched uses of lodash.isEqual() to deepEquals() in many of the utility functions as well

@validator-ajv8

  • Use @rjsf/utils deepEquals() instead of lodash.isEqual() to improve performance, fixing #4291

Dev / docs / playground

  • Updated the playground to use @mui/* version 6, changing the name of the dropdown from material-ui-5 to mui

6.0.0-alpha.0

18 Aug 15:12
f4229bf
Compare
Choose a tag to compare
6.0.0-alpha.0 Pre-release
Pre-release

@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

08 Aug 17:48
Compare
Choose a tag to compare

Dev / docs / playground

  • Updated the peer dependencies to 5.20.x due to types and API changes in @rjsf/utils

5.20.0

08 Aug 17:44
Compare
Choose a tag to compare

New Features

  • Support to allow raising errors from custom widgets
  • Added support for overriding the labels for enums, anyOf and oneOf via the UiSchema

@rjsf/core

  • Support allowing raising errors from within a custom Widget #2718
  • Updated ArrayField, BooleanField and StringField to call optionsList() with the additional UiSchema parameter, fixing #4215 and #4260

@rjsf/utils

  • Updated the WidgetProps type to add es?: ErrorSchema<T>, id?: string to the params of the onChange handler function
  • Updated UIOptionsBaseType to add the new enumNames prop to support an alternate way to provide labels for enums in a schema, fixing #4215
  • Updated optionsList() to take an optional uiSchema that is used to extract alternate labels for enums or oneOf/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 the UiSchema.

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

27 Jul 19:21
Compare
Choose a tag to compare

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 optional reset?: () => void prop that can be implemented to reset a validator back to initial constructed state
    • Updated the ParserValidator to provide a reset() function that clears the schema map
  • Also updated the default translatable string to use Markdown rather than HTML tags since we now render them with Markdown

@rjsf/validator-ajv8

  • Updated the AJV8Validator to implement the reset() function to remove cached schemas in the ajv instance

Dev / docs / playground

  • Updated the Validator dropdown to add AJV8 (discriminator) which sets the AJV validator discriminator option to true to support testing schemas with that option in them

5.19.3

09 Jul 19:57
Compare
Choose a tag to compare

@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

08 Jul 16:35
Compare
Choose a tag to compare

@rjsf/core

  • Removed .only on tests that was accidentally added in 5.19.0

5.19.1

05 Jul 16:12
Compare
Choose a tag to compare

5.19.1

Dev / docs / playground

  • Bumped the peer dependencies to 5.19.x due to use of new API in 5.19.0

5.19.0

03 Jul 22:07
Compare
Choose a tag to compare

New API and feature

  • API: dateRangeOptions()
  • Feature: AltDateWidget supports relative Years and reversed order of Year choices

@rjsf/antd

  • Updated AltDateWidget to use the new dateRangeOptions() function in utils to support relative Years and reversing the order of the Year choices

@rjsf/chakra-ui

  • Updated AltDateWidget to use the new dateRangeOptions() function in utils 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 new dateRangeOptions() function in utils 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

02 Jul 20:36
Compare
Choose a tag to compare

@rjsf/antd

  • Fix disabled property of options in CheckboxesWidget and RadioWidget (#4216)

@rjsf/core

  • Fixed omitExtraData not working in onSubmit and validateForm; fixing #4187, #4165 and #4109

@rjsf/utils

  • Fix IdSchema and PathSchema types (#4196)

@rjsf/validator-ajv6

  • Fix IdSchema and PathSchema types (#4196)

@rjsf/validator-ajv8

  • Fix IdSchema and PathSchema types (#4196)