Packages

dompurify

3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed

Your version

3.4.10

12 Jun 2026Where it was published

3.5.0 is the newest release of 3.x.

In short

1 new9 changed

Security

Release note

  • Refactored codebase for clarity: extracted the public type declarations into types.ts

  • Decomposed the three largest sanitizer functions into focused helpers

  • Removed duplicated defaults and dead branches, consolidated SAFE_FOR_TEMPLATES scrubbing into single shared path

  • Improved per-node performance by hoisting the mXSS probe regexes and testing textContent before innerHTML

  • Added a deterministic micro-benchmark harness (npm run bench) with a --compare mode

  • Reduced CI cost by running the full three-engine browser suite once per PR

  • Refreshed the demos/ folder so every demo runs again, and added a SVG-via-<img> demo

  • Documented the bench and test:happydom scripts in the README

  • Completed the Attack Classes & Bypass History wiki page

  • Bumped several dependencies where possible

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.