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 marked from 11.2.0 to 13.0.2 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OKEAMAH
Copy link
Owner

@OKEAMAH OKEAMAH commented Aug 1, 2024

snyk-top-banner

Snyk has created this PR to upgrade marked from 11.2.0 to 13.0.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.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

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

  • The recommended version was released on a month ago.

Release notes
Package name: marked
  • 13.0.2 - 2024-07-04

    13.0.2 (2024-07-04)

    Bug Fixes

  • 13.0.1 - 2024-06-24

    13.0.1 (2024-06-24)

    Bug Fixes

  • 13.0.0 - 2024-06-12

    13.0.0 (2024-06-12)

    Bug Fixes

    • Fix blockquote code continuation (#3264) (7ab8185)
    • Add parser as a property on the Renderer object (#3291)
    • Send block text tokens to the text renderer (#3291)

    Features

    • Send token objects to renderers (#3291) (1ce59ea)
    • Add space renderer that returns empty string by default (#3291)
    • Add header and align properties to TableCell token (#3291)
    • Add TableRow token (#3291)
    • Add Checkbox token (#3291)

    BREAKING CHANGES

    • Add space token after blockquote and hr if there are multiple newlines
    • Send token objects to renderers and move logic to parse tokens from the parser to the renderers.
      • Most extensions that update marked renderers should still work with this version but will break in a future major version.

      • Extensions that change marked renderers will need to be updated and use new option useNewRenderer and accept a token object instead of multiple parameters. See updated Renderer docs

        // v12 renderer extension

        const extension = {
        renderer: {
        heading(text, level) {
        // increase level by 1
        return &lt;h<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">level</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">}</span></span>&gt;<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">text</span><span class="pl-kos">}</span></span>&lt;/h<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">level</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">}</span></span>&gt;;
        }
        }
        };

        marked.use(extension);

        // v13 renderer extension

        const extension = {
        useNewRenderer: true,
        renderer: {
        heading(token) {
        // increase depth by 1
        const text = this.parser.parseInline(token.tokens);
        const level = token.depth;
        return &lt;h<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">level</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">}</span></span>&gt;<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">text</span><span class="pl-kos">}</span></span>&lt;/h<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">level</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">}</span></span>&gt;;
        }
        }
        };

        marked.use(extension);

  • 12.0.2 - 2024-04-19

    12.0.2 (2024-04-19)

    Bug Fixes

  • 12.0.1 - 2024-03-06

    12.0.1 (2024-03-06)

    Bug Fixes

  • 12.0.0 - 2024-02-03

    12.0.0 (2024-02-03)

    Bug Fixes

    BREAKING CHANGES

    • changes to spec
    • Update HTML block tags: add search, remove source
    • Update punctuation to include unicode punctuation and symbol categories
    • Update HTML comment to include <!--> and <!--->
  • 11.2.0 - 2024-01-27

    11.2.0 (2024-01-27)

    Bug Fixes

    Features

from marked GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • 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 marked from 11.2.0 to 13.0.2.

See this package in npm:
marked

See this project in Snyk:
https://app.snyk.io/org/okeamah/project/efcfd9d5-ce9e-4b05-a8a0-359280ab1c80?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

changeset-bot bot commented Aug 1, 2024

⚠️ No Changeset found

Latest commit: 3446183

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants