Packages

jsdom

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

Upgrading jsdom From 0.6.5 to 0.7.0

1 release in betweenevery note read

Other targets from 0.6.5Newest 0.x0.11.1Latest31.0.1
  1. 0.6.5yours
  2. 0.7.0target
1
change to make
0
advisories fixed
0
new
2
fixes

Before you upgrade

Tick each one off as you go
  • Breaking0.7.0

Release by release

  1. 0.7.0

    Migration needed4 Jul 20132 fixes
    • 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.

    • Fixed

      Errors raised in scripts are now passed to jsdom.env's callback.

    • Fixed

      Set window.location.href correctly when using jsdom.env to construct a window from a URL, when that URL causes a redirect.

2 other lines we could not sort, mostly version bumps
  • Add: A more complete and accurate window.location object, which includes firing hashchange events when the hash is changed.

    0.7.0
  • Add: When using a non-implemented feature, mention exactly what it was that is not implemented in the error message.

    0.7.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.