Packages

jsdom

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

Upgrading jsdom From 20.0.3 to 21.0.0

1 release in betweenevery note read

Other targets from 20.0.3Latest31.0.1
The note of 21.0.0 lists no breaking change or deprecation, which is rare for a major.
  1. 20.0.3yours
  2. 21.0.0target
?
changes to make
0
advisories fixed
2
new
5
fixes

Release by release

  1. 21.0.0

    7 Jan 20232 new · 5 fixes
    • New

      Added support for <input type=image> submitting forms.

    • New

      Added the location setter to the Window object, which forwards to the location.href setter. Setting the URL is still only implemented for fragment navigations, however.

    • Fixed

      Fixed the window, document, location, and top properties of Window to be non-configurable.

    • Fixed

      Fixed defer="" <script> elements that are added after DOMContentLoaded to execute, instead of being skipped.

    • Fixed

      Fixed selectElement.selectedOptions being incorrect when optionElement.selected is set. This was a regression introduced in v20.0.1. Unfortunately this also reverts the performance improvement when appending <option> elements that was introduced then.

    • Fixed

      Fixed the self, locationbar, menubar, personalbar, scrollbars, statusbar, toolbar, frames, parent, external, length, and screen properties of Window to be replaceable: that is, setting them will override their values, instead of having the new value be ignored.

    • Fixed

      Fixed a few issues with JSDOM.fromURL() in the browser build of jsdom.

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.