[Snyk] Upgrade marked from 0.3.5 to 14.0.0 #1305
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade marked from 0.3.5 to 14.0.0.
ℹ️ 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 137 versions ahead of your current version.
The recommended version was released on 21 days ago.
Issues fixed by the recommended upgrade:
npm:marked:20180225
npm:marked:20150520
npm:marked:20170112
npm:marked:20170815
npm:marked:20170907
SNYK-JS-MARKED-174116
SNYK-JS-MARKED-2342073
SNYK-JS-MARKED-2342082
SNYK-JS-MARKED-451540
SNYK-JS-MARKED-584281
npm:marked:20170815-1
Release notes
Package name: marked
14.0.0 (2024-08-07)
Bug Fixes
BREAKING CHANGES
async: false
is set when an extension setsasync: true
13.0.3 (2024-07-28)
Bug Fixes
13.0.2 (2024-07-04)
Bug Fixes
13.0.1 (2024-06-24)
Bug Fixes
13.0.0 (2024-06-12)
Bug Fixes
Features
BREAKING CHANGES
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 docsconst extension = {
renderer: {
heading(text, level) {
// increase level by 1
return
<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>><span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">text</span><span class="pl-kos">}</span></span></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>>
;}
}
};
marked.use(extension);
const extension = {
useNewRenderer: true,
renderer: {
heading(token) {
// increase depth by 1
const text = this.parser.parseInline(token.tokens);
const level = token.depth;
return
<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>><span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">text</span><span class="pl-kos">}</span></span></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>>
;}
}
};
marked.use(extension);
12.0.2 (2024-04-19)
Bug Fixes
12.0.1 (2024-03-06)
Bug Fixes
12.0.0 (2024-02-03)
Bug Fixes
BREAKING CHANGES
<!-->
and<!--->
11.2.0 (2024-01-27)
Bug Fixes
Features
11.1.1 (2023-12-31)
Bug Fixes
14.0.0 (2024-08-07)
Bug Fixes
BREAKING CHANGES
async: false
is set when an extension setsasync: true
13.0.3 (2024-07-28)
Bug Fixes
13.0.2 (2024-07-04)
Bug Fixes
13.0.1 (2024-06-24)
Bug Fixes
13.0.0 (2024-06-12)
Bug Fixes
Features
BREAKING CHANGES
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 docsconst extension = {
renderer: {
heading(text, level) {
// increase level by 1
return
<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>><span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">text</span><span class="pl-kos">}</span></span></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>>
;}
}
};
marked.use(extension);
const extension = {
useNewRenderer: true,
renderer: {
heading(token) {
// increase depth by 1
const text = this.parser.parseInline(token.tokens);
const level = token.depth;
return
<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>><span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">text</span><span class="pl-kos">}</span></span></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>>
;}
}
};
marked.use(extension);
12.0.2 (2024-04-19)
Bug Fixes
12.0.1 (2024-03-06)
Bug Fixes
12.0.0 (2024-02-03)
Bug Fixes
BREAKING CHANGES
<!-->
and<!--->
11.2.0 (2024-01-27)
Bug Fixes
Features
11.1.1 (2023-12-31)
Bug Fixes
Important
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: