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 4.0.10 to 14.1.2 #6

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

Conversation

akosuadenell-prog
Copy link
Owner

Snyk has created this PR to upgrade marked from 4.0.10 to 14.1.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 is a major version upgrade, and may be a breaking change.

  • The recommended version is 71 versions ahead of your current version.
  • The recommended version was released a month ago, on 2024-09-08.
Release notes
Package name: marked
  • 14.1.2 - 2024-09-08

    14.1.2 (2024-09-08)

    Bug Fixes

  • 14.1.1 - 2024-09-04

    14.1.1 (2024-09-04)

    Bug Fixes

  • 14.1.0 - 2024-08-26

    14.1.0 (2024-08-26)

    Bug Fixes

    Features

    • add provideLexer and provideParser hooks (#3424) (447f5af)
  • 14.0.0 - 2024-08-07

    14.0.0 (2024-08-07)

    Bug Fixes

    BREAKING CHANGES

    • Remove old renderer
    • throw an error if async: false is set when an extension sets async: true
  • 13.0.3 - 2024-07-28

    13.0.3 (2024-07-28)

    Bug Fixes

    • fix recursion-like stack overflow error caused by the old render… (#3380) (89af0b8)
  • 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
  • 11.2.0 - 2024-01-27
  • 11.1.1 - 2023-12-31
  • 11.1.0 - 2023-12-12
  • 11.0.1 - 2023-12-08
  • 11.0.0 - 2023-11-29
  • 10.0.0 - 2023-11-11
  • 9.1.6 - 2023-11-10
  • 9.1.5 - 2023-11-02
  • 9.1.4 - 2023-10-31
  • 9.1.3 - 2023-10-28
  • 9.1.2 - 2023-10-13
  • 9.1.1 - 2023-10-11
  • 9.1.0 - 2023-10-05
  • 9.0.3 - 2023-09-18
  • 9.0.2 - 2023-09-16
  • 9.0.1 - 2023-09-15
  • 9.0.0 - 2023-09-09
  • 8.0.1 - 2023-09-06
  • 8.0.0 - 2023-09-03
  • 7.0.5 - 2023-08-26
  • 7.0.4 - 2023-08-19
  • 7.0.3 - 2023-08-15
  • 7.0.2 - 2023-08-10
  • 7.0.1 - 2023-08-07
  • 7.0.0 - 2023-08-06
  • 6.0.0 - 2023-07-31
  • 5.1.2 - 2023-07-25
  • 5.1.1 - 2023-07-07
  • 5.1.0 - 2023-06-10
  • 5.0.5 - 2023-06-07
  • 5.0.4 - 2023-05-30
  • 5.0.3 - 2023-05-26
  • 5.0.2 - 2023-05-11
  • 5.0.1 - 2023-05-06
  • 5.0.0 - 2023-05-02
  • 4.3.0 - 2023-03-22
  • 4.2.12 - 2023-01-14
  • 4.2.11 - 2023-01-14
  • 4.2.10 - 2023-01-14
  • 4.2.9 - 2023-01-14
  • 4.2.8 - 2023-01-14
  • 4.2.7 - 2023-01-14
  • 4.2.6 - 2023-01-14
  • 4.2.5 - 2022-12-23
  • 4.2.4 - 2022-12-07
  • 4.2.3 - 2022-11-20
  • 4.2.2 - 2022-11-05
  • 4.2.1 - 2022-11-02
  • 4.2.0 - 2022-10-31
  • 4.1.1 - 2022-10-01

    14.1.1 (2024-09-04)

    Bug Fixes

  • 4.1.0 - 2022-08-30

    14.1.0 (2024-08-26)

    Bug Fixes

    Features

    • add provideLexer and provideParser hooks (#3424) (447f5af)
  • 4.0.19 - 2022-08-21
  • 4.0.18 - 2022-07-11
  • 4.0.17 - 2022-06-13
  • 4.0.16 - 2022-05-17
  • 4.0.15 - 2022-05-02
  • 4.0.14 - 2022-04-11
  • 4.0.13 - 2022-04-08
  • 4.0.12 - 2022-01-27
  • 4.0.11 - 2022-01-26
  • 4.0.10 - 2022-01-13
from marked GitHub release notes
Commit messages
Package name: marked
  • 0309c2f chore(release): 14.1.2 [skip ci]
  • 9d7b728 fix: fix html following list (#3444)
  • 2fe4136 chore: update testutils to v14.1.1-0 (#3443)
  • f3c387f chore(release): 14.1.1 [skip ci]
  • 9ed6456 fix: Don't replace tabs with spaces (#3438)
  • 2ff0547 chore(deps-dev): Bump @ markedjs/eslint-config from 1.0.1 to 1.0.2 (#3442)
  • e6167a9 chore(deps-dev): Bump rollup from 4.21.0 to 4.21.2 (#3441)
  • 2124b5d chore: update @ marked/testutils (#3431)
  • e6f0ca5 chore(deps-dev): Bump eslint from 9.9.0 to 9.9.1 (#3430)
  • 73d21f4 chore(deps-dev): Bump tslib from 2.6.3 to 2.7.0 (#3429)
  • 6e6832f chore(deps-dev): Bump @ semantic-release/github from 10.1.6 to 10.1.7 (#3428)
  • 14dcd33 chore(release): 14.1.0 [skip ci]
  • 3f0430a fix: don't export block or inline (#3427)
  • 447f5af feat: add provideLexer and provideParser hooks (#3424)
  • 0076503 chore(deps-dev): Bump semantic-release from 24.0.0 to 24.1.0 (#3423)
  • 750e8a3 chore(deps-dev): Bump @ semantic-release/github from 10.1.4 to 10.1.6 (#3422)
  • c4bd659 chore(deps-dev): Bump rollup from 4.20.0 to 4.21.0 (#3421)
  • 6062657 chore(deps-dev): Bump @ arethetypeswrong/cli from 0.15.3 to 0.15.4 (#3406)
  • 68d5b13 chore(deps-dev): Bump marked-highlight from 2.1.3 to 2.1.4 (#3405)
  • 1ba8388 chore(deps-dev): Bump @ semantic-release/github from 10.1.3 to 10.1.4 (#3404)
  • abb7b4e chore(deps-dev): Bump eslint from 9.8.0 to 9.9.0 (#3403)
  • 7fe7e9a chore(deps-dev): Bump cheerio from 1.0.0-rc.12 to 1.0.0 (#3407)
  • 7972d7f chore(release): 14.0.0 [skip ci]
  • e64f226 fix: Remove useNewRenderer (#3342)

Compare


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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

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.

2 participants