Packages

jsdom

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

Upgrading jsdom From 16.2.2 to 16.7.0

8 releases in betweenevery note read

Other targets from 16.2.2Latest31.0.1
0
changes to make
0
advisories fixed
9
new
43
fixes

Release by release

  1. 16.7.0

    1 Aug 20213 new · 1 fix
    • New

      Added AbortSignal.abort().

    • New

      Added dummy x and y properties to the return value of getBoundingClientRect().

    • New

      Implemented wrapping for textareaEl.value if the wrap="" attribute is specified.

    • Fixed

      Fixed some bad cascade computation in getComputedStyle().

  2. 16.6.0

    23 May 20211 new · 1 fix
    • New

      Added parentNode.replaceChildren().

    • Fixed

      Fixed jsdom's handling of when code running inside the jsdom throws null or undefined as an exception.

  3. 16.5.3

    11 Apr 20211 fix
    • Fixed

      Fixed infinite recursion when using MutationObservers to observe elements inside a MutationObserver callback.

  4. 16.5.2

    28 Mar 202112 fixes
    • Fixed

      Fixed Access-Control-Allow-Headers: * to work with XMLHttpRequest.

    • Fixed

      Fixed xhr.response to strip any leading BOM when xhr.responseType is "json".

    • Fixed

      Fixed new Text() and new Comment() constructors to properly set the resulting node's ownerDocument.

    • Fixed

      Fixed customElements.whenDefined() to resolve its returned promise with the custom element constructor, per recent spec updates.

  5. 16.5.1

    13 Mar 20212 fixes
    • Fixed

      Fixed a regression that broke customElements.get() in v16.5.0.

    • Fixed

      Fixed window.event to have a setter which overwrites the window.event property with the given value, per the specification. This fixes an issue where after upgrading to jsdom v16.5.0 you would no longer be able to set a global variable named event in the jsdom context.

  6. 16.5.0

    7 Mar 20213 new · 12 fixes
    • New

      Added window.queueMicrotask().

    • New

      Added window.event.

    • New

      Added inputEvent.inputType.

    • Fixed

      Fixed the URL of about:blank iframes. Previously it was getting set to the parent's URL.

  7. 16.4.0

    8 Aug 20201 new · 9 fixes
    • New

      Added a not-implemented warning if you try to use the second pseudo-element argument to getComputedStyle(), unless you pass a ::part or ::slotted pseudo-element, in which case we throw an error per the spec.

    • Fixed

      Fixed form.elements to respect the form="" attribute, so that it can contain non-descendant form controls.

    • Fixed

      Fixed el.focus() to do nothing on disconnected elements.

    • Fixed

      Fixed el.focus() to work on SVG elements.

  8. 16.3.0

    10 Jul 20201 new · 5 fixes
    • New

      Added firing of focusin and focusout when using el.focus() and el.blur().

    • Fixed

      Fixed elements with the contenteditable="" attribute to be considered as focusable.

    • Fixed

      Fixed window.NodeFilter to be per-Window, instead of shared across all Windows.

    • Fixed

      Fixed edge-case behavior involving use of objects with handleEvent properties as event listeners.

    • Fixed

      Fixed a second failing image load sometimes firing a load event instead of an error event, when the canvas package is installed.

    • Fixed

      Fixed drawing an empty canvas into another canvas.

5 other lines we could not sort, mostly version bumps
  • Changed newline normalization in <textarea>s according to recent HTML Standard updates.

    16.7.0
  • Removed the dependency on the deprecated request package, in the process fixing several issues with the XMLHttpRequest implementation around header processing. Special thanks to vegardbb for completing this months-long effort!

    16.6.0
  • On Node.js v14.6.0+ where WeakRefs are available, fixed NodeIterator to no longer stop working when more than ten NodeIterator instances are created, and to use less memory due to inactive NodeIterators sticking around.

    16.5.2
  • Removed ondragexit from Window and friends, per a spec update.

    16.5.0
  • Improved the performance of repeated access to el.tagName, which also indirectly improves performance of selector matching and style computation.

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