Packages

happy-dom

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

Your version

12.0.0

major15 Sep 2023Where it was published

12.10.3 is the newest release of 12.x.

In short

1 breaking2 new

  • Breaking

    Changes the default user agent. The default user agent will now be Mozilla/5.0 (X11; {process.platform} {process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/{packageVersion}.

Security

Release note

:bomb: Breaking Changes

  • Breaking

    Changes the default user agent. The default user agent will now be Mozilla/5.0 (X11; {process.platform} {process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/{packageVersion}.

:art: Features

  • It is now possible to pass user agent as an option to the Window constructor or by setting Window.happyDOM.settings.navigator.userAgent.

  • React will no longer output the message Download the React DevTools for a better development experience to the console when using the default user agent. It was previously detected as a supported browser.

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.