Packages

jsdom

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

Your version

0.7.0

4 Jul 2013Where it was published

0.11.1 is the newest release of 0.7.x.

In short

1 breaking2 fixed2 changed

  • Breaking

    Change: The logic when passing jsdom.env a string is more accurate, and you can be explicit by using the html, url, or file properties. This is a breaking change in the behavior of html, which used to do the same auto-detection logic as the string-only version.

Release note

  • Breaking

    Change: The logic when passing jsdom.env a string is more accurate, and you can be explicit by using the html, url, or file properties. This is a breaking change in the behavior of html, 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.href correctly when using jsdom.env to construct a window from a URL, when that URL causes a redirect.

  • Add: A more complete and accurate window.location object, which includes firing hashchange events 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.