Repository navigation
fix(frontend): fix dompurify.sanitize import - #6096
Merged
Merged
Conversation
The update to dompurify 3.2.4 broke the import of dompurify.sanitize, which now fails with a TypeScript error (likely related to the introduction of type definitions in 3.2.0). Using the DOMPurify default export fixes the issue. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6096 +/- ##
============================================
+ Coverage 57.66% 84.88% +27.22%
============================================
Files 418 150 -268
Lines 12058 4479 -7579
Branches 1007 545 -462
============================================
- Hits 6953 3802 -3151
+ Misses 5048 638 -4410
+ Partials 57 39 -18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ErikMichelson
self-requested a review
July 7, 2025 22:58
ErikMichelson
approved these changes
Jul 7, 2025
Member
There was a problem hiding this comment.
Thanks for your contribution! 🎉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Component/Part
Frontend
Description
The update to dompurify 3.2.4 (902abf7) broke the import of dompurify.sanitize, which now fails with a TypeScript error (likely related to the introduction of type definitions in 3.2.0). Using the DOMPurify default export fixes the issue.
The issue is reproducible both with the local development server and with the published frontend container; without this fix, the frontend is completely broken.
Steps
made sure that:
masterfor 1.x & docs,developfor 2.xRelated Issue(s)