Packages

happy-dom

21.0.4 · 20 Oct 2026MIT37.8M / weekRepositorynpmAtom feed

Your version

15.1.0

28 Aug 2024Where it was published

15.11.7 is the newest release of 15.x.

In short

1 new

Security

Release note

:art: Features

  • Refactor internal logic related to injecting the Window context for classes that can be constructed using the "new" operator - By @capricorn86 in task #1332

  • Improves the way classes can access the Browser context internally - By @capricorn86 in task #1332

  • Refactor of the logic for EventTarget.dispatchEvent() to better handle the event phases "none", "capture", "atTarget" and "bubbling" - By @capricorn86 in task #1332

  • Adds support for HTMLInputElement.popoverTargetElement, HTMLInputElement.popoverTargetAction, HTMLButtonElement.popoverTargetElement and HTMLButtonElement.popoverTargetAction - By @capricorn86 in task #1332

  • Adds support for HTMLElement.popover - By @capricorn86 in task #1332

  • Adds support for PerformanceObserver, PerformanceEntry and PerformanceObserverEntryList - By @capricorn86 in task #1332

:construction_worker_man: Patch fixes

  • Makes it possible for a polyfill to replace NodeList[Symbol.iterator]() with Array.prototype.values() - By @capricorn86 in task #1332

  • Adds logic for canceling any request to start new async tasks while the Window is closing (e.g. using setTimeout() or fetch()) - By @capricorn86 in task #1332

  • Fixes issues with errors exiting the browser when using the setting "errorCapture" set to "processLevel" - By @capricorn86 in task #1332

    • Refactor internal logic, so that thrown errors are instances of unique error classes assigned to the Window, which makes it possible for BrowserExceptionObserver to know which Window the error originated from

  • Changes Event.composedPath() to not return the Window object if the event type is "load", which is the same behaviour as the browser - By @capricorn86 in task #1332

    • This means that "load" events will not bubble up to the Window object

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.