Skip to content

Releases: rjsf-team/react-jsonschema-form

v5.0.0-beta.7

14 Sep 14:52

Choose a tag to compare

v5.0.0-beta.7 Pre-release
Pre-release

@rjsf/antd

  • Only show description when there really IS a description, fixes (#2779)
  • Refactored the FieldErrorTemplate from inside of FieldTemplate; fixes (#3104)

@rjsf/bootstrap-4

  • Refactored the FieldErrorTemplate and FieldHelpTemplate from inside of FieldTemplate; fixes (#3104)

@rjsf/chakra-ui

  • Refactored the FieldErrorTemplate and FieldHelpTemplate from inside of FieldTemplate; fixes (#3104)

@rjsf/core

  • Added new field ArraySchemaField, assigned to SchemaField by default, that is used by the ArrayField to render the children for each array field element
  • Refactored the internal ErrorList and Help components from inside of SchemaField to new templates: FieldErrorTemplate and FieldHelpTemplate; fixes (#3104)

@rjsf/material-ui

  • Refactored the FieldErrorTemplate and FieldHelpTemplate from inside of FieldTemplate; fixes (#3104)

@rjsf/mui

  • Refactored the FieldErrorTemplate and FieldHelpTemplate from inside of FieldTemplate; fixes (#3104)

@rjsf/semantic-ui

  • Converted RawErrors and HelpField into FieldErrorTemplate and FieldHelpTemplate, removing their explicit calls from FieldTemplate; fixes (#3104)

@rjsf/utils

  • Added new FieldErrorProps and FieldHelpProps types
  • Added new FieldErrorTemplate and FieldHelpTemplate to the TemplatesType

Dev / docs / playground

  • Updated the custom-templates.md file to add documentation for the new FieldErrorTemplate and FieldHelpTemplate
  • Updated the custom-widgets-fields.md file to add documentation for the new ArraySchemaField field.

v5.0.0-beta.6

09 Sep 17:06

Choose a tag to compare

v5.0.0-beta.6 Pre-release
Pre-release

@rjsf/bootstrap-4

  • Change custom attribute to bsPrefix by @WillowP, fixing (#2648)

@rjsf/core

  • Added tests for the new @rjsf/validator-ajv8 to the validate_test.js file to ensure the validation works with both validator implementations

@rjsf/mui

  • Fixed the README.md to correct the package name in several places to match the actual package

@rjsf/utils

  • Fixed the README.md to remove references to ajv6 validator, adding link to the utility-functions.md in the docs
  • Fixed the README.md to correct the package name in several places to match the actual package
  • Updated getDefaultFormState() so that oneOf and anyOf default values do not always use the first option when formData contains a better option, fixing (#2183)

@rjsf/validator-ajv6

  • Fixed the README.md to correct the package name in several places to match the actual package

@rjsf/validator-ajv8

  • Support for localization (L12n) on a customized validator using a Localizer function passed as a second parameter to customizeValidator(), fixing (#846, and #1195)
  • Fixed the README.md to correct the package name in several places to match the actual package

Dev / docs / playground

  • Added two new validator selections, AJV8 and AJV8_es to the list of available validators for the playground; Using the second one will translate error messages to spanish.
  • Updated the validation documentation to clarify the case of empty strings being stored as null in certain cases.

v5.0.0-beta.5

06 Sep 20:18

Choose a tag to compare

v5.0.0-beta.5 Pre-release
Pre-release

@rjsf/validator-ajv8

  • Added the new Ajv 8 based validator so that it can get published on npm

v5.0.0-beta.4

03 Sep 18:11

Choose a tag to compare

v5.0.0-beta.4 Pre-release
Pre-release

@rjsf/chakra-ui

  • Added missing test snapshot that prevented v5.0.0-beta.3 from releasing

@rjsf/semantic-ui

  • Switched devDependencies for React to 17.x and use dts to build and test the library (rather than tsdx)

v5.0.0-beta.3

03 Sep 00:48

Choose a tag to compare

v5.0.0-beta.3 Pre-release
Pre-release

@rjsf/core

  • Added a requestSubmit() call to the Form.submit() function, fixing (#2104, #3023)
  • Added missing children property on the FormProps type for Form
  • Throw an error when the required validator prop has not been provided to the Form

@rjsf/antd

  • Do not show errors if extraErrors has [] (#2576).
  • Added support for schema.examples in the material ui theme fixing (#2368, #2557)

@rjsf/fluent-ui

  • Added support for schema.examples in the material ui theme fixing (#2368, #2557)

@rjsf/material-ui

  • Added support for schema.examples in the material ui theme fixing (#2368, #2557)

@rjsf/material-ui

  • Added support for schema.examples in the material ui theme fixing (#2368, #2557)

@rjsf/semantic-ui

  • Upgraded from the 1.x to 2.x version of semantic-ui-react
  • Added support for schema.examples in the material ui theme fixing (#2368, #2557)

@rjsf/bootstrap-4

Dev / docs / playground

  • Fixed missing playground import error by adding source-map-loader
  • Fixed up the incorrectly formatted 5.x Migration Guide
  • Added a Programmatic Submit button on the playground form to allow users to test the ability to programmatically submit a form
  • Regenerated the package-lock.json files using clean node_modules directories
  • Fixed issue with playground controls in top right corner not functioning properly due to missing validator

v5.0.0-beta.2

29 Aug 02:26

Choose a tag to compare

v5.0.0-beta.2 Pre-release
Pre-release
  • Added peer dependencies to new @rjsf/utils library now that it is published on npm

v5.0.0-beta.1

28 Aug 15:56

Choose a tag to compare

v5.0.0-beta.1 Pre-release
Pre-release

Global changes across all themes:

  • Node 16 is now the default node engine for all packages, fixing (#2687)
  • Refactored all themes to use the new @rjsf/utils library functions and types
  • Refactored the individual theme forms to consolidate templates as part of the fix for #2526
    • All the work implementing the BaseInputTemplate should fix (#2926, #2889, #2875, #2223)
    • Also made the display of title and description consistent across themes, fixing (#2481, #2363, #2219)
    • This change also ensures that all templates are properly exported, resolving (#2365)
  • Bumped most devDependencies to the latest versions where possible
  • Switched all repos package.json and package-lock.json files to be built and maintained by Node 16.
  • Adding button templates help to change text for buttons (#2082, #2357)

@rjsf/utils

  • New package created by refactoring and converting to Typescript the utils.js file from core into independent functions.
  • Updated types from core in utils to better match the implementation across all themes
    • Included adding a bunch of new types for existing and new features
    • The type updates should fix (#2871, #2673, #2347, #2186)
  • Clear errors on formData change when liveOmit=true when "additionalProperties: false" issue 1507 (#2631)

@rjsf/validator-ajv6

  • New package created by refactoring and converting to Typescript the validator.js file from core into independent functions as well as a class that implements the new ValidatorType interface.
  • Added support for customizing the options passed to the creation of the ajv instance.

@rjsf/validator-ajv6

  • A BREAKING CHANGE to toErrorList() was made so that it takes fieldPath: string[] rather than fieldName='root' as part of the fix to (#1596)
    • The returned errors also now adds property from the fieldPath along with the proper path from the property to the stack message, making it consistent with the AJV errors.
      • Previously the stack attribute would say root: error message; now it says . error message
    • In addition, the extra information provided by AJV is no longer lost from the errors when merged with custom validation, fixing (#1596).

@rjsf/core

  • Converted core to Typescript (#583)
  • ui:emptyValue now works with selects (#1041)
  • Refactoring utils.js into the new @rjsf/utils fixes (#2719)
  • BREAKING CHANGE Fix overriding core submit button className (#2979)
  • Fix ui:field with anyOf or oneOf no longer rendered twice (#2890)
  • BREAKING CHANGE Fixed anyOf and oneOf getting incorrect, potentially duplicate ids when combined with array (#2197)
  • formContext is now passed properly to SchemaField, fixes (#2394, #2274)
  • Added ui:duplicateKeySuffixSeparator to customize how duplicate object keys are renamed when using additionalProperties.
  • The extraErrors are now consistently appended onto the end of the schema validation-based errors information that is returned via the onErrors() callback when submit fails.
    • In addition, the extra information provided by AJV is no longer stripped from the errors during the merge process, fixing (#1596).
  • Fixed id generation for RadioWidget to no longer use random numbers fixing (#2461)
  • Correctly call the onChange handler in the new set of props if it changed, fixing (#1708).
  • Fixed race condition for onChange when formData is controlled prop, fixing (#513),

@rjsf/antd

  • Fix esm build to use @rollup/plugin-replace to replace antd/lib and rc-picker/lib with antd/es and rc-picker/es respectively, fixing (#2962)

@rjsf/bootstrap-4

  • Bootstrap-4 withTheme customizations should work properly now (#2058)
  • ArrayFieldTemplate refactor seems to have fixed #2775
  • Fix issues with SelectField (#2616, #2875)

@rjsf/chakra-ui

  • Properly handle the hidden field in this theme (#2571)

@rjsf/material-ui

  • The theme for Material UI version 5 (i.e. @rjsf/mui) was split out of the theme for version 4 (i.e. @rjsf/material-ui) to resolve the following issues:
  • Material-UI TextWidget now respects inputType in uiSchema (#2057)
    • Also respects step for number type (#2488)
  • Material-UI UpDownWidget now support min/max/step (#2022)
  • Properly handle the hidden field in this theme (#2571)
  • Select properly accepts true or false (#2326)

@rjsf/mui

  • The theme for Material UI version 5 (i.e. @rjsf/mui) was split out of the theme for version 4 (i.e. @rjsf/material-ui) to resolve the following issues:
  • Material-UI TextWidget now respects inputType in uiSchema (#2057)
    • Also respects step for number type (#2488)
  • Material-UI UpDownWidget now support min/max/step (#2022)
  • Properly handle the hidden field in this theme (#2571)

@rjsf/semantic-ui

  • Fix missing error class on fields (#2666)
  • Fixed the main definition in semantic-ui to fix (withastro/astro#4357)
  • Properly handle the hidden field in this theme (#2571)

Dev / docs / playground

  • Demonstrate use of ui:field with anyOf (#2890)
  • Playground now uses webpack 5
  • Corrected number field default (#2358)

v5.0.0-beta.0

28 Aug 15:11

Choose a tag to compare

v5.0.0-beta.0 Pre-release
Pre-release

Global changes across all themes:

  • Node 16 is now the default node engine for all packages, fixing (#2687)
  • Refactored all themes to use the new @rjsf/utils library functions and types
  • Refactored the individual theme forms to consolidate templates as part of the fix for #2526
    • All the work implementing the BaseInputTemplate should fix (#2926, #2889, #2875, #2223)
    • Also made the display of title and description consistent across themes, fixing (#2481, #2363, #2219)
    • This change also ensures that all templates are properly exported, resolving (#2365)
  • Bumped most devDependencies to the latest versions where possible
  • Switched all repos package.json and package-lock.json files to be built and maintained by Node 16.
  • Adding button templates help to change text for buttons (#2082, #2357)

@rjsf/utils

  • New package created by refactoring and converting to Typescript the utils.js file from core into independent functions.
  • Updated types from core in utils to better match the implementation across all themes
    • Included adding a bunch of new types for existing and new features
    • The type updates should fix (#2871, #2673, #2347, #2186)
  • Clear errors on formData change when liveOmit=true when "additionalProperties: false" issue 1507 (#2631)

@rjsf/validator-ajv6

  • New package created by refactoring and converting to Typescript the validator.js file from core into independent functions as well as a class that implements the new ValidatorType interface.
  • Added support for customizing the options passed to the creation of the ajv instance.

@rjsf/validator-ajv6

  • A BREAKING CHANGE to toErrorList() was made so that it takes fieldPath: string[] rather than fieldName='root' as part of the fix to (#1596)
    • The returned errors also now adds property from the fieldPath along with the proper path from the property to the stack message, making it consistent with the AJV errors.
      • Previously the stack attribute would say root: error message; now it says . error message
    • In addition, the extra information provided by AJV is no longer lost from the errors when merged with custom validation, fixing (#1596).

@rjsf/core

  • Converted core to Typescript (#583)
  • ui:emptyValue now works with selects (#1041)
  • Refactoring utils.js into the new @rjsf/utils fixes (#2719)
  • BREAKING CHANGE Fix overriding core submit button className (#2979)
  • Fix ui:field with anyOf or oneOf no longer rendered twice (#2890)
  • BREAKING CHANGE Fixed anyOf and oneOf getting incorrect, potentially duplicate ids when combined with array (#2197)
  • formContext is now passed properly to SchemaField, fixes (#2394, #2274)
  • Added ui:duplicateKeySuffixSeparator to customize how duplicate object keys are renamed when using additionalProperties.
  • The extraErrors are now consistently appended onto the end of the schema validation-based errors information that is returned via the onErrors() callback when submit fails.
    • In addition, the extra information provided by AJV is no longer stripped from the errors during the merge process, fixing (#1596).
  • Fixed id generation for RadioWidget to no longer use random numbers fixing (#2461)
  • Correctly call the onChange handler in the new set of props if it changed, fixing (#1708).
  • Fixed race condition for onChange when formData is controlled prop, fixing (#513),

@rjsf/antd

  • Fix esm build to use @rollup/plugin-replace to replace antd/lib and rc-picker/lib with antd/es and rc-picker/es respectively, fixing (#2962)

@rjsf/bootstrap-4

  • Bootstrap-4 withTheme customizations should work properly now (#2058)
  • ArrayFieldTemplate refactor seems to have fixed #2775
  • Fix issues with SelectField (#2616, #2875)

@rjsf/chakra-ui

  • Properly handle the hidden field in this theme (#2571)

@rjsf/material-ui

  • The theme for Material UI version 5 (i.e. @rjsf/mui) was split out of the theme for version 4 (i.e. @rjsf/material-ui) to resolve the following issues:
  • Material-UI TextWidget now respects inputType in uiSchema (#2057)
    • Also respects step for number type (#2488)
  • Material-UI UpDownWidget now support min/max/step (#2022)
  • Properly handle the hidden field in this theme (#2571)
  • Select properly accepts true or false (#2326)

@rjsf/mui

  • The theme for Material UI version 5 (i.e. @rjsf/mui) was split out of the theme for version 4 (i.e. @rjsf/material-ui) to resolve the following issues:
  • Material-UI TextWidget now respects inputType in uiSchema (#2057)
    • Also respects step for number type (#2488)
  • Material-UI UpDownWidget now support min/max/step (#2022)
  • Properly handle the hidden field in this theme (#2571)

@rjsf/semantic-ui

  • Fix missing error class on fields (#2666)
  • Fixed the main definition in semantic-ui to fix (withastro/astro#4357)
  • Properly handle the hidden field in this theme (#2571)

Dev / docs / playground

  • Demonstrate use of ui:field with anyOf (#2890)
  • Playground now uses webpack 5
  • Corrected number field default (#2358)

v4.2.3

06 Aug 21:10

Choose a tag to compare

What's Changed

Full Changelog: v4.2.2...v4.2.3

v4.2.2

15 Jul 21:20

Choose a tag to compare

What's Changed

Full Changelog: v4.2.1...v4.2.2