jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
8.5.0 is the newest release of 8.x.
In short
5 new
Release note
Added image loading and decoding, when the
canvasnpm package is installed (lehni). In practice, this means that if you enable fetching"img"external resources, then:img.naturalWidth,img.naturalHeight,img.width,img.height,img.complete, andimg.currentSrcwill update themselves correctly as the image loadsloadanderrorevents will fire on the<img>element, according to how well image decoding goes.You can draw images onto canvases, using the newly-enabled
canvasContext.drawImageAPI.
Added
canvasContext.createPatternandcanvasContext.toBlob, when thecanvasnpm package is installed.Added a basic implementation of the Page Visibility API, in particular a
document.hiddenproperty that always returnstrue, and adocument.visibilityStateproperty that always returns"prerender". This is a more standard alternative to our proprietarynavigator.noUI, which will be removed whenever we release v9.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.