Packages

jsdom

31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed

Upgrading jsdom From 26.1.0 to 27.0.0

1 release in betweenevery note read

Other targets from 26.1.0Latest31.0.1
  1. 26.1.0yours
  2. 27.0.0target
1
change to make
0
advisories fixed
3
new
7
fixes

Before you upgrade

Tick each one off as you go
  • Breaking27.0.0

Release by release

  1. 27.0.0

    Migration needed13 Sep 20253 new · 7 fixes
    • Breaking

      Node.js v20 is now the minimum supported version.

    • New

      Added a variety of event constructors, even though we do not implement their associated specifications or ever fire them: BeforeUnloadEvent, BlobEvent, DeviceMotionEvent (omitting requestPermission()), DeviceOrientationEvent (omitting requestPermission()), PointerEvent, PromiseRejectionEvent, and TransitionEvent.

    • New

      Added movementX and movementY to MouseEvent. (These are from the Pointer Lock specification, the rest of which is not implemented.)

    • New

      Added customElements.getName().

13 other lines we could not sort, mostly version bumps
  • "jsdomError" events are now documented, with specific type properties and other properties that depend on the type.

    27.0.0
  • sendTo() was renamed to forwardTo().

    27.0.0
  • The jsdomErrors option to forwardTo() can be used to control which errors are sent to the Node.js console. This replaces the previous omitJSDOMErrors boolean option.

    27.0.0
  • "jsdomError"s for failed XMLHttpRequest fetches are no longer emitted.

    27.0.0
  • The values that are printed when forwarding "jsdomError"s to the Node.js console are streamlined.

    27.0.0
  • Switched our CSS selector engine from nwsapi to @asamuzakjp/dom-selector, closing over 20 selector-related bugs.

    27.0.0
  • Upgraded tough-cookie, which now considers URLs like http://localhost/ to be secure contexts (per the spec), and thus will return Secure-flagged cookies for such URLs.

    27.0.0
  • Upgraded cssstyle, which brings along many improvements and fixes to the CSSStyleDeclaration object and its properties.

    27.0.0
  • Updated the user agent stylesheet to be derived from the HTML Standard, instead of from an old revision of Chromium.

    27.0.0
  • Changed element.click() to fire a PointerEvent instead of a MouseEvent.

    27.0.0

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.