jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
5.6.1 is the newest release of 5.x.
In short
2 new3 fixed2 changed
Release note
Implemented much of the
ParentNodemixin (Joris-van-der-Wel):Moved
childrenfromNodetoParentNode, i.e., made it available onDocument,DocumentFragment, andElement, but not other types of nodes.Made
childrenaHTMLCollectioninstead of aNodeList.Implemented
firstElementChild,lastElementChild, andchildElementCount.
Implemented the
outerHTMLsetter.Fixed the
outerHTMLgetter for<select>and<form>.Fixed various issues with window-less documents, so that they no longer give incorrect results or blow up in strange ways. You can create such documents with e.g.
document.implementation.createHTMLDocument().Fixed relative stylesheet resolution when using
@import.
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.