Packages

jsdom

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

Upgrading jsdom From 16.5.1 to 16.7.0

4 releases in betweenevery note read

Other targets from 16.5.1Latest31.0.1
0
changes to make
0
advisories fixed
4
new
15
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.

3 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

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.