jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 4.0.5 to 4.5.2
7 releases in betweennotes for 6
- ?
- changes to make
- 0
- advisories fixed
- 4+
- new
- ?
- fixes
Counted from 6 of 7 release notes. Advisories are counted from the advisory database, in full.
Release by release
4.5.1 – 4.5.22 releases, nothing new or fixed; 1 without a note
- New
Added
document.currentScript.
- New
4.4.0nothing new or fixed in the note
- New
Added
defaultPreventedproperty toEventinstances, reflecting whetherev.preventDefault()has been called.
- New
- New
Added a second parameter to
UIEvent,MouseEvent, andMutationEvent, which for now just behaves the same as that forEvent.
- New
- New
Added a second parameter to the
Eventconstructor, which allows you to set thebubblesandcancelableproperties.
- New
5 other lines we could not sort, mostly version bumps
- 4.5.1
Removed unnecessary browserify dependency that was erroneously included in 4.5.0.
- 4.4.0
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.3.0
Made the click behavior for radio buttons and checkboxes work when doing
el.dispatchEvent(clickEvent), not just when doingel.click(). - 4.3.0
Moved the
click()method fromHTMLInputElement.prototypetoHTMLElement.prototype, per the latest spec. - 4.3.0
Made the
click()method trigger aMouseEventinstead of just anEvent.
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.