[Snyk] Upgrade remark-html from 7.0.0 to 16.0.1 #8
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 remark-html from 7.0.0 to 16.0.1.
ℹ️ 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 18 versions ahead of your current version.
The recommended version was released on a year ago.
Issues fixed by the recommended upgrade:
SNYK-JS-REMARKHTML-1583433
Release notes
Package name: remark-html
Full Changelog: 16.0.0...16.0.1
Change
migrate: update too
exports
migrate: don’t use private APIs
@ types/mdast
, utilities, etcmigrate: update too
hast-util-sanitize@5
: everything’s safe, GH is safe, but make sure to check if you’re super worriedhast-util-to-html@9
:options.entities
->options.characterReferences
mdast-util-to-hast@13
: handlers are different, if you pass those, see the changelogFull Changelog: 15.0.2...16.0.0
Fix
Full Changelog: 15.0.1...15.0.2
by @ wooorm in #38
Full Changelog: 15.0.0...15.0.1
remark-footnotes
if you were using that, and instead useremark-gfm
remark-rehype
instead of this pluginremark-html
Full Changelog: 14.0.1...15.0.0
b75c9dd Security: Fix to sanitize by default
The docs have always said
remark-html
is safe by default. It wasn’t and this patches that.If you do want to be unsafe, use
remark-html
withsanitize: false
:Full Changelog: 14.0.0...14.0.1
var remarkHtml = require('remark-html')
// To ESM
import remarkHtml from 'remark-html'
Learn more about ESM in this guide
b0b1ba5 Fix to sanitize by default
The docs have always said
remark-html
is safe by default. It wasn’t and this patches that.If you do want to be unsafe, use
remark-html
withsanitize: false
:Full Changelog: 13.0.1...13.0.2
mdast-util-to-hast
(breaking, potentially, if you have duplicate definitions)
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: