Packages

happy-dom

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

Your version

18.0.0

major10 Jun 2025Where it was published

18.0.1 is the newest release of 18.x.

In short

1 breaking

  • Breaking

    Makes the types for Happy DOM strict - By @capricorn86 in task #1154

Security

Release note

:bomb: Breaking Changes

  • Breaking

    Makes the types for Happy DOM strict - By @capricorn86 in task #1154

    • This makes it possible to use the option skipLibCheck set to "false" in the typescript configuration for projects with a strict configuration

    • This change has resulted in that some types has changed and is therefore considered as a breaking change

  • Breaking

    BrowserContext.close() now throws an error when trying to close the default context of a browser - By @capricorn86 in task #1154

:art: Features

  • Adds support for Browser.closed, BrowserContext.closed, BrowserPage.closed and BrowserFrame.closed - By @capricorn86 in task #1154

  • Adds support for VirtualConsolePrinter.close() and VirtualConsolePrinter.closed - By @capricorn86 in task #1154

  • Adds support for CookieContainer.clearCookies() - By @capricorn86 in task #1154

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.