jsdom v8.3.0 Release Notes
-
- ➕ Added image loading and decoding, when the
canvas
npm 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.currentSrc
will update themselves correctly as the image loadsload
anderror
events will fire on the<img>
element, according to how well image decoding goes.- You can draw images onto canvases, using the newly-enabled
canvasContext.drawImage
API.
- ➕ Added
canvasContext.createPattern
andcanvasContext.toBlob
, when thecanvas
npm package is installed. (lehni) - ➕ Added a basic implementation of the Page Visibility API, in particular a
document.hidden
property that always returnstrue
, and adocument.visibilityState
property that always returns"prerender"
. This is a more standard alternative to our proprietarynavigator.noUI
, which will be removed whenever we release v9.0.0. (kapouer)
- ➕ Added image loading and decoding, when the