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
- 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
- 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. - Fixed
Errors raised in scripts are now passed to
jsdom.env's callback. - Fixed
Set
window.location.hrefcorrectly when usingjsdom.envto construct a window from a URL, when that URL causes a redirect.
- Breaking
2 other lines we could not sort, mostly version bumps
- 0.7.0
Add: A more complete and accurate
window.locationobject, which includes firinghashchangeevents 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.
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.