github rjsf-team/react-jsonschema-form v5.0.0-beta.0

latest releases: 5.21.1, v5.21.1, 5.21.0...
pre-release2 years ago

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)

Don't miss a new react-jsonschema-form release

NewReleases is sending notifications on new releases.