All Versions
51
Latest Version
Avg Release Cycle
26 days
Latest Release
-

Changelog History
Page 2

  • v5.0.0-beta.12 Changes

    @rjsf/antd

    • โšก๏ธ Updated the tests to use the @rjsf/validator-ajv8 fixing #3110

    @rjsf/bootstrap

    • โšก๏ธ Updated the tests to use the @rjsf/validator-ajv8 fixing #3110

    ๐Ÿ’ป @rjsf/chakra-ui

    • Automatically close single-choice Select widget on selection
    • โšก๏ธ Updated the tests to use the @rjsf/validator-ajv8 fixing #3110

    @rjsf/core

    • ๐Ÿ’ฅ BREAKING CHANGE: ShowErrorList prop changed to support false, top or bottom; true is no longer a valid value as the default changed from true to top #634
    • โž• Added the new generic, S extends StrictRJSFSchema = RJSFSchema, for schema/rootSchema to every component that needed it.
    • ๐Ÿ›  Fix omitExtraData with field names with dots #2643
    • โšก๏ธ Updated the tests to use the @rjsf/validator-ajv8 fixing #3110
    • ๐Ÿ”„ Changed the F = any generic to be F extends FormContextType = any to better support how formContext is defined and used, partially fixing #3072

    ๐Ÿ’ป @rjsf/fluent-ui

    • โšก๏ธ Updated the tests to use the @rjsf/validator-ajv8 fixing #3110

    ๐Ÿ’ป @rjsf/material-ui

    • โšก๏ธ Updated the tests to use the @rjsf/validator-ajv8 fixing #3110

    @rjsf/mui

    • โšก๏ธ Updated the tests to use the @rjsf/validator-ajv8 fixing #3110

    ๐Ÿ’ป @rjsf/semantic-ui

    • โšก๏ธ Updated the tests to use the @rjsf/validator-ajv8 fixing #3110

    @rjsf/utils

    • Beta-only potentially BREAKING CHANGE: Changed all types that directly or indirectly defined schema/rootSchema to add the generic S extends StrictRJSFSchema = RJSFSchema and use S as the type for them.
      • StrictRJSFSchema was added as the alias to JSON7Schema and RJSFSchema was modified to be StrictRJSFSchema & GenericObjectType
      • This new generic was added BEFORE the newly added F = any generic because it is assumed that more people will want to change the schema than the formContext types
      • This provides future support for the newer draft versions of the schema
    • โšก๏ธ Updated the ValidatorType interface to add a new rawValidation() method for use by the playground
    • โž• Added the FormContextType alias to GenericObjectType and changing the F = any generic to be F extends FormContextType = any to better support how formContext is defined and used, partially fixing #3072

    @rjsf/validator-ajv6

    • ๐Ÿ›  Fixed a few type casts given the new expanded definition of the RJSFSchema type change
    • ๐Ÿ—„ Deprecated this library in favor of the @rjsf/validator-ajv8
    • ๐Ÿ”จ Refactored out the rawValidation() function for use by the playground

    @rjsf/validator-ajv8

    • โšก๏ธ Updated the typing to add the new S extends StrictRJSFSchema = RJSFSchema generic and fixed up type casts
    • โž• Added the AjvClass prop to the CustomValidatorOptionsType to support using the Ajv2019 or Ajv2020 class implementation instead of the default Ajv class; fixing #3189
    • ๐Ÿ”จ Refactored out the rawValidation() function for use by the playground

    ๐Ÿ“„ Dev / docs / playground

    • โšก๏ธ Updated the 5.x upgrade guide and utility-functions.md to document the new StrictRJSFSchema, the S generic and changing the F generic extend
    • โšก๏ธ Updated the validation guide to document the new AjvClass prop on CustomValidatorOptionsType and mentioning the deprecation of @rjsf/validator-ajv6
    • โšก๏ธ Updated the playground to add support for using the AJV 8 validator with the draft-2019-09 and draft-2020-12 schemas and to make the AJV8 validator the default validator, marking AJV6 as deprecated
    • ๐Ÿ“š Updated all the documentation to switch to Typescript notation where missing along with switching to using the @rjsf/validator-ajv8 validator as the default
    • โž• Added a way of doing a raw Ajv validation in the playground to determine whether an issue is with RJSF or Ajv
  • v5.0.0-beta.11 Changes

    @rjsf/antd

    • โšก๏ธ Updated FieldTemplate to no longer render additional, unnecessary white space for fields that have empty help and extra information, fixing #3147
    • โšก๏ธ Updated ArrayFieldTemplate to always render ArrayFieldDescriptionTemplate since that template deals with the optional description
    • Pass the schema into the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate, fixing #3176

    @rjsf/bootstrap-4

    • ๐Ÿ”จ Make label generation consistent with other themes by refactoring the code into the FieldTemplate instead of having the widgets implementing the label, fixing #2007
    • โšก๏ธ Updated ArrayFieldTemplate to always render ArrayFieldDescriptionTemplate since that template deals with the optional description
    • Pass the schema into the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate, fixing #3176

    ๐Ÿ’ป @rjsf/chakra-ui

    • โž• Added support for chakra-react-select v4, fixing #3152
    • In SelectWidget use Select from chakra-react-select for both single- and multiple-choice select
    • In SelectWidget multiple-choice select display label rather than value for selected items
    • โšก๏ธ Updated ArrayFieldTemplate to always render ArrayFieldDescriptionTemplate since that template deals with the optional description
    • Pass the schema into the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate, fixing #3176

    @rjsf/core

    • Extended Form.onChange to optionally return the id of the field that caused the change, fixing #2768
    • ๐Ÿ›  Fixed a regression in earlier v5 beta versions where additional properties could not be added when additionalProperties was true (#3719).
    • ๐Ÿ›  Fixed a regression in v5 beta version where BooleanField was altering readonly props (#3188.
    • โšก๏ธ Updated ArrayFieldDescriptionTemplate and ArrayFieldTitleTemplate to not render content when ui:label is false, fixing #2535
    • โšก๏ธ Updated ArrayFieldTemplate to always render ArrayFieldDescriptionTemplate since that template deals with the optional description
    • Pass the schema into the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate, fixing #3176

    ๐Ÿ’ป @rjsf/fluent-ui

    • โšก๏ธ Updated ArrayFieldTemplate to always render ArrayFieldDescriptionTemplate since that template deals with the optional description
    • Pass the schema into the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate, fixing #3176

    ๐Ÿ’ป @rjsf/material-ui

    • โšก๏ธ Updated ArrayFieldTemplate to always render ArrayFieldDescriptionTemplate since that template deals with the optional description
    • Pass the schema into the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate, fixing #3176

    @rjsf/mui

    • โšก๏ธ Updated ArrayFieldTemplate to always render ArrayFieldDescriptionTemplate since that template deals with the optional description
    • Pass the schema into the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate, fixing #3176

    ๐Ÿ’ป @rjsf/semantic-ui

    • โšก๏ธ Updated ArrayFieldTemplate to always render ArrayFieldDescriptionTemplate since that template deals with the optional description
    • Pass the schema into the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate, fixing #3176

    @rjsf/utils

    • โšก๏ธ Updated the onChange prop on FieldProps and FieldTemplateProps to add an optional id parameter to the callback.
    • โšก๏ธ Updated the DescriptionFieldProps and TitleFieldProps to add a new required schema prop. Also updated the ArrayFieldDescriptionTemplate and ArrayFieldTitleTemplate to make description and title optional while pulling all the other props but id from the associated type.

    ๐Ÿ“„ Dev / docs / playground

    • โž• Added an error boundary to prevent the entire app from crashing when an error is thrown by Form. See #3164 for closed issues.
    • โšก๏ธ Updated the playground to log the id of the field being changed on the onChange handler
    • โšก๏ธ Updated form-props.md to describe the new id parameter being returned by the Form.onChange handler
    • ๐Ÿ“š Updated custom-templates.md to add the new schema prop to the ArrayFieldDescriptionTemplate, ArrayFieldTitleTemplate, DescriptionFieldTemplate and TitleFieldTemplate documentation
    • โšก๏ธ Updated the contributing.md to describe setting up the husky precommit hooks for the first time git clone of the repo; Also added guidance for developing on underpowered computers; Finally discussed code-coverage requirements for some packages.
  • v5.0.0-beta.10 Changes

    @rjsf/antd

    • Convert WrapIfAdditional to WrapIfAdditionalTemplate
    • โž• Added name to the input components that were missing it to support remix
    • ๐Ÿ›  Fixed CheckboxesWidget and RadioWidget to have unique ids for each radio element by appending the option.value, protecting against non-arrays
    • Converted antd to Typescript, indirectly fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3123)

    @rjsf/bootstrap

    • Convert WrapIfAdditional to WrapIfAdditionalTemplate
    • โž• Added name to the input components that were missing it to support remix
    • Simplified the CheckboxWidgets code to eliminate a ternary in favor of a simple inline={inline} property since all the rest of the props were the same
    • ๐Ÿ›  Fixed CheckboxesWidget and RadioWidget to have unique ids for each radio element by appending the option.value, removing unnecessary casts to any and protecting against non-arrays
    • ๐Ÿ›  Fixed an issue where CheckboxesWidget incorrectly rendered inner <form> elements around each checkbox, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2355)

    ๐Ÿ’ป @rjsf/chakra-ui

    • Convert WrapIfAdditional to WrapIfAdditionalTemplate
    • โž• Added name to the input components that were missing it to support remix
    • ๐Ÿ›  Fixed CheckboxesWidget and RadioWidget to have unique ids for each radio element by appending the option.value, removing unnecessary casts to any and protecting against non-arrays

    @rjsf/core

    • Convert WrapIfAdditional to WrapIfAdditionalTemplate
    • โž• Added name to the input components that were missing it to support remix
    • ๐Ÿ›  Fixed CheckboxesWidget and RadioWidget to have unique ids for each radio element by appending the option.value
    • โšก๏ธ Updated the validate() method on Form to make schemaUtils an optional third parameter rather than a required first parameter, making the signature backwards compatible with what was provided in previous versions.

    ๐Ÿ’ป @rjsf/fluent-ui

    • โž• Add stubbed WrapIfAdditionalTemplate. additionalProperties is currently not supported in @rjsf/fluent-ui (See #2777).
    • โž• Added name or id (for those fluent components not supporting name) to the input components that were missing it to support remix
    • ๐Ÿ›  Fixed DateTimeWidget to properly use BaseInputTemplate rather than TextWidget
    • ๐Ÿ›  Fixed CheckboxesWidget and RadioWidget to have unique ids for each radio element by appending the option.value, removing unnecessary casts and protecting against non-arrays, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2138)
    • ๐Ÿ›  Fixed RadioWidget so that it supports read-only and disabled states

    ๐Ÿ’ป @rjsf/material-ui

    • Convert WrapIfAdditional to WrapIfAdditionalTemplate
    • โž• Added name to the input components that were missing it to support remix
    • ๐Ÿ›  Fixed CheckboxesWidget and RadioWidget to have unique ids for each radio element by appending the option.value, removing unnecessary casts to any and protecting against non-arrays

    @rjsf/mui

    • Convert WrapIfAdditional to WrapIfAdditionalTemplate
    • โž• Added name to the input components that were missing it to support remix
    • ๐Ÿ›  Fixed CheckboxesWidget and RadioWidget to have unique ids for each radio element by appending the option.value, removing unnecessary casts to any and protecting against non-arrays

    ๐Ÿ’ป @rjsf/semantic-ui

    • Convert WrapIfAdditional to WrapIfAdditionalTemplate
    • ๐Ÿ›  Fixed ArrayFieldTemplate and ObjectFieldTemplate's AddButton to show the non-labeled version. (https://github.com/rjsf-team/react-jsonschema-form/pull/3142)
    • โž• Added name to the input components that were missing it to support remix, including fixing incorrect names as ids in some situations
    • ๐Ÿ›  Fixed CheckboxesWidget and RadioWidget to have unique ids for each radio element by appending the option.value, protecting against non-arrays
    • ๐Ÿ’ป Converted semantic-ui to Typescript

    @rjsf/utils

    • โž• Added WrapIfAdditionalTemplate and WrapIfAdditionalTemplateProps to simplify theming and make it easier to override Field behavior for schemas with additionalProperties.
  • v5.0.0-beta.1 Changes

    Global changes across all themes:

    @rjsf/utils

    @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.
    • ๐Ÿ’ฅ A BREAKING CHANGE to toErrorList() was made so that it takes fieldPath: string[] rather than fieldName='root' as part of the fix to (https://github.com/rjsf-team/react-jsonschema-form/issues/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 (https://github.com/rjsf-team/react-jsonschema-form/issues/1596).

    @rjsf/core

    @rjsf/antd

    @rjsf/bootstrap-4

    ๐Ÿ’ป @rjsf/chakra-ui

    ๐Ÿ’ป @rjsf/material-ui

    @rjsf/mui

    ๐Ÿ’ป @rjsf/semantic-ui

    ๐Ÿ“„ Dev / docs / playground

  • v4.2.1 Changes

  • v4.2.0 Changes

    @rjsf/core

    ๐Ÿ“„ Dev / docs / playground

    ๐Ÿ’ป @rjsf/material-ui

    • ๐Ÿ’ป SubmitButton widget to use new ui:submitButtonOptions on the submit button for forms (https://github.com/rjsf-team/react-jsonschema-form/pull/2833)
    • ๐Ÿ›  Fixed bundler warning issue (#2762) by exporting a @rjsf/material-ui/v4 and @rjsf/material-ui/v5 sub-package
      • NOTE: @rjsf/material-ui was retained to avoid a breaking change, but using it will continue to cause bundler warnings
      • See the README.md for the @rjsf/material-ui package for updated usage information
    • ๐Ÿ›  Fixed (#2831) for material-ui by removing the DefaultChildren passed into the themes

    @rjsf/bootstrap-4

    ๐Ÿ’ป @rjsf/semantic-ui

    @rjsf/antd

    ๐Ÿ’ป @rjsf/fluent-ui

  • v4.1.1 Changes

    ๐Ÿ’ป @rjsf/material-ui

    • ๐Ÿ›  Fix bloated bundle size by individually requiring all MUI components (#2754)
    • โž• Add new useMuiComponent() hook as a shortcut for useContext(MuiComponentContext)

    ๐Ÿ’ป @rjsf/semantic-ui

    • โž• Added support for additionalProperties schema property (#2817)
  • v4.1.0 Changes

    @rjsf/core

    • ๐ŸŽ To improve performance, skip validating subschemas in oneOf / anyOf if formData is undefined (#2676)
    • ๐Ÿ›  Fixed the toIdSchema() typescript definition to add new idSeparator prop along with the spelling of idPrefix
      • Also passed the new idSeparator prop through to the AnyOfField and OneOfField inside of SchemaField
      • Updated ArrayField in @rjsf/core to pass idSeparator and idPrefix through to SchemaField, fixing a small bug
    • โž• Added support for the new ui:hideError feature, which allows you to hide errors at a field level

    ๐Ÿ’ป @rjsf/material-ui

    • โœ‚ Remove console.log() of the import error in MaterialUIContext and Mui5Context
    • Export the MaterialComponentContext (#2724)

    ๐Ÿ“„ Dev / docs / playground

    • โž• Added documentation for the new ui:hideError feature
  • v4.0.1 Changes

    • โฌ†๏ธ Bumped the peer dependencies of @rjsf/core to ^4.0.0 for all of themes in package.json
    • โœ… Also, added tests to all themes to verify that the tagName prop works as expected

    @rjsf/core

    • โšก๏ธ Updated Form to support the semantic-ui and material-ui themes to allow them work when tagName is provided
    • ๐Ÿ‘Œ Support if/then/else (#2700)

    ๐Ÿ’ป @rjsf/material-ui

    • ๐Ÿ›  Fixed up the Theme and Theme5 implementations to deal with a regression in which adding tagName caused the 2 themes to not work
    • ๐Ÿš€ Only console.log() the import error in MaterialUIContext and Mui5Context when not in production to eliminate tons of warnings for released code

    ๐Ÿ’ป @rjsf/semantic-ui

    • ๐Ÿ›  Fixed up the Theme implementation to deal with a regression in which adding tagName caused the theme to not work
  • v4.0.0 Changes

    @rjsf/core

    ๐Ÿ’ป @rjsf/material-ui

    • โž• Added React 17 as an optional peer dependency
    • ๐Ÿ“ฆ Minimum version of React required to use package is now React 16.3
    • โฌ†๏ธ Bumped required minimum versions of @material-ui/core and @material-ui/icons to the latest (4.12.0 and 4.11.1)
      • New exports: MuiForm4 and Theme4 are aliases to the material-ui version 4 MuiForm and Theme
      • The Material-UI 4 theme will fallback to a form with a message indicating @material-ui is not available when one (or both) of the libraries are not installed
    • โž• Added support for material-ui version 5 on top of React 17
      • Requires React 17 so will need to upgrade project
      • Added @mui/material, @mui/icons-material, @emotion/react and @emotion/styled as optional peer dependencies
      • New exports: MuiForm5 and Theme5 support using the Material UI 5 libraries instead of version 4
      • The Material-UI 5 theme will fallback to a form with a message indicating @mui is not available when one (or both) of the libraries are not installed

    ๐Ÿ’ป @rjsf/chakra-ui

    • โž• Added support for this new theme

    ๐Ÿ“„ Dev / docs / playground

    • โฌ†๏ธ Upgraded playground to use React 17
    • ๐Ÿ’ป Differentiated the material-ui 4 and 5 themes
    • โž• Added chakra-ui theme