Update dependency sanitize-html to v2 - abandoned #3
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.
This PR contains the following updates:
^1.22.1->^2.0.0Release Notes
apostrophecms/sanitize-html
v2.10.0Compare Source
disallowedTagModeis set to any variant ofescape-- just escape the disallowed tags that are present. This fixes issue #464. Thanks to Daniel LiebnertagAllowed()helper function which takes a tag name and checks it againstoptions.allowedTagsand returnstrueif the tag is allowed andfalseif it is not.v2.9.0Compare Source
v2.8.1Compare Source
v2.8.0Compare Source
htmlparser2to new major version^8.0.0. Thanks to Kedar Chandrayan for this contribution.v2.7.3Compare Source
false, then do not assume that all tags are allowed. Rather, allow no tags in this case, to be on the safe side. This matches the existing documentation and fixes issue #176. Thanks to Kedar Chandrayan for the fix.v2.7.2Compare Source
Kedar Chandrayan for the report and the fix.
v2.7.1Compare Source
v2.7.0Compare Source
<img />tags. Thanks to Zade Viggers.v2.6.1Compare Source
!importantwhen used.transformTagsoptions that was reported on issue #506. Thanks to Alex Rantos.v2.6.0Compare Source
allowedClassesoption. Thanks to Alex Rantos.v2.5.3Compare Source
v2.5.2Compare Source
null,undefinedor implicitundefinedwhen value is not provided. Thanks to Artem Kostiuk for the contribution.v2.5.1Compare Source
allowedScriptHostnamesandallowedScriptDomainsoptions now implicitly purge the inline content of all script tags, not just those withsrcattributes. This behavior was already strongly implied by the fact that they purged it in the case where asrcattribute was actually present, and is necessary for the feature to provide any real security. Thanks to Grigorii Duca for pointing out the issue.v2.5.0Compare Source
allowedScriptHostnamesoption, it enables you to specify which hostnames are allowed in a script tag.allowedScriptDomainsoption, it enables you to specify which domains are allowed in a script tag. Thank you to Yorick Girard for this and theallowedScriptHostnamescontribution.v2.4.0Compare Source
allowedClasses. Thanks to zhangbenber for the contribution.v2.3.3Compare Source
allowedSchemesand related options did not properly block schemes containing a hyphen, plus sign, period or digit, such asms-calculator:. Thanks to Lukas Euler for pointing out the issue.parseroption, especiallydecodeEntities: false. See the documentation.v2.3.2Compare Source
yarn addsyntax. Thanks to Tagir Khadshiev for the contribution.v2.3.1Compare Source
v2.3.0Compare Source
htmlparser2to new major version^6.0.0. Thanks to Bogdan Chadkin for the contribution.v2.2.0Compare Source
telto the defaultallowedSchemes. Thanks to Arne Herbots for this contribution.v2.1.2Compare Source
v2.1.1Compare Source
allowedClasseswith an'*'wildcard selector. Thanks to Clemens Damke for this contribution.v2.1.0Compare Source
supadded to the default allowed tags list. Thanks to Julian Lam for the contribution.allowedTagsREADME documentation. Thanks to Marco Arduini for the contribution.v2.0.0Compare Source
nestingLimitoption added.is-plain-objectpackage with named export. Thanks to Bogdan Chadkin for the contribution.postcsspackage and drop Node 11 and Node 13 support (enforced by postcss).Backwards compatibility breaks:
allowedTagsarray was updated significantly. This mostly added HTML tags to be more comprehensive by default. You should review your projects and consider theallowedTagsdefaults if you are not already overriding them.v1.27.5Compare Source
v1.27.4Compare Source
Array.prototype.includes, replacing it withArray.prototype.indexOf.v1.27.3Compare Source
transformTagswith outtextFilter. Thanks to Andrzej Porebski for the help with a failing test.v1.27.2Compare Source
srcsetwithparse-srcset. Thanks to Massimiliano Mirra for the contribution.v1.27.1Compare Source
xtendpackage with nativeObject.assign.v1.27.0Compare Source
allowedIframeDomainsoption. This works similar toallowedIframeHostnames, where you would set it to an array of web domains. It would then permit any hostname on those domains to be used in iframesrcattributes. Thanks to Stanislav Kravchenko for the contribution.v1.26.0Compare Source
optionelement to the defaultnonTextTagsArrayof tags with contents that aren't meant to be displayed visually as text. This can be overridden with thenonTextTagsoption.v1.25.0Compare Source
enforceHtmlBoundaryoption to process code bounded by thehtmltag, discarding any code outside of those tags.styleandscripttags are allowed, as they are inherently vulnerable to being used in XSS attacks. That warning can be disabled by including the optionallowVulnerableTags: trueso this choice is knowing and explicit.v1.24.0Compare Source
disallowedTagsMode: 'escape'set. Thanks to Thiago Negri for the contribution.abbrto the defaultallowedTagsfor better accessibility support. Thanks to Will Farrell for the contribution.mediaChildrenproperty to theframeobject in custom filters. This allows you to check for links or other parent tags that contain self-contained media to prevent collapse, regardless of whether there is also text inside. Thanks to axdg for the initial implementation and Marco Arduini for a failing test contribution.v1.23.0Compare Source
sideEffects: falseon package.json to allow module bundlers like webpack tree-shake this module and all the dependencies from client build. Thanks to Egor Voronov for the contribution.tagName(HTML element name) as a second parameter passed totextFilter. Thanks to Slava for the contribution.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.