Packages

jsdom

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

Your version

6.2.0

25 Aug 2015Where it was published

6.5.1 is the newest release of 6.x.

In short

1 new3 fixed1 changed

Release note

  • Added a full-featured, spec-compliant Element.prototype.classList, closing out a three-year old issue!

  • Made virtualConsole.sendTo(console) forward "jsdomError"s to console by calling console.error. This can be turned off by doing virtualConsole.sendTo(console, { omitJsdomErrors: true }).

  • Fixed errors when trying to parse invalid doctype declarations, like <!DOCTYPE>.

  • Fixed spurious "jsdomError"s that were emitted after calling window.close().

  • Fixed the DOMSubtreeModified event to fire in more cases. Note that our mutation events implementation remains incomplete, and will eventually be removed (in a major release) once we implement mutation observers.

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.