Packages

jsdom

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

Upgrading jsdom From 9.4.1 to 9.12.0

17 releases in betweenevery note read

Other targets from 9.4.1Latest31.0.1
  1. 9.4.1yours
  2. 9.4.2breaking
  3. 15 releases
  4. 9.12.0target

Before you upgrade

Tick each one off as you go
  • Breaking9.4.2

Release by release

  1. 9.12.0

    12 Mar 20172 new · 5 fixes
    • New

      Added the Option named constructor.

    • New

      Added support for the canvas-prebuilt npm package as an alternative to canvas.

    • Fixed

      Fixed setTimeout() and setInterval() to always return a positive integer, instead of returning 0 the first time were called.

    • Fixed

      Fixed jsdom.env() to preserve URL fragments across redirects.

    • Fixed

      Fixed optionEl.text and optionEl.value to be more spec-compliant.

    • Fixed

      Fixed event.stopImmediatePropagation() to actually stop immediate propagation, not just propagation.

    • Fixed

      Fixed clearTimeout() and clearInterval() to work correctly when using jsdom browserified.

  2. 9.11.0

    11 Feb 20171 new · 1 fix
    • New

      Added dummy properties offsetTop, offsetLeft, offsetWidth, and offsetHeight that always return 0, and offsetParent which always returns null, for all HTML elements.

    • Fixed

      Fixed various edge cases in our type conversions applied to method arguments and setters throughout the web platform APIs implemented by jsdom.

  3. 9.10.0

    4 Feb 20173 new · 2 fixes
    • New

      Added forEach, keys, values, and entries methods to NodeList.

    • New

      Added event.cancelBubble.

    • New

      Added dummy properties scrollWidth, scrollHeight, clientTop, clientLeft, clientWidth, and clientHeight that always return 0 to all elements.

    • Fixed

      Fixed the progress and readystatechange events fired by XMLHttpRequest to match recent specification changes and test updates.

    • Fixed

      Fixed element.getClientRects() to return an empty array, instead of an array containing a dummy bounding box.

  4. 9.9.1nothing new or fixed in the note

  5. 9.9.0

    19 Dec 20164 new · 6 fixes
    • New

      Added CDATASection nodes, including document.createCDATASection.

    • New

      Added node.wholeText.

    • New

      Added a setter for document.body.

    • New

      Added document.embeds, document.plugsin, and document.scripts. These were supposed to be added in 9.5.0 but were mistakenly omitted.

  6. 9.8.3

    25 Oct 20161 fix
    • Fixed

      Fixed syntax errors in Node.js v4.

  7. 9.8.2

    25 Oct 20161 fix
    • Fixed

      Fixed DOMTokenList and getElementsByClassName to only split on ASCII whitespace, not all Unicode whitespace.

  8. 9.8.1

    25 Oct 20161 fix
    • Fixed

      Fixed an error that occurred when passing no class names to getElementsByClassName, e.g. getElementsByClassName("") or getElementsByClassName(" ").

5 other lines we could not sort, mostly version bumps
  • Updated many aspects of Blob, File, and FileReader to better match the File API specification.

    9.10.0
  • Changed navigator.vendor to return "Apple Computer, Inc." instead of "Google Inc.", since we have chosen the WebKit navigator compatibility mode.

    9.10.0
  • Removed the use of array.includes to fix a compatibility issue with Node.js v4.

    9.9.1
  • Tweaked XMLHttpRequest progress event ordering slightly to better match the spec and browsers.

    9.6.0
  • Tweaked the behavior of calling event.stopPropagation and event.stopImmediatePropagation on already-dispatched events, per the latest changes to the DOM Standard.

    9.6.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.