jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
In short
2 new5 fixed
Release note
Added the
Optionnamed constructor.Added support for the
canvas-prebuiltnpm package as an alternative tocanvas.Fixed
setTimeout()andsetInterval()to always return a positive integer, instead of returning0the first time were called.Fixed
jsdom.env()to preserve URL fragments across redirects.Fixed
optionEl.textandoptionEl.valueto be more spec-compliant.Fixed
event.stopImmediatePropagation()to actually stop immediate propagation, not just propagation.Fixed
clearTimeout()andclearInterval()to work correctly when using jsdom browserified.
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.