Skip to content

Releases: rjsf-team/react-jsonschema-form

6.5.1

18 Apr 18:38

Choose a tag to compare

Dev / docs / playground

  • Updated peer dependencies to 6.5.x

6.5.0

18 Apr 18:24

Choose a tag to compare

New Feature

  • Added support for passing MUI-specific props (e.g., sx, rjsfSlotProps, variant) directly through uiSchema for all templates and widgets see the documentation

@rjsf/antd

  • Updated BaseInputTemplate to remove type and set changeOnWheel to false for the InputNumber component, fixing #5002
  • Updated ErrorList and IconButton to destructure icons imported from @ant-design/icons, fixing #4953
  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Updated BaseInputTemplate to destructure and guard min/max before spreading onto InputNumber, fixing a build error caused by the widened InputPropsType (number | string)
  • Added support for Antd v6, addressing #4995

@rjsf/chakra-ui

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)

@rjsf/core

  • Added a new removeEmptyOptionalObjects boolean prop to gracefully prune optional empty objects preventing form submission lockouts, fixing #4954
  • Included button elements in focusOnError querySelector so that radio and checkbox groups receive focus on validation error, fixing #4870
  • Fixed focus being lost when renaming additional property keys by preserving React key for renamed properties (#4999)
  • Removed expandUiSchemaDefinitions call at form init, now handled at runtime by resolveUiSchema, fixing #4986
  • Used useRef to track latest formData in handleKeyRename, preventing stale closure data when multiple additional property keys are renamed in quick succession, fixing #5021
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget for rendering real enum values in DOM attributes instead of array indices (#4693)

@rjsf/daisyui

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)

@rjsf/fluentui-rc

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)

@rjsf/mantine

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Updated BaseInputTemplate to destructure and guard min/max before spreading onto NumberInput, fixing a build error caused by the widened InputPropsType (number | string)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)

@rjsf/mui

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)
  • Added support for passing MUI-specific props (e.g., sx, rjsfSlotProps, variant) directly through uiSchema for all templates and widgets, fixing #4996

@rjsf/primereact

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)

@rjsf/react-bootstrap

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)

@rjsf/semantic-ui

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)

@rjsf/shadcn

  • Added key={label} to key input in WrapIfAdditionalTemplate to reset input value after duplicate key rename (#4999)
  • Added opt-in optionValueFormat: 'realValue' support to SelectWidget, RadioWidget, and CheckboxesWidget (#4693)

@rjsf/utils

  • Added removeOptionalEmptyObjects utility function to recursively strip fully empty optional objects based on their parent's required properties, fixing #4954
  • Updated InputPropsType to widen min and max to number | string to support date values (e.g. "2020-01-01")
  • Updated getInputProps() to propagate formatMinimum and formatMaximum schema keywords to the HTML min/max attributes for date, datetime-local, time, week, and month input types, aligning browser-native date picker constraints with AJV validation
  • Fixed ui:title from ui:definitions not applied to oneOf/anyOf dropdowns beyond first recursion level, fixing #4986
  • Added enumOptionValueEncoder, enumOptionValueDecoder, and enumOptionSelectedValue utilities for opt-in real enum value rendering in select/radio/checkbox widgets (#4693)
  • Added optionValueFormat: 'indexed' | 'realValue' to GlobalUISchemaOptions and the OptionValueFormat type for opt-in real enum values in widget DOM attributes (#4693)

@rjsf/validator-ajv8

  • Updated CustomValidatorOptionsType to add the new suppressDuplicateFiltering flag prop, updating the validators to pass it through to the transformRJSFValidationErrors() which suppresses the appropriate duplicate errors if specified, fixing #5028

Dev / docs / playground

  • Updated References playground sample to demonstrate oneOf with ui:title at recursive depth, related to #4986
  • Updated the building of the mantine theme to properly support ESM, fixing #5025
  • Updated the validator-ajv8.md and validation.md documetation for the new suppressDuplicateFiltering configuration prop
  • Added comprehensive documentation for @rjsf/mui customization via uiSchema (including rjsfSlotProps usage).

6.4.2

28 Mar 18:55

Choose a tag to compare

@rjsf/antd

  • Forward required to BaseInputTemplate so that required string and number fields render the HTML required attribute, fixing #3743

@rjsf/core

  • Fixed a breaking change introduced in v6.4.0 where array properties with enum items no longer used ui:enumNames from the array property's uiSchema (#4985)
  • Passed parentUiSchema to ArrayFieldItem to maintain uiSchema, this prop was introduced recently but was not being passed
  • Fixed extraErrors not displaying when customErrors are also present (e.g., with array fields and controlled formData), fixing #4982

Dev / docs / playground

  • Fixed scrolling of Monaco editors in the playground, fixing #4992

6.4.1

07 Mar 05:58

Choose a tag to compare

Dev / docs / playground

  • Updated peer dependencies to 6.4.x

6.4.0

07 Mar 05:39

Choose a tag to compare

New feature

  • Added support for map-based ui:enumNames and ui:enumOrder for controlling enum display labels and ordering. See documentation

@rjsf/core

  • Fixed extraErrors not displaying on first async set after submit, fixing #4965
  • Updated multi-select ArrayFields to properly use the items uiSchema for enumerated options, fixing #4955
  • Fixed validateForm() clearing extraErrors from state when schema validation passes, fixing #4962

@rjsf/utils

  • Fixed resolveAllReferences to preserve $ref on resolved schemas, enabling ui:definitions beyond the first recursion level, fixing #4966
  • Fixed omitExtraData stripping additionalProperties inside oneOf/anyOf options, fixing #4366
  • Added support for map-based ui:enumNames and ui:enumOrder for controlling enum display labels and ordering, fixing #4969

Dev / docs / playground

  • Added documentation and playground examples for map-based ui:enumNames and ui:enumOrder

6.3.1

12 Feb 20:10

Choose a tag to compare

Dev / docs / playground

  • Changed all @rjsf/* dev dependencies from ^6.3.0 to 6.3.0 so that the latest version of nx keeps automatically updating them
  • Updated peer dependencies to ^6.3.x due to type changes in @rjsf/utils that are required in the other libraries

6.3.0

12 Feb 20:09

Choose a tag to compare

New feature ui:definitions in UiSchema

@rjsf/antd

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927

@rjsf/chakra-ui

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
  • Updated NativeSelectWidget so that is properly renders a placeholder, fixing #4942

@rjsf/core

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
  • Integrated ui:definitions support for recursive and reusable uiSchema (#4947)

@rjsf/daisyui

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927

@rjsf/fluentui-rc

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927

@rjsf/mantine

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927

@rjsf/mui

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927

@rjsf/react-bootstrap

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927

@rjsf/semantic-ui

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927

@rjsf/shadcn

  • Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927

@rjsf/utils

  • Added expandUiSchemaDefinitions() and resolveUiSchema() functions, and UiSchemaDefinitions type to support defining reusable uiSchema for schema $ref references (#4947)

Dev / docs / playground

  • Updated References sample in playground to demonstrate ui:definitions feature (#4947)
  • Added documentation for ui:definitions in uiSchema.md and definitions.md (#4947)
  • Updated the libraries via the npm run bump-all-libraries command, fixing new lint errors and updating the snapshots due to fixes in the theme libraries

6.2.5

17 Jan 04:51

Choose a tag to compare

@rjsf/mui

  • Updated BaseInputTemplate to properly handle slotProps and InputProps (deprecated by MUI) with existing endAdornments when the allowClearTextInputs flag is true, fixing #4938

Dev / docs / playground

  • Updated uiSchema.md to add documentation for allowClearTextInputs
  • Updated the formTests.tsx in snapshot-tests to render string fields with the allowClearTextInputs flag enabled, with data and readonly to test the new feature

6.2.4

13 Jan 21:33

Choose a tag to compare

Dev / docs / playground

  • Updated the package.json for chakra-ui to add the repository information so that publishing works for it
  • Updated the release.yml to remove the push tag stuff as it isn't needed

6.2.3

13 Jan 19:14

Choose a tag to compare

@rjsf/mantine

  • Updated cleanupOptions() to add enableMarkdownInHelp and globalOptions to avoid DOM errors

@rjsf/primereact

  • Updated ArrayFieldTemplate to destructure additional fields to avoid DOM errors

Dev / docs / playground

  • Updated the release.yml to move the permissions within the job, switch to node 24 and add push checking