jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
In short
1 removed3 new3 fixed1 changed
- Removed
Removed the
toString()methods on various prototypes that returned"[object ClassName]"in an attempt to fake theSymbol.toStringTagbehavior.
Release note
Added the value sanitization algorithm for password, search, tel, text, color, email, and url input types.
Added
Symbol.toStringTagto all web platform classes, so that nowObject.prototype.toString.call()works as expected on jsdom objects.Added the
select.selectedOptionsproperty.- Removed
Removed the
toString()methods on various prototypes that returned"[object ClassName]"in an attempt to fake theSymbol.toStringTagbehavior. Changed
XMLHttpRequestto pre-allocate a 1 MiB buffer, which it grows exponentially as needed, in order to avoid frequent buffer allocation and concatenation.Fixed a variety of properties that were meant to always return the same object, to actually do so.
Fixed inheritance of the
runScriptsandresourcesoptions into iframes.Fixed an uncaught exception that occurred if you called
xhr.abort()during areadystatechangeevent.
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.