happy-dom
21.0.4 · 20 Oct 2026MIT37.8M / weekRepositorynpmAtom feed
Upgrading happy-dom From 14.6.2 to 14.12.3
20 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
5 advisories still affect 14.12.3
- 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 allows for server side code to be executed by a <script> tagcritical · GHSA-96g7-g7g9-jxw8
Upgrading to 21.0.0 clears them.
Release by release
- Fixed
Fixes bug related to
Node.insertBefore()handling the scenario where the reference node equals the new node to be added incorrectly - By @juandiegombr in task #1429
- Fixed
- Fixed
Fixes problem related to the cookie container using the wrong path when caching cookies - By @matcic in task #1455
- Fixed
- Fixed
Fixes problem related to React click handler with
preventDefaultnot preventing navigation - By @amitdahan in task #1464
- Fixed
- New
Makes it possible to configure timer settings to improve performance - By @capricorn86 in task #1451
- New
- Fixed
Fixes bug where
waitUntilComplete()was resolved too early when many micro tasks are used - By @capricorn86 in task #1447
- Fixed
14.11.3nothing new or fixed in the note
- New
Adds fix to update CSS rules in
HTMLStyleElementsheet when editing the data of a childTextnode - By @capricorn86 in task #1445
- New
- New
Adds a temporary fix where
waitUntilComplete()will hook into promises returned byconnectedCallback()until Happy DOM has support for waiting for dynamic imports - By @capricorn86 in task #1442
- New
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.