jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
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 theleveloption fromjsdom.jsdom.Change: The nonstandard
Element.prototype.matchesSelectormethod was replaced with the standardElement.prototype.matches.querySelectorcorrectly coerces its argument to a string (1.2.2 previously fixed this forquerySelectorAll).
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.