jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 30.0.0 to 30.1.3
5 releases in betweenevery note read
Release by release
- Fixed
Fixed slowdowns when focusing elements and running interaction tests, which regressed in v30.1.2.
- Fixed
Fixed
XMLHttpRequestreusing credentials supplied toxhr.open()after cross-origin redirects, including in response to authentication challenges from the destination. - Fixed
Fixed
XMLHttpRequestincorrectly sending and accepting cookies after cross-origin redirects back to the document's origin whenxhr.withCredentialsis false. - Fixed
Fixed exceptions from malformed CSS math functions, such as
calc(0px - @submenu_space), while parsing documents, stylesheets, and style declarations.
- Fixed
- Fixed
Fixed severe slowdowns when building large DOM trees, including SVG charts with D3, which regressed in v30.1.0.
- Fixed
Fixed exponentially slow reads of empty inherited CSS custom properties in deeply nested documents, and custom properties incorrectly inheriting past an
initialreset. - Fixed
Fixed
getComputedStyle()returning stale results after editing stylesheet declarations, selectors, or media queries, including in imported stylesheets. - Fixed
Fixed selector matching and computed styles after changes to form control checkedness, indeterminacy, selection, values, and validity, including during form resets and canceled clicks.
- Fixed
- Fixed
Fixed spurious window
blurandfocusoutevents and incorrectevent.relatedTargetvalues when focusing an element after removing the previously focused element, which regressed in v30.1.0. - Fixed
Fixed focus and blur behavior across frames, and focusing the document's viewport through
document.documentElement.focus(). - Fixed
Fixed focus targets removed or disabled by
blurlisteners becoming active, and text selections made by focus and blur listeners being overwritten. - Fixed
Fixed
element.focus()incorrectly focusing disabled form controls and<input type="hidden">elements withtabindex="".
- Fixed
- New
Added named access to elements on
document, such asdocument.myFormfor<form name="myForm">. - New
Added
QuotaExceededError, including its use for storage quota errors and oversizedcrypto.getRandomValues()requests. - New
Added support for the relaxed DOM naming rules when creating elements, attributes, and document types.
- Fixed
Fixed
element.querySelectorAll()returning no matches when the first part of the selector matches the element itself, which regressed in v30.0.0.
- New
- New
Sped up up range operations on large documents
- Fixed
Fixed
getComputedStyle()withcalc()and other functions throwing an exception, which regressed in v30.0.0.
- New
8 other lines we could not sort, mostly version bumps
- 30.1.3
Improved performance of
getComputedStyle()and computed CSS property reads, including with stylesheets containing attribute selectors. (@scttcper, @asamuzaK) - 30.1.2
Updated URLs to support Unicode v18.0.0 in internationalized domain names.
- 30.1.2
Reduced package size and memory use for CSS property definitions.
- 30.1.0
Improved performance of DOM construction, tree mutations, range operations, and live collection access, especially on large documents. (@scttcper, @erezrokah)
- 30.1.0
Improved performance of
getComputedStyle(), style changes, and CSS serialization. (@scttcper, @jhult) - 30.1.0
Improved performance of event dispatch, form control and label lookups, and updates to
<select>elements and radio button groups. - 30.1.0
Reduced memory use when creating and working with DOM nodes, attributes, event listeners, and mutation observers.
- 30.1.0
Changed
window.close()to preserve access to the document and its DOM through retained references.
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.