Packages

jsdom

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

Your version

16.2.2

30 Mar 2020Where it was published

16.7.0 is the newest release of 16.x.

In short

13 fixed1 changed

Release note

  • Updated StyleSheetList for better spec compliance; notably it no longer inherits from Array.prototype.

  • Fixed requestAnimationFrame() from preventing process exit. This likely regressed in v16.1.0.

  • Fixed setTimeout() to no longer leak the closures passed in to it. This likely regressed in v16.1.0.

  • Fixed infinite recursion that could occur when calling click() on a <label> element, or one of its descendants.

  • Fixed getComputedStyle() to consider inline style="" attributes.

  • Fixed several issues with <input type="number">'s stepUp() and stepDown() functions to be properly decimal-based, instead of floating point-based.

  • Fixed various issues where updating selectEl.value would not invalidate properties such as selectEl.selectedOptions.

  • Fixed <input>'s src property, and <ins>/<del>'s cite property, to properly reflect as URLs.

  • Fixed window.addEventLister, window.removeEventListener, and window.dispatchEvent to properly be inherited from EventTarget, instead of being distinct functions.

  • Fixed errors that would occur if attempting to use a DOM object, such as a custom element, as an argument to addEventListener.

  • Fixed errors that would occur when closing a window with outstanding requests to data: URLs.

  • Fixed sporadic issues with the value of <input type="month"> that could occur in some time zones and for some times.

  • Fixed document.implementation.createDocument() to return an XMLDocument, instead of a Document.

  • Fixed running jsdom in a browser to detect globals more reliably.

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.