jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
In short
1 new6 fixed3 changed
Release note
Added
blob.text(),blob.arrayBuffer(), andblob.bytes()methods.Improved
getComputedStyle()to account for CSS specificity when multiple rules apply.Improved synchronous
XMLHttpRequestperformance by using a persistent worker thread, avoiding ~400ms of setup overhead on every synchronous request after the first one.Improved performance of
node.getRootNode(),node.isConnected, andevent.dispatchEvent()by caching the root node of document-connected trees.Fixed
getComputedStyle()to correctly handle!importantpriority.Fixed
document.getElementById()to return the first element in tree order when multiple elements share the same ID.Fixed
<svg>elements to no longer incorrectly proxy event handlers to theWindow.Fixed
FileReaderevent timing andfileReader.resultstate to more closely follow the spec.Fixed a potential hang when synchronous
XMLHttpRequestencountered dispatch errors.Fixed compatibility with environments where Node.js's built-in
fetch()has been used before importing jsdom, by working around undici v6/v7 incompatibilities.
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.