jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 11.12.0 to 12.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 2
- changes to make
- 0
- advisories fixed
- 4
- new
- 7
- fixes
Before you upgrade
Tick each one off as you go- Breaking12.0.0
- Breaking12.0.0
Release by release
- Breaking
Jsdom now requires Node.js v8.
- Breaking
Removed the old jsdom API, as the new API now has all the capabilities you need.
- New
Added
countReset(),dir()anddirxml()methods toconsole. - New
Added the
InputEventclass.
- Breaking
2 other lines we could not sort, mostly version bumps
- 12.0.0
Updated our
parse5dependency to v5, which changes the format of the node locations returned bydom.nodeLocation(). - 12.0.0
Updated our
whatwg-urldependency to v7, which changes the origin offile:URLs to be an opaque origin (and thusfile:URLs are no longer same origin to each other).
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.