Packages

jsdom

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

Upgrading jsdom From 4.0.3 to 4.5.2

9 releases in betweennotes for 8

Other targets from 4.0.3Latest31.0.1
  1. 4.0.3yours
  2. 8 releases
  3. 4.5.2target
?
changes to make
0
advisories fixed
5+
new
2+
fixes

Counted from 8 of 9 release notes. Advisories are counted from the advisory database, in full.

Release by release

  1. 4.5.1 – 4.5.22 releases, nothing new or fixed; 1 without a note

  2. 4.5.0

    16 Apr 20151 new
    • New

      Added document.currentScript.

  3. 4.4.0nothing new or fixed in the note

  4. 4.3.0

    10 Apr 20151 new
    • New

      Added defaultPrevented property to Event instances, reflecting whether ev.preventDefault() has been called.

  5. 4.2.0

    8 Apr 20151 new
    • New

      Added a second parameter to UIEvent, MouseEvent, and MutationEvent, which for now just behaves the same as that for Event.

  6. 4.1.0

    28 Mar 20151 new
    • New

      Added a second parameter to the Event constructor, which allows you to set the bubbles and cancelable properties.

  7. 4.0.5

    24 Mar 20151 new · 1 fix
    • New

      Added HTMLUnknownElement and fix the parser/document.createElement to create those instead of HTMLElement for unknown elements.

    • Fixed

      Fixed issues with named and indexed properties on window, as well as window.length, with regard to <frame>s/<iframe>s being added and removed from the document.

  8. 4.0.4

    20 Mar 20151 fix
    • Fixed

      Fixed parsing of doctypes by relying on the information provided by the html parser if possible.

5 other lines we could not sort, mostly version bumps
  • Removed unnecessary browserify dependency that was erroneously included in 4.5.0.

    4.5.1
  • All resources are now loaded with the request package, which means that e.g. GZIPped resources will be properly uncompressed, redirects will be followed, and more. This was previously the case only for URLs passed directly to jsdom.env, and not for sub-resources inside the resulting page.

    4.4.0
  • Made the click behavior for radio buttons and checkboxes work when doing el.dispatchEvent(clickEvent), not just when doing el.click().

    4.3.0
  • Moved the click() method from HTMLInputElement.prototype to HTMLElement.prototype, per the latest spec.

    4.3.0
  • Made the click() method trigger a MouseEvent instead of just an Event.

    4.3.0

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.