Skip to content

Releases: rjsf-team/react-jsonschema-form

5.22.3

30 Oct 18:47
Compare
Choose a tag to compare

@rjsf/utils

  • Fixed deep nested dependencies issue with assigning values to formData, fixing [#4334]

5.22.2

28 Oct 16:54
Compare
Choose a tag to compare

@rjsf/core

  • Fix an issue where only the first file was uploaded when users selected multiple files for upload.
  • Fixed validation regression Form not revalidating after formData change, fixing #4343

@rjsf/validator-ajv8

  • Fixed AJV8Validator#transformRJSFValidationErrors to replace the error message field with either the uiSchema's ui:title field if one exists or the parentSchema title if one exists. Fixes #4348

5.22.1

21 Oct 22:42
Compare
Choose a tag to compare

@rjsf/*

  • Bumped peer dependencies to 5.22.x due to updated type definition and API changes in @rjsf/utils

5.22.0

21 Oct 22:26
Compare
Choose a tag to compare

New experimental features

@rjsf/core

  • Updated MultiSchemaField to call the onChange handler after setting the new option, fixing #3997 and #4314

@rjsf/utils

  • Added experimental_customMergeAllOf option to retrieveSchema() and getDefaultFormState() to allow custom merging of allOf schemas
  • Made fields with const property pre-filled and readonly, fixing #2600
  • Added mergeDefaultsIntoFormData option to Experimental_DefaultFormStateBehavior type to control how to handle merging of defaults
  • Updated mergeDefaultsWithFormData() to add new optional defaultSupercedesUndefined that when true uses the defaults rather than undefined formData, fixing #4322
  • Updated getDefaultFormState() to pass true to mergeDefaultsWithFormData for defaultSupercedesUndefined when mergeDefaultsIntoFormData has the value useDefaultIfFormDataUndefined, fixing #4322
  • Updated getClosestMatchingOption() to improve the scoring of sub-property objects that are provided over ones that aren't, fixing #3997 and #4314

Dev / docs / playground

  • Updated the form-props.md to add documentation for the new experimental_customMergeAllOf props and the experimental_defaultFormStateBehavior.mergeDefaultsIntoFormData option
  • Updated the utility-functions.md to add documentation for the new optional defaultSupercedesUndefined parameter and the two missing optional fields on getDefaultFormState()
  • Updated the custom-templates.md to add a section header for wrapping BaseInputTemplate
  • Updated the playground to add controls for the new mergeDefaultsIntoFormData option
    • In the process, moved the Show Error List component over one column, making it inline radio buttons rather than a select

5.21.2

02 Oct 21:25
Compare
Choose a tag to compare

@rjsf/core

  • Updated SchemaField to pass required flag to _AnyOfField/_OneOfField
  • Updated Form to deal with null objects in filterErrorsBasedOnSchema(), fixing #4306

@rjsf/utils

  • Updated ErrorSchemaBuilder to support adding, updating, and removing paths that are numbers, fixing #4297
  • Updated retrieveSchema to not merge contains properties in allOf schema lists, fixing #2923

Dev / docs / playground

  • Updated the custom-widgets-fields.md to add examples of wrapping a widget/field

5.21.1

13 Sep 19:45
Compare
Choose a tag to compare

@rjsf/utils

  • Revert of updating deepEquals() from [#4292]

@validator-ajv8

  • Revert of using deepEquals() instead of lodash.isEqual() from [#4292]

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