jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
4.5.2 is the newest release of 4.x.
In short
1 fixed5 changed
Release note
EventTargetis now correctly in the prototype chain ofWindow.EventTargetargument validation is now correct according to the DOM Standard.DOMExceptionnow behaves more like it should per Web IDL. In particular it has a more comprehensive set of constants, and instances now havenameproperties.new Event("click")can now be dispatched.document.createEventnow behaves more like it should according to the DOM Standard: it accepts a wider range of arguments, but will throw if an invalid one is given.Fixed a regression in our browser support that required Chrome 41 as of 4.0.1; now Chrome 40 will work, as well as (in theory, although less well-tested) the latest stable versions of Firefox and IE.
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.