contentful / field-editors

React components and extensions for building Contentful entry editor
https://contentful-field-editors.netlify.app/
MIT License
151 stars 116 forks source link

chore: bump @udecode/plate-core from 30.1.2 to 38.0.6 #1751

Closed dependabot[bot] closed 1 month ago

dependabot[bot] commented 2 months ago

Bumps @udecode/plate-core from 30.1.2 to 38.0.6.

Release notes

Sourced from @​udecode/plate-core's releases.

@​udecode/plate-core@​38.0.6

Patch Changes

  • d30471cb19577e53c20944ab66eab2a7ef3b3ad2 by @​12joan – Mitigate XSS in element.attributes by requiring all attribute names to be allowlisted in the node.dangerouslyAllowAttributes plugin configuration option.

    Migration:

    For each plugin that needs to support passing DOM attributes using element.attributes, add the list of allowed attributes to the node.dangerouslyAllowAttributes option of the plugin.

    const ImagePlugin = createPlatePlugin({
      key: 'image',
      node: {
        isElement: true,
        isVoid: true,
        dangerouslyAllowAttributes: ['alt'],
      },
    });
    

    To modify existing plugins, use the extend method as follows:

    const MyImagePlugin = ImagePlugin.extend({
      node: {
        dangerouslyAllowAttributes: ['alt'],
      },
    });
    

    WARNING: Improper use of dangerouslyAllowAttributes WILL make your application vulnerable to cross-site scripting (XSS) or information exposure attacks. Ensure you carefully research the security implications of any attribute before adding it. For example, the src and href attributes will allow attackers to execute arbitrary code, and the style and background attributes will allow attackers to leak users' IP addresses.

@​udecode/plate-core@​38.0.4

No release notes provided.

@​udecode/plate-core@​38.0.3

No release notes provided.

@​udecode/plate-core@​38.0.2

Patch Changes

v38.0.1

These should be the last major changes from v37 rework. We recommend migrating directly to this version from v36

@​udecode/plate-core@​38.0.1

Major Changes

... (truncated)

Changelog

Sourced from @​udecode/plate-core's changelog.

38.0.6

Patch Changes

  • d30471cb19577e53c20944ab66eab2a7ef3b3ad2 by @​12joan – Mitigate XSS in element.attributes by requiring all attribute names to be allowlisted in the node.dangerouslyAllowAttributes plugin configuration option.

    Migration:

    For each plugin that needs to support passing DOM attributes using element.attributes, add the list of allowed attributes to the node.dangerouslyAllowAttributes option of the plugin.

    const ImagePlugin = createPlatePlugin({
      key: 'image',
      node: {
        isElement: true,
        isVoid: true,
        dangerouslyAllowAttributes: ['alt'],
      },
    });
    

    To modify existing plugins, use the extend method as follows:

    const MyImagePlugin = ImagePlugin.extend({
      node: {
        dangerouslyAllowAttributes: ['alt'],
      },
    });
    

    WARNING: Improper use of dangerouslyAllowAttributes WILL make your application vulnerable to cross-site scripting (XSS) or information exposure attacks. Ensure you carefully research the security implications of any attribute before adding it. For example, the src and href attributes will allow attackers to execute arbitrary code, and the style and background attributes will allow attackers to leak users' IP addresses.

38.0.4

38.0.3

38.0.2

Patch Changes

38.0.1

Patch Changes

  • #3526 by @​zbeyens
    • Rename all base plugins that have a React plugin counterpart to be prefixed with Base. This change improves clarity and distinguishes base implementations from potential React extensions. Use base plugins only for server-side environments or to extend your own DOM layer.
    • Import the following plugins from /react entry: AlignPlugin, CalloutPlugin, EquationPlugin, FontBackgroundColorPlugin, FontColorPlugin, FontFamilyPlugin, FontSizePlugin, FontWeightPlugin, InlineEquationPlugin, LineHeightPlugin, TextIndentPlugin, TocPlugin

... (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 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)
dependabot[bot] commented 1 month ago

Superseded by #1759.