Packages

jsdom

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

Upgrading jsdom From 12.0.0 to 12.2.0

2 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 12.0.0Latest31.0.1
0
changes to make
0
advisories fixed
5
new
3
fixes

Release by release

  1. 12.2.0

    8 Oct 20182 new · 2 fixes
    • New

      Added support for shadow DOM! This includes shadow roots, slots, composed events, and more.

    • New

      Added the element.toggleAttribute() method.

    • Fixed

      Fixed XMLHttpRequest sometimes sending an empty request body after a preflight request.

    • Fixed

      Fixed the formElement.form property to use an algorithm that also checks the form="" attribute, instead of always looking for the closest ancestor <form> element.

  2. 12.1.0

    30 Sep 20183 new · 1 fix
    • New

      Added fieldsetEl.elements and fieldsetEl.type properties.

    • New

      Added the options parameter to dom.runVMScript().

    • New

      Added the ability for custom resource loader fetch() implementations to see what element initiated the fetch.

    • Fixed

      Fixed input and change events for <input> elements to be trusted and uncancelable.

3 other lines we could not sort, mostly version bumps
  • Stopped swallowing errors when the canvas or canvas-prebuilt packages were installed, but failed to load.

    12.2.0
  • Dramatically upgraded our XML parser, from the unmaintained sax package to the well-maintained saxes replacement. This increases our specification conformance, including rejecting certain ill-formed XML documents that were previously accepted, and properly handling other constructs like empty comments, CDATA sections, and <script> elements.

    12.1.0
  • "Fixed" <script>s with the async attribute to not execute before sync <script>s that precede them. We still do not, in general, have proper execution of scripts during the initial parsing of a document, so this fix is more of a reduction of badness than an alignment with the specification. This behavior regressed in v12.0.0.

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