Packages

jsdom

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

Upgrading jsdom From 21.0.0 to 21.1.2

3 releases in betweenevery note read

Other targets from 21.0.0Latest31.0.1
0
changes to make
0
advisories fixed
3
new
10
fixes

Release by release

  1. 21.1.2

    1 May 20232 fixes
    • Fixed

      Fixed setRangeText() used on <input> and <textarea> elements to calculate the new end index correctly.

    • Fixed

      Fixed pageX, pageY, offsetX, and offsetY on MouseEvents during dispatch.

  2. 21.1.1

    12 Mar 20233 fixes
    • Fixed

      Fixed jsdom.reconfigure() to also adjust the URL as seen by the history API, so that e.g. history.replaceState(null, "") would not mess up the URL.

    • Fixed

      Fixed location.hash = "" to leave any # in location.href.

    • Fixed

      Fixes a few bugs with CSS parsing by replacing cssom with rweb-cssom, since the latter is maintained.

  3. 21.1.0

    22 Jan 20233 new · 5 fixes
    • New

      Added x, y, pageX, pageY, offsetX, and offsetY to MouseEvent. (@jenseng, @ViniciusFXavier)

    • New

      Added support for unset with getComputedStyle().

    • New

      Added the submitter property to SubmitEvent.

    • Fixed

      Fixed MouseEvent's screenX and screenY to no longer coerce to integers, allowing fractional values.

2 other lines we could not sort, mostly version bumps
  • Upgraded nwsapi to v2.2.4, bringing along various fixes to our selector engine.

    21.1.2
  • Improved getComputedStyle() to cache its results, which should make it much faster.

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