React Jsonschema Form Versions Save

A React component for building Web forms from JSON Schema.

v5.14.3

6 months ago

@rjsf/core

  • add retrieveSchema at Form state to memoize the result of schemUtils.retrieveSchema

@rjsf/fluentui-rc

  • Updated README.md references
  • Fixed width of ArrayFieldItemTemplate items

Dev

  • update tsconfigs:
    • "importHelpers": false to remove need for tslib dependency #3958
    • increase compilation target level from es6 to es2018 (so there are no need for transpiling object spread/rest feature)
    • add missing typescript project reference for snapshot-tests in a root tsconfig, update it to also use es modules

v5.14.2

6 months ago

@rjsf/antd

  • Fixed the peerDependencies for @ant-design/icons to also support v5, fixing #3507

@rjsf/core

  • avoid call retrieveSchema twice during getStateFromProps and mustValidate is true #3959

@rjsf/mui

  • Resolve the React error caused by the propagation of the hideError property to the DOM element, fixing #3945

@rjsf/material-ui

  • Resolve the React error caused by the propagation of the hideError property to the DOM element, fixing #3945

@rjsf/utils

  • Update sanitizeDataForNewSchema() to avoid spreading strings and Arrays into the returned value when the old schema is of type string or array and the new schema is of type object. Fixing #3922

v5.14.1

6 months ago

@rjsf/utils

  • update types for labelValue to have more granular return types, fixing #3946

Dev / playground

  • Added Fluent UI v9 (React Components) theme to playground
  • Update Fluent UI v9 and playground project references
  • Update eslint ignores to exclude new typescript build output folders

v5.14.0

6 months ago

New theme available for Fluent 9

@rjsf/fluentui-rc

  • Added theme for Fluent UI v9 (React Components), fixing #3659

@rjsf/snapshot-tests

Move theme snapshot tests into separate package

Dev / playground

  • update configuration to use typescript project references, start type checking the tests

v5.13.6

6 months ago

@rjsf/core

  • Updated StringField to pass hideError prop to Widget so that all fields are consistent. Missed this file in previous patch

v5.13.5

6 months ago

@rjsf/core

  • Updated StringField and BooleanField to pass hideError prop to Widget so that all fields are consistent

v5.13.4

6 months ago

@rjsf/core

  • Updated SchemaField to show errors for anyOf/oneOf when being rendered as select control, fixing 3908

v5.13.3

7 months ago

@rjsf/antd

  • Fixed the SelectWidget so that filtering works by reworking how options are passed to the underlying Select

@rjsf/core

  • Replaced the deprecated UNSAFE_componentWillReceiveProps() method in the Form.tsx component with an improved solution utilizing the React lifecycle methods: getSnapshotBeforeUpdate() and componentDidUpdate(). Fixing #1794
  • Fixed the ArrayField implementation to never pass an undefined schema for fixed arrays to other methods, fixing #3924
  • Fixed a refresh issue in getSnapshotBeforeUpdate() caused by the fix for #1794, fixing #3927

@rjsf/utils

  • Updated toPathSchemaInternal() util to generate correct path schemas for fixed arrays by picking up individual schemas in the items array, fixing #3909

v5.13.2

7 months ago

@rjsf/utils

  • Updated resolveAnyOrOneOfSchemas() to not take a recurseList anymore, and instead always pass an empty array down to resolveAllReferences(), fixing #3902
    • Also updated parseSchema() and resolveDependencies() to no longer pass recurseList to resolveAnyOrOneOfSchemas()

@rjsf/validator-ajv8

  • Updated AJV8PrecompiledValidator to add a new ensureSameRootSchema() function that is called in both rawValidation() and isValid()
    • This function adds an optimization to avoid resolving the root schema unless necessary

v5.13.1

7 months ago

@rjsf/core

  • Updated ArrayField to move errors in the errorSchema when the position of array items changes for the insert and copy cases.

@rjsf/material-ui

  • Removed an unnecessary Grid container component in the ArrayFieldTemplate component that wrapped the ArrayFieldItemTemplate, fixing #3863
  • Fixed an issue where SelectWidget switches from controlled to uncontrolled when enumOptions does not include a value, fixing #3844

@rjsf/mui

  • Removed an unnecessary Grid container component in the ArrayFieldTemplate component that wrapped the ArrayFieldItemTemplate, fixing #3863
  • Fixed an issue where SelectWidget switches from controlled to uncontrolled when enumOptions does not include a value, fixing #3844

@rjsf/utils

  • Added getOptionMatchingSimpleDiscriminator() function
  • getMatchingOption and getClosestMatchingOption now bypass validator.isValid() calls when simple discriminator is provided, fixing #3692
  • Fix data type in FieldTemplateProps['onChange']
  • Updated retrieveSchema() to properly resolve references inside of properties and array items while also dealing with recursive $refs, fixing #3761
    • Updated schemaParser() and getClosestMatchingOption() to pass the new recursiveRef parameter added to internal retrieveSchema() APIs
  • Added/updated all the necessary tests to restore the 100% test coverage that was lost when updating to Jest 29
    • Updated getDefaultFormState() to remove an unnecessary check for formData being an object since it is always guaranteed to be one, thereby allowing full testing coverage
  • Updated getSchemaType() to return the first schema type when it is an array not containing 'null', fixing #3875

@rjsf/validator-ajv8

  • Updated the validator and precompiledValidator tests to the restore 100% coverage that was lost when updating to Jest 29
    • Updated isValid() for the validator commenting out an if condition that was preventing 100% coverage, with a TODO to fix it later

Dev / docs / playground

  • Added the @types/jest as a global devDependency so that developer tools properly recognize the jest function types