Packages

jsdom

31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed

Upgrading jsdom From 3.1.2 to 4.0.0

1 release in betweenevery note read

Other targets from 3.1.2Latest31.0.1
  1. 3.1.2yours
  2. 4.0.0target
1
change to make
0
advisories fixed
0
new
0
fixes

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
3 other lines we could not sort, mostly version bumps
  • In some cases, state was implicitly shared between Window instances—especially parser- and serializer-related state. This is no longer the case, thankfully.

    4.0.0
  • A number of properties of Window were updated for spec compliance: some data properties became accessors, and all methods moved from the prototype to the instance.

    4.0.0
  • The non-standard document.parentWindow was removed, in favor of the standard document.defaultView. Our apologies for encouraging use of parentWindow in our README, tests, and examples.

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