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

[Snyk] Upgrade markdown-to-jsx from 7.4.7 to 7.7.2 #791

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

shewood
Copy link
Collaborator

@shewood shewood commented Jan 21, 2025

snyk-top-banner

Snyk has created this PR to upgrade markdown-to-jsx from 7.4.7 to 7.7.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 8 versions ahead of your current version.

  • The recommended version was released a month ago.

Release notes
Package name: markdown-to-jsx
  • 7.7.2 - 2024-12-18

    Patch Changes

    • 52a727c: Use ReactNode instead of ReactChild for React 19 compatibility
    • 4fa87d8: Bump ws from 8.11.0 to 8.18.0
  • 7.7.1 - 2024-12-04

    Patch Changes

    • 9d42449: Factor out unnecessary element cloning.
    • 8920038: Remove use of explicit React.createElement.
  • 7.7.0 - 2024-11-20

    Minor Changes

    • 20777bf: Add support for GFM alert-style blockquotes.

      > [!Note]
      > This is a note-flavored alert blockquote. The "Note" text is injected as a `<header>` by
      > default and the blockquote can be styled via the injected class `markdown-alert-note`
      > for example.

    Patch Changes

    • 5d7900b: Adjust type signature for <Markdown> component to allow for easier composition.
    • 918b44b: Use newer React.JSX.* namespace instead of JSX.* for React 19 compatibility.
    • 91a5948: Arbitrary HTML no longer punches out pipes when parsing rows. If you absolutely need a pipe character that isn't a table separator, either escape it or enclose it in backticks to trigger inline code handling.
    • 23caecb: Drop encountered ref attributes when processing inline HTML, React doesn't handle it well.
  • 7.6.2 - 2024-11-14

    Patch Changes

    • 0274445: Fix false detection of tables in some scenarios.
    • 69f815e: Handle class attribute from arbitrary HTML properly to avoid React warnings.
    • 857809a: Fenced code blocks are now tolerant to a missing closing sequence; this improves use in LLM scenarios where the code block markdown is being streamed into the editor in chunks.
  • 7.6.1 - 2024-11-13

    Patch Changes

    • 87d8bd3: Handle class attribute from arbitrary HTML properly to avoid React warnings.
  • 7.6.0 - 2024-11-12

    Minor Changes

    • 2281a4d: Add options.disableAutoLink to customize bare URL handling behavior.

      By default, bare URLs in the markdown document will be converted into an anchor tag. This behavior can be disabled if desired.

      https://quantizor.dev will not be rendered as an anchor tag.',
      { disableAutoLink: true }
      )

      // renders:

      <span>
      The URL https://quantizor.dev will not be rendered as an anchor tag.
      </span>">

      <Markdown options={{ disableAutoLink: true }}>
      The URL https://quantizor.dev will not be rendered as an anchor tag.
      </Markdown>

      // or

      compiler(
      'The URL https://quantizor.dev will not be rendered as an anchor tag.',
      { disableAutoLink: true }
      )

      // renders:

      <span>
      The URL https://quantizor.dev will not be rendered as an anchor tag.
      </span>

    Patch Changes

    • fb3d716: Simplify handling of fallback scenario if a link reference is missing its corresponding footnote.
  • 7.5.1 - 2024-11-12

    Patch Changes

    • b16f668: Fix issue with lookback cache resulting in false detection of lists inside lists in some scenarios
    • 58b96d3: fix: handle empty HTML tags more consistently #597
  • 7.5.0 - 2024-08-18

    Minor Changes

    • 62a16f3: Allow modifying HTML attribute sanitization when options.sanitizer is passed by the composer.

      By default a lightweight URL sanitizer function is provided to avoid common attack vectors that might be placed into the href of an anchor tag, for example. The sanitizer receives the input, the HTML tag being targeted, and the attribute name. The original function is available as a library export called sanitizer.

      This can be overridden and replaced with a custom sanitizer if desired via options.sanitizer:

      foo', {
      sanitizer: (value, tag, attribute) => value,
      })">
      // sanitizer in this situation would receive:
      // ('javascript:alert("foo")', 'a', 'href')

      <Markdown options={{ sanitizer: (value, tag, attribute) => value }}>
      {[foo](javascript:alert("foo"))}
      </Markdown>

      // or

      compiler('foo', {
      sanitizer: (value, tag, attribute) => value,
      })

    Patch Changes

    • 553a175: Replace RuleType enum with an object
  • 7.4.7 - 2024-04-13

    Patch Changes

    • 7603248: Fix parsing isolation of individual table cells.
    • f9328cc: Improved block html detection regex to handle certain edge cases that cause extreme slowness. Thank you @ devbrains-com for the basis for this fix 🤝
from markdown-to-jsx GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade markdown-to-jsx from 7.4.7 to 7.7.2.

See this package in npm:
markdown-to-jsx

See this project in Snyk:
https://app.snyk.io/org/p0nder0sa/project/60ffc669-57aa-416f-923d-9c5e8c2c64de?utm_source=github&utm_medium=referral&page=upgrade-pr
@shewood shewood requested a review from a team as a code owner January 21, 2025 07:01
Copy link

Copy link
Contributor

@abalogh-esdc abalogh-esdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@abalogh-esdc abalogh-esdc merged commit 21c1488 into dev Jan 22, 2025
13 of 14 checks passed
@abalogh-esdc abalogh-esdc deleted the snyk-upgrade-410ff66522dbf56c0ff68ec7d6370e0b branch January 22, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants