Packages

jsdom

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

Upgrading jsdom From 15.2.1 to 16.0.0

1 release in betweenevery note read

Other targets from 15.2.1Latest31.0.1
  1. 15.2.1yours
  2. 16.0.0target
1
change to make
0
advisories fixed
4
new
9
fixes

Before you upgrade

Tick each one off as you go
  • Breaking16.0.0

Release by release

  1. 16.0.0

    Migration needed13 Jan 20204 new · 9 fixes
    • Breaking

      Node v10 is now the minimum supported version.

    • New

      Added the AbstractRange, Range, StaticRange, Selection, and window.getSelection() APIs.

    • New

      Added working constructors for Comment, Text, and DocumentFragment.

    • New

      Added valueAsDate, valueAsNumber, stepUp() and stepDown() to <input> elements.

5 other lines we could not sort, mostly version bumps
  • The dom.runVMScript() API has been replaced with the more general dom.getInternalVMContext() API.

    16.0.0
  • Each jsdom Window now creates new instances of all the web platform globals. That is, our old shared constructor and prototypes caveat is no longer in play.

    16.0.0
  • Each jsdom Window now exposes all JavaScript-spec-defined globals uniformly. When runScripts is disabled, it exposes them as aliases of the ones from the outer Node.js environment. Whereas when runScripts is enabled, it exposes fresh copies of each global from the new scripting environment. (Previously, a few typed array classes would always be aliased, and with runScripts disabled, the other classes would not be exposed at all.)

    16.0.0
  • Removed document.origin.

    16.0.0
  • Improved the performance of getComputedStyle().

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