Packages

@happy-dom/jest-environment

21.0.4 · 20 Oct 2026MIT269.4k / weekRepositoryHomepagenpmAtom feed

Upgrading @happy-dom/jest-environment From 2.1.2 to 2.55.0

103 releases in betweennotes for 54

Reading releases, release notes and advisories…

Other targets from 2.1.2Latest21.0.4
  1. 2.1.2yours
  2. 95 releases
  3. 2.50.0security
  4. 6 releases
  5. 2.55.0target
2+
changes to make
0
advisories fixed
83+
new
8+
fixes

Counted from 54 of 103 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated2.47.0
  • Deprecated2.8.0

Security

  • Updates dependencies to fix security vulnerabilities.

    2.50.0

Release by release

  1. 2.55.0

    31 Mar 20222 new
    • New

      Adds support for HTMLBaseElement.

    • New

      Adds support for Node.baseURI.

  2. 2.54.0

    31 Mar 20221 new
    • New

      Adds support for HTMLInputElement.setCustomValidity(), HTMLInputElement.reportValidity() and HTMLInputElement.validationMessage.

  3. 2.53.1

    31 Mar 20221 new
    • New

      Adds support for sending in other values than strings as tag name to Document.createElement() and Document.createElementNS().

  4. 2.53.0

    31 Mar 20222 new · 1 fix
    • New

      Adds support for setting and deleting values in the HTMLElement.dataset object. The changes will be reflected to the attributes of the element.

    • New

      Improves performance of Element.getAttributeNS() which is used in many places within Happy DOM.

    • Fixed

      Fixes issue with dataset keys not being in lower camel case.

  5. 2.52.0

    30 Mar 20221 new
    • New

      Adds support for Node.ELEMENT_NODE, Node.TEXT_NODE etc. on the instance. It it currently only available statically.

  6. 2.51.1no release note

  7. 2.51.0

    29 Mar 20224 new · 1 fix
    • New

      Adds support for Window.Headers, Window.Response and Window.Request.

    • New

      Uses the "URLSearchParams" class from the Node "url" package instead of a custom implementation.

    • New

      Adds support for Blob.text().

    • New

      Improves the async task manager used when calling Window.happyDOM.whenAsyncComplete().

    • Fixed

      Fixes problem with.constructor not being the same as the Array class.

  8. 2.50.0

    Security fix22 Mar 20221 fix
    • Security

      Updates dependencies to fix security vulnerabilities.

    • Fixed

      Fixes issue with objects and functions not having the same constructor as window.Object and window.Function in a virtual environment.

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.