jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
16.7.0 is the newest release of 16.x.
In short
13 fixed1 changed
Release note
Updated
StyleSheetListfor better spec compliance; notably it no longer inherits fromArray.prototype.Fixed
requestAnimationFrame()from preventing process exit. This likely regressed in v16.1.0.Fixed
setTimeout()to no longer leak the closures passed in to it. This likely regressed in v16.1.0.Fixed infinite recursion that could occur when calling
click()on a<label>element, or one of its descendants.Fixed
getComputedStyle()to consider inlinestyle=""attributes.Fixed several issues with
<input type="number">'sstepUp()andstepDown()functions to be properly decimal-based, instead of floating point-based.Fixed various issues where updating
selectEl.valuewould not invalidate properties such asselectEl.selectedOptions.Fixed
<input>'ssrcproperty, and<ins>/<del>'sciteproperty, to properly reflect as URLs.Fixed
window.addEventLister,window.removeEventListener, andwindow.dispatchEventto properly be inherited fromEventTarget, instead of being distinct functions.Fixed errors that would occur if attempting to use a DOM object, such as a custom element, as an argument to
addEventListener.Fixed errors that would occur when closing a window with outstanding requests to
data:URLs.Fixed sporadic issues with the value of
<input type="month">that could occur in some time zones and for some times.Fixed
document.implementation.createDocument()to return anXMLDocument, instead of aDocument.Fixed running jsdom in a browser to detect globals more reliably.
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.