jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 9.12.0 to 10.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Added
document.dir. - Fixed
Fixed
<img>elements to no longer fireloadevents unless their image data is actually loaded (which generally only occurs when thecanvaspackage is installed). - Fixed
Fixed
XMLHttpRequestpreflights to forward approved preflight headers to the actual request. - Fixed
Fixed
htmlElement.dirto properly restrict its values to"ltr","rtl", or"auto". - Fixed
Fixed setting
innerHTMLto the empty string to no longer be a no-op. - Fixed
Fixed the origin-checking logic in
window.postMessage(), so that now you don't always have to pass an origin of"*".
- New
4 other lines we could not sort, mostly version bumps
- 10.0.0
Removed support for Node.js v4 and v5, as we have started using new JavaScript features only supported in Node.js v6 onwards.
- 10.0.0
Changed the
omitJsdomErrorsoption toomitJSDOMErrors, for consistency with web platform APIs. - 10.0.0
Updated the
<a>and<area>APIs to the latest specification, and fixed a few bugs with them. - 10.0.0
Improved the
xhr.open()error message when there are not enough arguments.
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.