- 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_TEMPLATESscrubbing into single shared path - Improved per-node performance by hoisting the mXSS probe regexes and testing
textContentbeforeinnerHTML - Added a deterministic micro-benchmark harness (
npm run bench) with a--comparemode - 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:happydomscripts in the README - Completed the Attack Classes & Bypass History wiki page
- Bumped several dependencies where possible