jsdom
31.0.1 · 13 Nov 2026MIT166.2M / weekRepositoryHomepagenpmAtom feed
0.11.1 is the newest release of 0.7.x.
In short
1 breaking2 fixed2 changed
- Breaking
Change: The logic when passing
jsdom.enva string is more accurate, and you can be explicit by using thehtml,url, orfileproperties. This is a breaking change in the behavior ofhtml, which used to do the same auto-detection logic as the string-only version.
Release note
- Breaking
Change: The logic when passing
jsdom.enva string is more accurate, and you can be explicit by using thehtml,url, orfileproperties. This is a breaking change in the behavior ofhtml, which used to do the same auto-detection logic as the string-only version. Errors raised in scripts are now passed to
jsdom.env's callback.Set
window.location.hrefcorrectly when usingjsdom.envto construct a window from a URL, when that URL causes a redirect.Add: A more complete and accurate
window.locationobject, which includes firinghashchangeevents when the hash is changed.Add: When using a non-implemented feature, mention exactly what it was that is not implemented in the error message.
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.