Packages

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

Other targets from 7.2.2Latest31.0.1
  1. 7.2.2yours
  2. 8.0.0target
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

  1. 8.0.0

    Migration needed27 Jan 20163 new · 5 fixes
    • Breaking

      Removed other minor unimplemented, stub, or no-longer-standard APIs from "DOM Level 3", like the user-data API, DOMError, DOMConfiguration, and DOMStringList.

    • 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.getClientRects to match our stub getBoundingClientRect.

2 other lines we could not sort, mostly version bumps
  • Reimplemented Location, History, and HTMLHyperlinkElementUtils (used by both HTMLAnchorElement and HTMLAreaElement) 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. pushState and 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.

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