Packages

jsdom

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

Upgrading jsdom From 10.1.0 to 11.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 10.1.0Latest31.0.1
  1. 10.1.0yours
  2. 11.0.0target
1
change to make
0
advisories fixed
1
new
9
fixes

Before you upgrade

Tick each one off as you go
  • Breaking11.0.0

Release by release

  1. 11.0.0

    Migration needed21 May 20171 new · 9 fixes
    • Breaking

      Removed some remaining not-per-spec toString() methods on various prototypes, which were made redundant in v10.1.0 but we forgot to remove.

    • New

      Allow a redirect after a CORS preflight when using XMLHttpRequest.

    • Fixed

      Fixed how runScripts applies to event handler attributes; now they will no longer be converted into event handler functions unless runScripts: "dangerously" is set. However, event handler properties will now work with any runScripts option value, instead of being blocked.

    • Fixed

      Fixed all web platform methods that accepted web platform objects to perform proper type checks on them, throwing a TypeError when given invalid values.

16 other lines we could not sort, mostly version bumps
  • Custom parsers, via the parser option to the old API, can no longer be specified. They were never tested, often broken, and a maintenance burden. The defaults, of parse5 for HTML and sax for XML, now always apply.

    11.0.0
  • Due to a parse5 upgrade, the location info objects returned by dom.nodeLocation() or the old API's jsdom.nodeLocation() now have a different structure.

    11.0.0
  • Overhauled how event handler properties and attributes work to follow the spec. In particular, this adds various oneventname properties to various prototypes, ensures the correct order when interleaving event handlers and other event listeners, and ensures that event handlers are evaluated with the correct values in scope.

    11.0.0
  • Upgraded parse5 from v1 to v3, bringing along several correctness improvements to HTML parsing.

    11.0.0
  • Updated Location properties to be on the instance, instead of the prototype, and to be non-configurable.

    11.0.0
  • Significantly improved the performance of HTMLCollection, and thus of parsing large documents.

    11.0.0
  • Significantly improved the performance of getComputedStyle() by removing unsupported selectors from the default style sheet.

    11.0.0
  • Updated tokenList.replace() edge-case behavior.

    11.0.0
  • Invalid qualified names now throw "InvalidCharacterError" DOMExceptions, instead of "NamespaceError" DOMExceptions.

    11.0.0
  • Changed input.select() to no longer throw on types where selection does not apply.

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