jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 6.2.0 to 6.3.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 9
- fixes
Before you upgrade
Tick each one off as you go- Breaking6.3.0
Release by release
- Breaking
HTMLIsIndexElementwas removed; it has never been produced by the parser since 1.0.0-pre.1, and so it has been just a vestigial global property. - New
Added a fully spec-compliant implementation of
window.atobandwindow.btoa. - New
Added
Node.prototype.baseURIproperty to get the node's owner document's base URL. - Fixed
With the
canvasnpm package installed,<canvas>elements are now properlyinstanceof HTMLCanvasElementandinstanceof HTMLElement.
- Breaking
3 other lines we could not sort, mostly version bumps
- 6.3.0
HTMLBaseElement'shrefgetter now contains appropriate fallbacks and always returns an absolute URL, per spec. - 6.3.0
If there are no
baseelements in an"about:blank"iframe document, the base URL correctly falls back to the parent window's base URL. - 6.3.0
When you provide a
url: ...option tojsdom.jsdom()orjsdom.env(), the given string is now attempted to be resolved as a URL before it is installed asdocument.URL.
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.