Packages

jsdom

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

Your version

4.0.2

5 Mar 2015Where it was published

4.5.2 is the newest release of 4.x.

In short

1 fixed5 changed

Release note

  • EventTarget is now correctly in the prototype chain of Window.

  • EventTarget argument validation is now correct according to the DOM Standard.

  • DOMException now behaves more like it should per Web IDL. In particular it has a more comprehensive set of constants, and instances now have name properties.

  • new Event("click") can now be dispatched.

  • document.createEvent now 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.