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
- 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
- Breaking
Node v10 is now the minimum supported version.
- New
Added the
AbstractRange,Range,StaticRange,Selection, andwindow.getSelection()APIs. - New
Added working constructors for
Comment,Text, andDocumentFragment. - New
Added
valueAsDate,valueAsNumber,stepUp()andstepDown()to<input>elements.
- Breaking
5 other lines we could not sort, mostly version bumps
- 16.0.0
The
dom.runVMScript()API has been replaced with the more generaldom.getInternalVMContext()API. - 16.0.0
Each jsdom
Windownow 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
Windownow exposes all JavaScript-spec-defined globals uniformly. WhenrunScriptsis disabled, it exposes them as aliases of the ones from the outer Node.js environment. Whereas whenrunScriptsis enabled, it exposes fresh copies of each global from the new scripting environment. (Previously, a few typed array classes would always be aliased, and withrunScriptsdisabled, the other classes would not be exposed at all.) - 16.0.0
Removed
document.origin. - 16.0.0
Improved the performance of
getComputedStyle().
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.