npm @rjsf/core 5.7.0

latest releases: 5.21.1, 5.21.0, 5.20.1...
16 months ago

3 new features

  • Added experimental_defaultFormStateBehavior prop to Form to support alternate default form state behaviors
  • Added support for precompiled schemas in validator-ajv8
  • Added support for additionalProperties to fluent-ui theme while upgrading support to version 8 (backwards compatible with 7)

@rjsf/antd

  • Fix #3608 by ensuring the root field is always wrapped in Form.Item
  • Fix #3594 by removing the duplicate title for SelectWidget and description for CheckboxWidget

@rjsf/core

  • Updated the MultiSchemaField to use the new getDiscriminatorFieldFromSchema() API
  • Added new experimental_defaultFormStateBehavior prop to Form
    • to specify alternate behavior when dealing with the rendering of array fields where minItems is set but field is not required (fixes #3363) (#3602)
    • to handle setting object defaults based on the value of emptyObjectFields supporting required fields only and skipping defaults entirely, fixing #2980
  • Fixed regression #3650 in FileWidget to again support adding multiple files to arrays

@rjsf/fluent-ui

  • Added support for additionalProperties to fluent-ui theme, fixing #2777.
  • Upgraded to 8.x version of @fluentui/react maintaining backwards compatibility to version 7, fixing #3463

@rjsf/utils

  • Added two new APIs getDiscriminatorFieldFromSchema() (a refactor of code from MultiSchemaField) and hashForSchema()
    • Updated getDefaultFormState() and toPathSchema() to use getDiscriminatorFieldFromSchema() to provide a discriminator field to getClosestMatchingOption() calls.
  • Refactored the retrieveSchema() internal API functions to support implementing an internal schemaParser() API for use in precompiling schemas, in support of #3543
  • Fixed toPathSchema() to handle properties in an object along with anyOf/oneOf, fixing #3628 and #1628
  • Refactored optional parameters for computeDefaults() into destructured props object to reduce clutter when only specifying later of the optional argument, fixing #3602
  • Fixed computeDefaults() to handle $ref in an object along with anyOf/oneOf, fixing #3633

@rjsf/validator-ajv8

  • Added two new APIs compileSchemaValidators() and createPrecompiledValidator() implemented to support using precompiled validators build with AJV 8, fixing #3543

Dev / docs / playground

  • Added documentation to custom-templates describing how to extend the BaseInputTemplate
  • Added minItems behavior for array field live setting, fixing #3602
  • Upgraded playground to 8.x version of @fluentui/react, fixing #3463
  • Added documentation to validation describing the new precompiled validators feature
  • Added new validator-ajv8.md documentation to the api-reference directory as well as putting it into the sidebar.js

Don't miss a new core release

NewReleases is sending notifications on new releases.