Skip to content

Releases: rjsf-team/react-jsonschema-form

5.23.2

15 Dec 15:18
Compare
Choose a tag to compare

@rjsf/core

  • Fix default value population when switching between options in MultiSchemaField #4375. Fixes #4367

@rjsf/utils

  • Short-circuit File and Date constructor access in isObject to optimize performance in scenarios where globalThis is a Proxy that incurs overhead for each class constructor access (#4413). Fixes #4409

@rjsf/validator-ajv8

  • Fixed issue where ui:title in anyOf/oneOf is not shown in error messages. Fixes #4368

5.23.1

22 Nov 22:37
Compare
Choose a tag to compare

@rjsf/chakra-ui

  • Updated package.json to restrict @chakra-ui/react's peer dependency to be < 3.0.0, fixing #4390

@rjsf/core

  • Updated NumberField to properly pass through the errorSchema and id in the onChange handler, fixing #4382

Dev / docs / playground

  • Updated the peer dependencies for @rjsf/* to be 5.23.x

5.23.0

22 Nov 21:01
Compare
Choose a tag to compare

New features added

Experimental_DefaultFormStateBehavior.constAsDefaults

@rjsf/core

  • Updated SchemaField to no longer make schema fields with const read-only by default, partially fixing #4344

@rjsf/utils

  • Updated Experimental_DefaultFormStateBehavior to add a new constAsDefaults option
  • Updated getDefaultFormState() to use the new constAsDefaults option to control how const is used for defaulting, fixing #4344, #4361 and #4377
  • Use experimental_customMergeAllOf option in functions that have previously missed it.
  • Updated ErrorSchemaBuilder methods addErrors and setErrors to prevent duplicate error messages.

@rjsf/validator-ajv8

  • Fixed issue where error messages do not have title or ui:title if a Localizer function is used. Fixes #4387

Dev / docs / playground

  • Updated the playground to add a selector for the constAsDefaults option

5.22.4

11 Nov 17:38
Compare
Choose a tag to compare

@rjsf/utils

  • Fixed issue with array schema defaults not applying properly when formData is an empty array, fixing #4335.

Dev / docs / playground

  • Fix issue 'Maximum call stack size exceeded' with playground share with large content.

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]