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

Bump @rjsf/core from 5.18.4 to 5.20.0 #3312

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 12, 2024

Bumps @rjsf/core from 5.18.4 to 5.20.0.

Release notes

Sourced from @​rjsf/core's releases.

5.20.0

New Features

  • Support to allow raising errors from custom widgets
  • Added support for overriding the labels for enums, anyOf and oneOf via the UiSchema

@​rjsf/core

  • Support allowing raising errors from within a custom Widget #2718
  • Updated ArrayField, BooleanField and StringField to call optionsList() with the additional UiSchema parameter, fixing #4215 and #4260

@​rjsf/utils

  • Updated the WidgetProps type to add es?: ErrorSchema<T>, id?: string to the params of the onChange handler function
  • Updated UIOptionsBaseType to add the new enumNames prop to support an alternate way to provide labels for enums in a schema, fixing #4215
  • Updated optionsList() to take an optional uiSchema that is used to extract alternate labels for enums or oneOf/anyOf in a schema, fixing #4215 and #4260
    • NOTE: The generics for optionsList() were expanded from <S extends StrictRJSFSchema = RJSFSchema> to <S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any> to support the UiSchema.

Dev / docs / playground

  • Update the custom-widget-fields.md to add documentation for how to raise errors from a custom widget or field

5.19.4

Security fix

The XSS fix in this release could potentially cause issues if you were using the translateString feature to render HTML. Switching to Markdown will solve your problems.

@​rjsf/core

  • Fix XSS when rendering schema validation errors #4254
    • NOTE: This will have potential consequences if you are using the translateString feature and are trying to render HTML. Switching to Markdown will solve your problems.

@​rjsf/utils

  • Updated the ValidatorType interface to add an optional reset?: () => void prop that can be implemented to reset a validator back to initial constructed state
    • Updated the ParserValidator to provide a reset() function that clears the schema map
  • Also updated the default translatable string to use Markdown rather than HTML tags since we now render them with Markdown

@​rjsf/validator-ajv8

  • Updated the AJV8Validator to implement the reset() function to remove cached schemas in the ajv instance

Dev / docs / playground

  • Updated the Validator dropdown to add AJV8 (discriminator) which sets the AJV validator discriminator option to true to support testing schemas with that option in them

5.19.3

@​rjsf/antd

  • SelectWidget now displays an empty option when appropriate, fixing #4197

... (truncated)

Changelog

Sourced from @​rjsf/core's changelog.

5.20.0

@​rjsf/core

  • Support allowing raising errors from within a custom Widget #2718
  • Updated ArrayField, BooleanField and StringField to call optionsList() with the additional UiSchema parameter, fixing #4215 and #4260

@​rjsf/utils

  • Updated the WidgetProps type to add es?: ErrorSchema<T>, id?: string to the params of the onChange handler function
  • Updated UIOptionsBaseType to add the new enumNames prop to support an alternate way to provide labels for enums in a schema, fixing #4215
  • Updated optionsList() to take an optional uiSchema that is used to extract alternate labels for enums or oneOf/anyOf in a schema, fixing #4215 and #4260
    • NOTE: The generics for optionsList() were expanded from <S extends StrictRJSFSchema = RJSFSchema> to <S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any> to support the UiSchema.

Dev / docs / playground

  • Update the custom-widget-fields.md to add documentation for how to raise errors from a custom widget or field

5.19.4

@​rjsf/core

  • Fix XSS when rendering schema validation errors #4254
    • NOTE: This will have potential consequences if you are using the translateString feature and are trying to render HTML. Switching to Markdown will solve your problems.

@​rjsf/utils

  • Updated the ValidatorType interface to add an optional reset?: () => void prop that can be implemented to reset a validator back to initial constructed state
    • Updated the ParserValidator to provide a reset() function that clears the schema map
  • Also updated the default translatable string to use Markdown rather than HTML tags since we now render them with Markdown

@​rjsf/validator-ajv8

  • Updated the AJV8Validator to implement the reset() function to remove cached schemas in the ajv instance

Dev / docs / playground

  • Updated the Validator dropdown to add AJV8 (discriminator) which sets the AJV validator discriminator option to true to support testing schemas with that option in them

5.19.3

@​rjsf/antd

  • SelectWidget now displays an empty option when appropriate, fixing #4197

@​rjsf/chakra-ui

  • SelectWidget now displays an empty option when appropriate, fixing #4197

@​rjsf/fluentui-rc

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@rjsf/core](https://github.com/rjsf-team/react-jsonschema-form) from 5.18.4 to 5.20.0.
- [Release notes](https://github.com/rjsf-team/react-jsonschema-form/releases)
- [Changelog](https://github.com/rjsf-team/react-jsonschema-form/blob/main/CHANGELOG.md)
- [Commits](rjsf-team/react-jsonschema-form@5.18.4...5.20.0)

---
updated-dependencies:
- dependency-name: "@rjsf/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 12, 2024
@github-actions github-actions bot enabled auto-merge (squash) August 12, 2024 13:30
Copy link

The minor update of this production dependency was not automatically approved. For production dependencies, these semver updates can be automatically approved: patch

Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 2, 2024

Superseded by #3320.

@dependabot dependabot bot closed this Sep 2, 2024
auto-merge was automatically disabled September 2, 2024 13:52

Pull request was closed

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/rjsf/core-5.20.0 branch September 2, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants