Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rjsf monorepo to v5.12.1 #4108

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 18, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@rjsf/core 5.6.2 -> 5.12.1 age adoption passing confidence
@rjsf/mui 5.6.2 -> 5.12.1 age adoption passing confidence
@rjsf/utils 5.6.2 -> 5.12.1 age adoption passing confidence
@rjsf/validator-ajv8 5.6.2 -> 5.12.1 age adoption passing confidence

Release Notes

rjsf-team/react-jsonschema-form (@​rjsf/core)

v5.12.1

Compare Source

@​rjsf/validator-ajv8

  • Updated AJV8PrecompiledValidator.rawValidation() to resolve root schema with formData when comparing input schema, fixing #​3825

@​rjsf/core

  • Updated MultiSchemaField to merge all top level fields except properties for anyOf/oneOf options, fixing #​3808 and #​3787

@​rjsf/antd

  • Updated CheckboxesWidget to not show duplicate title, fixing #​3815

@​rjsf/utils

  • Updated retrieveSchemaInternal allOf logic for precompiled schemas to resolve top level properties fixing #​3817

v5.12.0

Compare Source

@​rjsf/utils

  • Experimental feature:
    • Added experimental_defaultFormStateBehavior = { arrayMinItems: { populate: 'never' } } (feature #​3796)

@​rjsf/validator-ajv8

  • Exposing new function compileSchemaValidatorsCode to allow creating precompiled validator without a file. This is useful in case when precompiled validator is to be created dynamically. #​3793

Dev / docs / playground

  • update playground vite config to use sources directly, allowing to reload changes in it without additional build step
  • moving from dts-cli to use individual dev tools directly, updating package publish config
    • tsc for generating type definitions and esm modules
    • esbuild for CJS bundle
    • rollup for UMD bundle
  • Updated the form-props documentation arrayMinItems, added description for never.
  • Updated the playground to add the option for the new arrayMinItems.populate = 'never'.

v5.11.2

Compare Source

@​rjsf/material-ui

  • Removed unnecessary import of old @types/material-ui which can cause typescript issues in some situations

@​rjsf/utils

  • Updated the resolveAllReferences() function to use object spreading to update properties and items in a schema rather than directly modifying the schema to avoid issues with frozen object, fixing #​3805

v5.11.1

Compare Source

@​rjsf/core

  • Updated SchemaField to ignore errors for anyOf/oneOf parent schema, fixing 1295

@​rjsf/utils

  • Created new resolveAllReferences() function to resolve all references within a schema's properties and array items.
  • Updated getClosestMatchingOption() to use resolveAllReferences() for all oneOf/anyOf schemas
  • Updated resolveAnyOrOneOfSchemas() to use resolveAllReferences() for all oneOf/anyOf schemas
  • Better handle the null case in withIdRefPrefix, fixing #​3792

v5.10.0

Compare Source

@​rjsf/core

  • Updated getFieldComponent() to support rendering a custom component by given schema id ($id). #​3740
  • Updated MultiSchemaField to merge the selected oneOf/anyOf value into base schema, fixing #​3744

@​rjsf/utils

  • Updated getClosestMatchingOption() to resolve refs in options before computing the closest matching option, fixing an issue with using precompiled validators
    • Also, added support for nested anyOf and discriminator support in the recursive calculateIndexScore()
  • Updated getDefaultFormState() to merge the remaining schema into anyOf/oneOf schema selected during the computation of values, fixing #​3744
  • Updated retrieveSchema() to merge the remaining schema into the anyOf/oneOf schema selected during the resolving of dependencies, fixing #​3744

Dev / docs / playground

  • Updated the custom-widgets-fields documentation to add the new added behaviour of getFieldComponent() function. #​3740
  • Updated the playground to add an example of the new added behaviour of getFieldComponent() function. #​3740

v5.9.0

Compare Source

@​rjsf/utils

  • Updated getDefaultFormState() to fix a bug where experimental_defaultFormStateBehavior: { emptyObjectFields: 'populateRequiredDefaults' } wasn't working for object properties with $refs
  • Experimental feature breaking change:
    • Updated the experimental_defaultFormStateBehavior.arrayMinItems from simple flag to an object containing two optional fields, populate and mergeExtraDefaults
      • The new arrayMinItems.mergeExtraDefaults flag, when "true", allows users to merge defaults onto the end of formData arrays when minItems is specified
    • If you were previously passing experimental_defaultFormStateBehavior as { arrayMinItems = 'requiredOnly } on the Form, now you would pass { arrayMinItems: { populate: 'requiredOnly' } }
  • Added a new, optional mergeExtraArrayDefaults=false flag to the mergeDefaultWithFormData() utility function to support the new arrayMinItems.mergeExtraDefaults experimental feature

Dev / docs / playground

  • Updated the utility-functions documentation to add the new mergeExtraArrayDefaults flag for the mergeDefaultWithFormData() function
  • Updated the form-props documentation to update the arrayMinItems documentation for the new object behavior
  • Updated the playground to add a checkbox for the new arrayMinItems.mergeExtraDefaults flag

v5.8.2

Compare Source

@​rjsf/validator-ajv8

  • Explicitly cache schemas by their hash when checking data is valid to avoid multiple compilations for schemas without IDs leading to poor performance #​3721

v5.8.1

Compare Source

Dev / docs / playground

  • Updated peer dependencies in all packages to ^5.8.x

v5.8.0

Compare Source

@​rjsf/bootstrap-4

  • Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes

@​rjsf/chakra-ui

  • Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes

@​rjsf/core

  • Updated SchemaField to be able to render markdown in the description field
  • Updated MultiSchemaField.getMatchingOption to use option index from getClosestMatchingOption, fixing #​3693 and
    #​3705

@​rjsf/fluent-ui

  • Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes

@​rjsf/material-ui

  • Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes

@​rjsf/mui

  • Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes

@​rjsf/semantic-ui

  • Updated FieldTemplate Component to display description from SchemaField and make it consistent for all the available themes

@​rjsf/utils

  • Updated getClosestMatchingOption to return selected option if all options score the same, fixing #​3693 and #​3705
  • Updated resolveCondition to default formData as empty object when evaluating if expression, fixing #​3706
  • Updated retrieveSchemaInternal to return failed merged allOf sub schemas for expandAllBranches flag, fixing #​3689
  • Updated hashForSchema to sort schema fields in consistent order before stringify to prevent different hash ids for the same schema
  • Updated enumOptionsSelectValue to allow picking falsy enumOptions, fixing #​3716

@​rjsf/validator-ajv8

  • Updated AJV8PrecompiledValidator.rawValidation() to use resolve root schema when comparing input schema, fixing #​3708

Dev / docs / playground

  • Updated sample data and documentation about the markdown in RJSFSchema description
  • Fixed broken playground examples (#​3696)
  • Added experimental_defaultFormStateBehavior.emptyObjectFields control to Playground
  • Fixed bug where subthemes would not appear in Playground

v5.7.3

Compare Source

@​rjsf/utils

  • Updated getClosestMatchingOption JUNK_OPTION schema with a well known $id
  • Updated schemaParser to resolve array items field, fixing #​3689

@​rjsf/validator-ajv8

  • Updated AJV8PrecompiledValidator.isValid() to return false for junk schema option, fixing #​3677

v5.7.2

Compare Source

@​rjsf/validator-ajv8

  • Removed the importing of internal ajv types by simplifying the CompiledValidateFunction type to avoid a bunch of Typescript errors encountered by users of the package

v5.7.1

Compare Source

@​rjsf/validator-ajv8

  • Updated the build for all but the cjs development version, to not export the compileSchemaValidators() function to avoid "Module not found: Can't resolve 'fs' error" issues, fixing #​3668

@​rjsf/core

  • Added protection against a null field in the focusOnError method in Form

Dev / docs / playground

  • Updated the validation documentation to add a note with a web-resource to help folks work around the "Module not found: Can't resolve 'fs' error" issue for development environments
  • Updated all of the package-lock.json files to bump peer-dependencies to 5.7.x, fixing #​3669

v5.7.0

Compare Source

@​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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added dependencies use for pull requests that update a dependency file filigran team use to identify PR from the Filigran team labels Aug 18, 2023
@SamuelHassine SamuelHassine merged commit 3b01f0d into master Aug 18, 2023
4 of 6 checks passed
@SamuelHassine SamuelHassine deleted the renovate/rjsf-monorepo branch August 18, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies use for pull requests that update a dependency file filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant