Packages

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…

Other targets from 11.12.0Latest31.0.1
  1. 11.12.0yours
  2. 12.0.0target

Before you upgrade

Tick each one off as you go
  • Breaking12.0.0
  • Breaking12.0.0

Release by release

  1. 12.0.0

    Migration needed19 Aug 20184 new · 7 fixes
    • 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() and dirxml() methods to console.

    • New

      Added the InputEvent class.

2 other lines we could not sort, mostly version bumps
  • Updated our parse5 dependency to v5, which changes the format of the node locations returned by dom.nodeLocation().

    12.0.0
  • Updated our whatwg-url dependency to v7, which changes the origin of file: URLs to be an opaque origin (and thus file: URLs are no longer same origin to each other).

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