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
Release by release
- Fixed
Fixed
setRangeText()used on<input>and<textarea>elements to calculate the new end index correctly. - Fixed
Fixed
pageX,pageY,offsetX, andoffsetYonMouseEvents during dispatch.
- Fixed
- 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
cssomwithrweb-cssom, since the latter is maintained.
- Fixed
- New
Added
x,y,pageX,pageY,offsetX, andoffsetYtoMouseEvent. (@jenseng, @ViniciusFXavier) - New
Added support for
unsetwithgetComputedStyle(). - New
Added the
submitterproperty toSubmitEvent. - Fixed
Fixed
MouseEvent'sscreenXandscreenYto no longer coerce to integers, allowing fractional values.
- New
2 other lines we could not sort, mostly version bumps
- 21.1.2
Upgraded
nwsapito v2.2.4, bringing along various fixes to our selector engine. - 21.1.0
Improved
getComputedStyle()to cache its results, which should make it much faster.
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.