Packages

jsdom

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

Your version

6.4.0

13 Sep 2015Where it was published

6.5.1 is the newest release of 6.x.

In short

3 new2 changed

Release note

  • Added jsdom.nodeLocation(node) to get the location within the source text of a given node.

  • Added jsdom.reconfigureWindow(window, { top }) to allow changing the value of a window's top property.

  • Added the element argument to the custom resource loader, so you can customize resource loads depending on which element loaded them.

  • Updated getElementsByClassName to match the spec. It now correctly splits on whitespace to try to find elements with all the given classes; it returns a HTMLCollection instead of a NodeList; and it memoizes the result.

  • Updated NodeList and HTMLCollection to match the spec. The most noticable change is that HTMLCollection no longer inherits from NodeList.

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.