-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
fix: update dompurify to ^3.2.1
and remove @types/dompurify
#6079
fix: update dompurify to ^3.2.1
and remove @types/dompurify
#6079
Conversation
As [DOMPurify 3.2.0 added TypeScript types][1], this means that we can remove our dependency on the `@types/dompurify` package. [DOMPurify 3.2.0 also adds the `HTML_INTEGRATION_POINTS` option][2], which adds back support for `<foreignObject>`, [which broke in DOMPurify 3.1.7.][3] [1]: https://github.com/cure53/DOMPurify/releases/tag/3.2.0 [2]: cure53/DOMPurify@e4caa67 [3]: mermaid-js@de2c05c
🦋 Changeset detectedLatest commit: fe3cffb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
commit: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6079 +/- ##
=======================================
Coverage 4.49% 4.49%
=======================================
Files 382 382
Lines 53914 53913 -1
Branches 621 621
=======================================
Hits 2425 2425
+ Misses 51489 51488 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks @aloisklink!
📑 Summary
Update DOMPurify to
^3.2.1
.As DOMPurify 3.2.0 added TypeScript types, this means that we can remove our dependency on the
@types/dompurify
package.DOMPurify 3.2.0 also adds the
HTML_INTEGRATION_POINTS
option, which adds back support for<foreignObject>
, which broke in DOMPurify 3.1.7. (seeFixes #6078, #5904 (comment)
📏 Design Decisions
N/A
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.