Packages

jsdom

31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed

Upgrading jsdom From 8.2.0 to 8.5.0

5 releases in betweenevery note read

Other targets from 8.2.0Latest31.0.1

Before you upgrade

Tick each one off as you go
  • Breaking8.5.0
  • Breaking8.5.0

Release by release

  1. 8.5.0

    Migration needed1 May 20161 new · 1 fix
    • Breaking

      Removed iframe.sandbox property, since it was not implemented and simply crashed when used.

    • Breaking

      Removed element.sourceIndex property, since it was nonstandard (Internet Explorer only).

    • New

      Added encoding handling

    • Fixed

      Fixed setting proxied inline event handlers, such as doc.body's onload="" attribute, for documents that do not have a browsing context.

  2. 8.4.1

    28 Apr 20161 fix
    • Fixed

      Fixed an issue where setting selected on an multi-select would clear all other selectedness.

  3. 8.4.0

    15 Apr 20161 new · 2 fixes
    • New

      Added an implementation of the TreeWalker class (and document.createTreeWalker).

    • Fixed

      Fixed a few minor bugs in URL parsing and the URL API, by upgrading to whatwg-url v2.0.1.

    • Fixed

      Fixed a few issues with generated files in the published package, which seem to have impacted webpack users.

  4. 8.3.1

    10 Apr 20161 fix
    • Fixed

      Fixed an issue where if you modified Object.prototype, spurious attributes would show up on your jsdom nodes.

  5. 8.3.0

    3 Apr 20165 new
    • New

      img.naturalWidth, img.naturalHeight, img.width, img.height, img.complete, and img.currentSrc will update themselves correctly as the image loads

    • New

      load and error events will fire on the <img> element, according to how well image decoding goes.

    • New

      You can draw images onto canvases, using the newly-enabled canvasContext.drawImage API.

    • New

      Added canvasContext.createPattern and canvasContext.toBlob, when the canvas npm package is installed.

    • New

      Added a basic implementation of the Page Visibility API, in particular a document.hidden property that always returns true, and a document.visibilityState property that always returns "prerender". This is a more standard alternative to our proprietary navigator.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.