Skip to content

Releases: rjsf-team/react-jsonschema-form

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

6.2.2

13 Jan 17:58

Choose a tag to compare

Dev / docs / playground

  • Updated the release.yml to switch to NPM Trusted Publishing so that we can actually publish the changes
  • Updated the SECURITY.md to add v6

6.2.1

12 Jan 19:02
2dbc3e8

Choose a tag to compare

Dev / docs / playground

  • Updated peer dependencies to ^6.2.x due to type changes in @rjsf/utils that are required in the other libraries

6.2.0

12 Jan 18:55

Choose a tag to compare

New features added

  • allowClearTextInputs added GlobalUISchemaOptions to support displaying a clear text input UI
  • omitExtraData() refactored to @rjsf/utils

@rjsf/antd

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Removed deprecated defaultProps from AltDateTimeWidget and AltDateWidget components, preserving all existing behavior

@rjsf/chakra-ui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Removed deprecated defaultProps from AltDateTimeWidget and AltDateWidget components, preserving all existing behavior

@rjsf/core

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Removed deprecated defaultProps from AltDateTimeWidget and AltDateWidget components, preserving all existing behavior
  • Fixed ObjectFieldTemplate rendering an empty fieldset for pure oneOf/anyOf schemas (schemas with type: "object" and oneOf/anyOf but no properties at root level)
  • Added fieldPathId to FieldTemplate props in SchemaField and LayoutMultiSchemaField, fixing #4897
  • Fixed oneOf/anyOf option switches reverting in controlled forms, fixing #4918
  • Fixed null option not being selectable and defaults not being restored when switching from null back to object option in oneOf/anyOf, fixing #4896 and #4380
  • Refactored the omitExtraData() function to schemaUtils, fixing #4081

@rjsf/daisyui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Updated FieldTemplate to destructure fieldPathId to prevent passing it to DOM elements, fixing #4897

@rjsf/fluent-ui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/mantine

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/mui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/primereact

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/react-bootstrap

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Updated WrapIfAdditionalTemplate to add maxHeight for the Remove button column, fixing #4684

@rjsf/semantic-ui

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields

@rjsf/shadcn

  • Updated BaseInputTemplate to support the allowClearTextInputs feature for input fields
  • Fixed issue "ui:rows" option for textarea elements, fixing #4903.

@rjsf/utils

  • Fixed issue by adding new allowClearTextInputs option to GlobalUISchemaOptions type, fixing #4671
  • Fixed issue with default value not being prefilled when object with if/then is nested inside another object, fixing #4222
  • Fixed issue with schema array with nested dependent fixed-length, fixing #3754
  • Updated CustomValidator type to accept errorSchema, so its implementation can be based on result of ajv validation (#4898)
  • Added fieldPathId to FieldTemplateProps to enable proper use of onChange with the required path parameter, fixing #4897
  • Fixed user formData being overwritten with defaults in schemas combining anyOf/oneOf with $ref and default at multiple levels, fixing #4918
  • Fixed issue where nested if/then/else conditions lost values with liveOmit and omitExtraData enabled, fixing #4450
  • Refactored the omitExtraData() function and its helpers from Form into a new schema/omitExtraData.ts, fixing #4081

@rjsf/validator-ajv8

  • Updated processRawValidationErrors to pass errorSchema to customValidate function (#4898)

Dev / docs / playground

  • Updated unit tests for @rjsf/core to convert them to typescript and jest
  • Updated the utility-functions.md documentation for the omitExtraData() function

6.1.2

21 Nov 21:19

Choose a tag to compare

@rjsf/antd

  • Updated SelectWidget to add a static getPopupContainerCallback to the SelectWidget component, partially fixing #3609
    • Also, added the explicit open state to the Select in conjunction with providing the setOpen as the onOpenChange prop
  • In BaseInputTemplate added comments explaining why step='1' is returned, closing #4022

@rjsf/mantine

  • Align Mantine’s behavior with other themes when clearing string fields: clearing an input now removes the key from formData instead of setting it to an empty string. (#4875)

@rjsf/utils

@rjsf/validator-ajv8

  • Updated CustomValidatorOptionsType to add new extenderFn?: (ajv: Ajv) => Ajv prop
  • Updated createAjvInstance() to add new extenderFn?: (ajv: Ajv) => Ajv parameter, using it to extend the ajv instance, fixing #4746
    • Updated the AJV8Validator and compileSchemaValidatorsCode() to pass extenderFn from the options into createAjvInstance()
  • Updated transformRJSFValidationErrors() to add filtering of duplicate anyOf/oneOf based errors from the returned errors, fixing #4167

Dev / docs / playground

  • Updated DemoFrame as follows to fix #3609
    • Override antd's SelectWidget.getPopupContainerCallback callback function to return undefined
    • Added a AntdSelectPatcher component that observes the creation of antd select dropdowns and makes sure they open in the correct location
    • Update the antd theme wrapper to render the AntdSelectPatcher, AntdStyleProvider and ConfigProvider with it's own getPopupContainer() function inside of a FrameContextConsumer
  • Updated the base TypeScript configuration to use "moduleResolution": "bundler"
  • Updated the validation.md documentation to note that HTML 5 validation is not translatable via RJSF translation mechanisms and should be turned off, fixing #4092
    • Also added documentation for the new extenderFn prop on CustomValidatorOptionsType

6.1.1

14 Nov 23:40

Choose a tag to compare

@rjsf/core

  • Updated ObjectField to get errors and formData by wrapping name in brackets to prevent names that have dots in them incorrectly getting data from a lower level, fixing #3846

@rjsf/shadcn

  • Updated package.json to copy css files to new resources directory

Dev / docs / playground

  • Updated the playground to use the css files for @rjsf/shadcn from the CDN connected with github, pointing to the new resources directory
  • Added new antdIconsReplacer.ts and used it in @rjsf/antd during build time to append .js onto imports of @antd/icons to fix es build issues on webpack and vite