Skip to content

Releases: rjsf-team/react-jsonschema-form

6.0.0-beta.17

12 Sep 20:47
Compare
Choose a tag to compare
6.0.0-beta.17 Pre-release
Pre-release

@rjsf/core

  • Updated ObjectField to remove the name from the path passed to onChange() callback in handleAddClick() and onDropPropertyClick(), fixing #4763
  • Updated Form to restore the passing of an empty string for name to avoid accidentally showing it as the title for the whole schema

@rjsf/shadcn

  • Update ArrayFieldItemTemplate to align buttons with the input field, fixing #4753

6.0.0-beta.16

11 Sep 16:19
Compare
Choose a tag to compare
6.0.0-beta.16 Pre-release
Pre-release

@rjsf/antd

  • Updated the ArrayFieldTemplate, FieldTemplate and ObjectFieldTemplate to get formContext from the registry

@rjsf/core

  • Updated ArrayField, Form, LayoutMultiSchemaField and SchemaField to stop passing formContext

@rjsf/daisyui

  • Updated FieldTemplate to remove formContext as it is never used

@rjsf/semantic-ui

  • Updated the ArrayFieldTemplate, BaseInputTemplate, CheckboxWidget, FieldTemplate, RadioWidget, RangeSelect, SelectWidget, TextareaWidget and ObjectFieldTemplate to get formContext from the registry

@rjsf/utils

  • BREAKING CHANGE: Removed formContext from the following interfaces because it is available on registry:
    • ErrorListProps, FieldProps, FieldTemplateProps, ArrayFieldTemplateProps and WidgetProps
  • Update mergeDefaultsWithFormData to properly handle overriding undefined formData with a null default value, fixing #4734
  • Fixed object reference sharing in arrays with minItems when using oneOf schemas, fixing #4756
  • Updated getWigets() to output the schema when throwing errors, fixing #4731

Dev / docs / playground

  • Updated the documentation to remove formContext from the interface documentation, adding a BREAKING CHANGE notification in the v6.x upgrade guide
  • POTENTIAL BREAKING CHANGE: Updated the cjs build for all packages to generate .cjs files instead of .js files and updating the exports to make the require statements use .cjs, fixing [#4754]#4754)
  • Updated v6.x upgrade guide.md to note the change to the cjs builds

6.0.0-beta.15

27 Aug 19:56
Compare
Choose a tag to compare
6.0.0-beta.15 Pre-release
Pre-release

@rjsf/chakra-ui

  • Updated package.json for to make lucide-react a dependency rather than a devDependency, fixing #4739

@rjsf/core

  • Updated ArrayField onSelectChange to not pass name in the path since the ObjectField will automatically add it #4733
  • Updated Form to optimize the need for live validation in an attempt to improve performance, potentially fixing #3616

@rjsf/semantic-ui

  • Updated ArrayField to stop using nanoid and instead use lodash/uniqueId to fix #4762

@rjsf/shadcn

  • Update README.md with picture of the theme!
  • Allow passing className props to AddButton, BaseInputTemplate, CheckboxWidget, CheckboxesWidget, RadioWidget, SelectWidget, SubmitButton, TextareaWidget for extra Tailwind CSS customization through ui:className

@rjsf/utils

  • Updated getTestIds to stop using nanoid and instead use lodash/uniqueId to fix #4762

Dev / docs / playground

  • Removed nanoid from the build system and jest.config.js files

5.24.13

22 Aug 19:58
6ad8025
Compare
Choose a tag to compare

@rjsf/core

  • Updated ArrayField to stop using nanoid and instead use lodash/uniqueId to fix #4762

@rjsf/semantic-ui

  • Updated ArrayField to stop using nanoid and instead use lodash/uniqueId to fix #4762

Dev / docs / playground

  • Removed nanoid from the build system and jest.config.js files

6.0.0-beta.14

18 Aug 17:41
Compare
Choose a tag to compare
6.0.0-beta.14 Pre-release
Pre-release
  • A BREAKING CHANGE to the FieldProps.onChange callback function was made that COULD affect custom fields, depending on the implementation.

@rjsf/core

  • Added support for dynamic UI schema in array fields - the items property in uiSchema can now accept a function that returns a UI schema based on the array item's data, index, and form context (#4706)
  • Fixed checkbox widget to use current value instead of event target in onFocus/onBlur handlers, fixing #4704
  • Updated all of the XxxxField components and Form to handle the new path parameter in FieldProps.onChange, making Form queue up changes so that they are all processed and no data is lost, fixing #3367
  • Updated a bug in AltDateWidget related to the clear button not working after the fix for #3367
  • Fixed the missing hook dependencies for the CheckboxesWidget so that they work properly

@rjsf/chakra-ui

  • Fixed checkbox widget to use current value instead of event target in onFocus/onBlur handlers, fixing #4704

@rjsf/daisyui

  • Fixed checkbox widget to use current value instead of event target in onFocus/onBlur handlers, fixing #4704
  • Fixed additional properties rendering by properly connecting the FieldTemplate and WrapIfAdditionalTemplate, fixing 4707
  • Fixed the missing hook dependencies in the DateTimeWidget and DateWidget so that they work properly

@rjsf/fluentui-rc

  • Fixed checkbox widget to use current value instead of event target in onFocus/onBlur handlers, fixing #4704

@rjsf/mantine

  • Added new theme!

@rjsf/mui

  • Fixed checkbox widget to use current value instead of event target in onFocus/onBlur handlers, fixing #4704

@rjsf/primereact

  • Fixed checkbox widget to use current value instead of event target in onFocus/onBlur handlers, fixing #4704

@rjsf/semantic-ui

  • Fixed checkbox widget to use current value instead of event target in onFocus/onBlur handlers, fixing #4704

@rjsf/shadcn

  • Bump @shadcn/ui components to use latest version from https://ui.shadcn.com/
  • Bump tailwindcss to using v4 and css compiling process to use latest @tailwindcss/cli
  • Remove postcss due to new Oxide compiler of tailwindcss
  • Update playground themes with default, Amethyst Haze, Caffeine, Claude, Neo Brutalism, Pastel Dreams, Soft Pop, Twitter, Vercel
  • Radio widget labels are now accessible and can be clicked on to select the associated option.

@rjsf/utils

  • Updated UiSchema type to support dynamic array item UI schemas - the items property can now be either a UiSchema object or a function that returns a UiSchema (#4706)
  • Added title property to RJSFValidationError PR
  • BREAKING CHANGE: Updated the FieldProps interface's onChange handler to inject a new optional path before the ErrorSchema parameter as part of the fix for #3367

@rjsf/validator-ajv8

  • Updated transformRJSFValidationErrors() to include the title property of a field with error fixing #4504 with PR
  • Updated AJVValidator to handle the attempted compile of a bad schema, fixing #4357

Dev / docs / playground

  • Added comprehensive documentation for dynamic UI schema feature with TypeScript examples #4706
  • Updated array documentation to reference the new dynamic UI schema capabilities #4706
  • Updated nearly all of the libraries in the package.json files to the latest non-breaking versions
  • Fixed the broken Custom Array sample
  • Improved the Any Of with Custom Field sample so that it renders using the appropriate theme components
  • Updated the custom-widgets-fields.md and v6.x upgrade guide.md to document the BREAKING CHANGE to the FieldProps.onChange behavior
  • Updated the playground to properly output the validationError when running Raw Validate

6.0.0-beta.13

12 Aug 18:13
Compare
Choose a tag to compare
6.0.0-beta.13 Pre-release
Pre-release

@rjsf/shadcn

  • Updated lodash import in fancy-multi-select.tsx to to be direct import, fixing #4696

6.0.0-beta.13

@rjsf/core

  • Added experimental_componentUpdateStrategy prop to Form component to control re-render optimization behavior. Supports 'customDeep' (default, uses deep equality checks that ignore functions), 'shallow', and 'always'

@rjsf/utils

  • Extended Registry interface to include optional experimental_componentUpdateStrategy property
  • Added shallowEquals() utility function for shallow equality comparisons
  • Fixed boolean fields incorrectly set to {} when switching oneOf/anyOf options with mergeDefaultsIntoFormData set to useDefaultIfFormDataUndefined, fixing #4709 (#4710)
  • Always make all references absolute in nested bundled schemas

6.0.0-beta.12

17 Jul 16:50
Compare
Choose a tag to compare
6.0.0-beta.12 Pre-release
Pre-release

@rjsf/core

  • Updated Form to store the schemaUtils.getRootSchema() into the state.schema and use that everywhere as the schema

@rjsf/shadcn

  • Updated the building of shadcn to use the lodashReplacer with tsc-alias fixing #4678

@rjsf/utils

  • Updated SchemaUtils and createSchemaUtils() to add a new getRootSchema() function

v5.24.12

17 Jun 17:11
41d2d55
Compare
Choose a tag to compare

@rjsf/utils

  • (Backported change from 6.0.0-beta.11) Fixed issue where oneOf radio button could not be modified when constAsDefaults is set to 'never', fixing #4634.

6.0.0-beta.11

11 Jun 20:48
Compare
Choose a tag to compare
6.0.0-beta.11 Pre-release
Pre-release

@rjsf/antd

  • Set peerDependency for @ant-design/icons to ^6.0.0, fixing #4643
  • Added MultiSchemaFieldTemplate

@rjsf/chakra-ui

  • Added MultiSchemaFieldTemplate
  • Improve visual styling of error validation boxes
  • Update chakra-ui/react package to ^3.19.1

@rjsf/core

  • Refactored MultiSchemaField to use the MultiSchemaFieldTemplate provided by the registry.
  • Added MultiSchemaFieldTemplate component to maintain the same functionality as the previous MultiSchemaField implementation.

@rjsf/daisyui

  • Added MultiSchemaFieldTemplate

@rjsf/fluentui-rc

  • Added MultiSchemaFieldTemplate

@rjsf/mui

  • Added MultiSchemaFieldTemplate

@rjsf/primereact

  • New theme!

@rjsf/react-bootstrap

  • Added MultiSchemaFieldTemplate

@rjsf/semantic-ui

  • Added MultiSchemaFieldTemplate

@rjsf/shadcn

  • Added MultiSchemaFieldTemplate

@rjsf/utils

  • Fixed issue where oneOf radio button could not be modified when defaults were set, fixing #4634
  • Fix default value for object properties such as enums that are rendered in select, radio inputs, etc.
  • Add support for MultiSchemaFieldTemplate, with new MultiSchemaFieldTemplateProps, to the TemplatesType interface

Dev / docs / playground

  • Added documentation for the new MultiSchemaFieldTemplate

v5.24.11

04 Jun 13:52
7e80bfe
Compare
Choose a tag to compare

@rjsf/utils

  • (Backported change from 6.0.0-beta.8) Fixed issue where oneOf schema references could not be modified when defaults were set, fixing #4580.
  • (Backported change from 6.0.0-beta.11) Fixed issue where oneOf radio button could not be modified when defaults were set, fixing #4634

Full Changelog: v5.24.10...v5.24.11