Packages

jsdom

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

Your version

12.2.0

8 Oct 2018Where it was published

In short

2 new2 fixed1 changed

Release note

  • Added support for shadow DOM! This includes shadow roots, slots, composed events, and more.

  • Added the element.toggleAttribute() method.

  • Fixed XMLHttpRequest sometimes sending an empty request body after a preflight request.

  • Fixed the formElement.form property to use an algorithm that also checks the form="" attribute, instead of always looking for the closest ancestor <form> element.

  • Stopped swallowing errors when the canvas or canvas-prebuilt packages were installed, but failed to load.

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.