Packages

jsdom

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

Your version

2.0.0

major28 Dec 2014Where it was published

In short

1 fixed2 changed

Release note

This release is largely a refactoring release to remove the defunct concept of "levels" from jsdom, in favor of the living standard model that browsers follow. Although the code is still organized that way, that's now noted as a historical artifact. The public API changes while doing so were fairly minimal, but this sets the stage for a cleaner jsdom code structure going forward.

  • Removed: jsdom.level, and the level option from jsdom.jsdom.

  • Change: The nonstandard Element.prototype.matchesSelector method was replaced with the standard Element.prototype.matches.

  • querySelector correctly coerces its argument to a string (1.2.2 previously fixed this for querySelectorAll).

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.