jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 7.2.2 to 8.0.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 3
- new
- 5
- fixes
Before you upgrade
Tick each one off as you go- Breaking8.0.0
Release by release
- Breaking
Removed other minor unimplemented, stub, or no-longer-standard APIs from "DOM Level 3", like the user-data API,
DOMError,DOMConfiguration, andDOMStringList. - New
Added
Element.prototype.insertAdjacentHTML. - New
Added
Node.prototype.adoptNode, and adopt nodes during insertion instead of throwing"WrongDocumentError"s. - New
Added a stub
Element.prototype.getClientRectsto match our stubgetBoundingClientRect.
- Breaking
2 other lines we could not sort, mostly version bumps
- 8.0.0
Reimplemented
Location,History, andHTMLHyperlinkElementUtils(used by bothHTMLAnchorElementandHTMLAreaElement) according to the latest specs, and using the latest whatwg-url package. This greatly improves our correctness on URL resolution and navigation (to the extent we support navigation, i.e.pushStateand changing the hash). It should also improve parsing speed as we no longer parse and resolve URLs during parsing. - 8.0.0
Removed "DOM Load and Save" stub implementation. That spec was never implemented in browsers, and jsdom only contained stubs.
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.