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
- 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
- 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(omittingrequestPermission()),DeviceOrientationEvent(omittingrequestPermission()),PointerEvent,PromiseRejectionEvent, andTransitionEvent. - New
Added
movementXandmovementYtoMouseEvent. (These are from the Pointer Lock specification, the rest of which is not implemented.) - New
Added
customElements.getName().
- Breaking
13 other lines we could not sort, mostly version bumps
- 27.0.0
"jsdomError"events are now documented, with specifictypeproperties and other properties that depend on the type. - 27.0.0
sendTo()was renamed toforwardTo(). - 27.0.0
The
jsdomErrorsoption toforwardTo()can be used to control which errors are sent to the Node.js console. This replaces the previousomitJSDOMErrorsboolean option. - 27.0.0
"jsdomError"s for failedXMLHttpRequestfetches 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
nwsapito@asamuzakjp/dom-selector, closing over 20 selector-related bugs. - 27.0.0
Upgraded
tough-cookie, which now considers URLs likehttp://localhost/to be secure contexts (per the spec), and thus will returnSecure-flagged cookies for such URLs. - 27.0.0
Upgraded
cssstyle, which brings along many improvements and fixes to theCSSStyleDeclarationobject 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 aPointerEventinstead of aMouseEvent.
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.