Packages

jsdom

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

Upgrading jsdom From 8.0.0 to 8.5.0

11 releases in betweenevery note read

Other targets from 8.0.0Latest31.0.1
  1. 8.0.0yours
  2. 10 releases
  3. 8.5.0target

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.

  6. 8.2.0

    28 Mar 20165 new · 3 fixes
    • New

      change and input events now fire appropriately

    • New

      The "click in progress" flag is implemented, so you cannot click while a click is in progress

    • New

      Canceling a click event appropriately resets radio buttons and checkboxes

    • New

      Added a strictSSL top-level option to govern all requests jsdom makes.

  7. 8.1.0

    1 Mar 20164 new · 9 fixes
    • New

      Added attr.nodeName, which was recently re-added to the spec.

    • New

      Added click-proxying behavior from <label>s to their labeled form elements.

    • New

      Added a setter for element.classList per recent spec changes (it forwards to element.classList.value).

    • New

      Added element.getAttributeNames(). (spec addition)

  8. 8.0.4

    18 Feb 20161 fix
    • Fixed

      Fixed the this value when you pass a { handleEvent() { ... } } object to addEventListener.

7 other lines we could not sort, mostly version bumps
  • Updated our XMLHttpRequest implementation with a variety of fixes and features, including preliminary CORS support.

    8.2.0
  • XHTML frames and iframes are now parsed as XML instead of HTML.

    8.2.0
  • Updated DOMTokenList to have a value property per recent spec changes; its toString serialization also changed slightly.

    8.1.0
  • Updated tc.headers to be a DOMTokenList that simply reflects the headers attribute; previously it was a string, with its computation doing some weird stuff.

    8.1.0
  • Removed the "keyevents" alias for "keyboardevent" when using document.createEvent, per recent spec changes.

    8.1.0
  • Updated cssstyle minimum version to ensure all jsdom installs (not just fresh ones) get the benefit of cssstyle's recently-better padding and margin parsing/CSSOM.

    8.0.3
  • Improved our document.activeElement implementation to be a bit smarter; we still don't have full focus/blur/active element semantics, but at least now it falls back to the <body> element when the active element is removed from the document or when no element has been focused yet.

    8.0.2

1 internal line (docs, tests, tooling) left out.

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.