Packages

jsdom

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

Upgrading jsdom From 11.6.1 to 11.12.0

7 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 11.6.1Latest31.0.1
0
changes to make
0
advisories fixed
11
new
14
fixes

Release by release

  1. 11.12.0

    27 Jul 20182 new · 1 fix
    • New

      Added window.localStorage, window.sessionStorage, and StorageEvent support. These are currently only stored in-memory; file an issue if you need persistent (on-disk) storage capability so we can discuss adding that. This feature includes the new storageQuota option for controlling how much can be stored.

    • New

      Added element.closest().

    • Fixed

      Fixed the old API in Node.js v10 to not throw, when given input that is not a valid file path (such as a typical HTML string).

  2. 11.11.0

    23 May 20183 new · 4 fixes
    • New

      Added node.getRootNode().

    • New

      Added label.control.

    • New

      Added el.labels for form control elements.

    • Fixed

      Fixed the contentType of Documents created through <iframe>s.

    • Fixed

      Fixed the contentType and origin of Documents created through document.implementation.createDocument().

    • Fixed

      Fixed sourceEl.srcset to return the value of the srcset="" attribute, instead of the cite="" attribute.

    • Fixed

      Fixed node.normalize() to not modify non-Text nodes.

  3. 11.10.0

    30 Apr 20181 new · 1 fix
    • New

      Added event.srcElement and event.returnValue.

    • Fixed

      Fixed XMLHttpRequest to correctly set the User-Agent header, and set it on CORS preflight requests.

  4. 11.9.0

    23 Apr 20181 new · 3 fixes
    • New

      Added node.lookupPrefix(), node.lookupNamespaceURI() and node.isDefaultNamespace().

    • Fixed

      Fixed the cloning of Documents; previously it would not clone all of the appropriate state, and would sometimes add an extra document type node.

    • Fixed

      Fixed various edge cases in the textContent and nodeValue properties.

    • Fixed

      Fixed canvas.toBlob() to properly pass through the JPEG quality argument, instead of always passing zero to node-canvas.

  5. 11.8.0

    16 Apr 20182 new
    • New

      Added the full constraint validation API, i.e. willValidate, validity, validationMessage, checkValidity(), reportValidity(), and setCustomValidity(), on HTMLButtonElement, HTMLFieldSetElement, HTMLFormElement, HTMLInputElement, HTMLObjectElement, HTMLOutputElement, HTMLSelectElement, and HTMLTextAreaElement.

    • New

      Added getElementById() to DocumentFragment.

  6. 11.7.0

    1 Apr 20182 new · 4 fixes
    • New

      Added the boolean return value to DOMTokenList's replace() method, per the recent spec addition.

    • New

      Added FileReader's readAsBinaryString() method, as it has been added back to the specification.

    • Fixed

      Fixed event handlers to be own properties of each Window, instead of on Window.prototype.

    • Fixed

      Fixed an exception that would sometimes get raised when removing an <img> element's src="" attribute.

    • Fixed

      Fixed abort events on AbortSignals to have their isTrusted set to true.

    • Fixed

      Fixed some argument conversions in XMLHttpRequest's open() method.

  7. 11.6.2

    30 Jan 20181 fix
    • Fixed

      Fixed another regression (since v11.6.0) in <style> elements, where they would omit a series of parsing jsdomError events for any style sheet text containing spaces.

9 other lines we could not sort, mostly version bumps
  • Changed hashchange and popstate events to no longer bubble, per a specification update.

    11.12.0
  • Upgraded cssstyle to v1.0.0, bringing along various fixes to our CSS parser and object model.

    11.12.0
  • Upgraded nwsapi to v2.0.7, bringing along various fixes to our selector engine.

    11.12.0
  • Upgraded cssstyle to v0.3.1, bringing along various fixes to our CSS parser and object model.

    11.11.0
  • Upgraded whatwg-url to v6.4.1, fixing the interaction of URL's href and searchParams properties.

    11.11.0
  • Upgraded our selector matching engine from nwsmatcher to nwsapi, bringing along extensive fixes, performance improvements, and additional selector support.

    11.11.0
  • Improved MIME type and data: URL parsing throughout jsdom, by using the new whatwg-mimetype and data-urls packages.

    11.7.0
  • Removed some unnecessary .webidl files that were included in the npm package.

    11.7.0
  • Generally improved the spec-conformance of when <style> and <script> elements are evaluated; for example, <script> elements inserted by innerHTML are no longer evaluated.

    11.6.2

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.