happy-dom
21.0.4 · 20 Oct 2026MIT37.6M / weekRepositorynpmAtom feed
Upgrading happy-dom From 18.0.1 to 19.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Other targets from 18.0.1Clears its 6 advisories, Latest21.0.4
- 2
- changes to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking19.0.0
- Deprecated19.0.0
Security
7 advisories still affect 19.0.0
- Happy DOM: VM Context Escape can lead to Remote Code Executioncritical · GHSA-37j7-fg3j-429f
- Happy DOM has cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookiesmoderate · GHSA-5fpq-26gf-qwcr
- Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable codehigh · GHSA-6q6h-j7hj-3r64
Upgrading to 21.0.4 clears them.
Release by release
- Breaking
Removes support for CommonJS - By @capricorn86 in task #1730
- Deprecated
Support for CommonJS is no longer needed as Node.js v18 is deprecated and v20 and above supports loading ES modules from CommonJS using
require() - New
Adds support for the CSS pseudo selector
:scope- By @capricorn86 in task #1620
- Breaking
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.