jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 11.9.0 to 11.12.0
3 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Added
window.localStorage,window.sessionStorage, andStorageEventsupport. These are currently only stored in-memory; file an issue if you need persistent (on-disk) storage capability so we can discuss adding that. This feature includes the newstorageQuotaoption for controlling how much can be stored. - New
Added
element.closest(). - Fixed
Fixed the old API in Node.js v10 to not throw, when given input that is not a valid file path (such as a typical HTML string).
- New
- New
Added
node.getRootNode(). - New
Added
label.control. - New
Added
el.labelsfor form control elements. - Fixed
Fixed the
contentTypeofDocuments created through<iframe>s. - Fixed
Fixed the
contentTypeandoriginofDocuments created throughdocument.implementation.createDocument(). - Fixed
Fixed
sourceEl.srcsetto return the value of thesrcset=""attribute, instead of thecite=""attribute. - Fixed
Fixed
node.normalize()to not modify non-Textnodes.
- New
- New
Added
event.srcElementandevent.returnValue. - Fixed
Fixed
XMLHttpRequestto correctly set the User-Agent header, and set it on CORS preflight requests.
- New
6 other lines we could not sort, mostly version bumps
- 11.12.0
Changed
hashchangeandpopstateevents to no longer bubble, per a specification update. - 11.12.0
Upgraded
cssstyleto v1.0.0, bringing along various fixes to our CSS parser and object model. - 11.12.0
Upgraded
nwsapito v2.0.7, bringing along various fixes to our selector engine. - 11.11.0
Upgraded
cssstyleto v0.3.1, bringing along various fixes to our CSS parser and object model. - 11.11.0
Upgraded
whatwg-urlto v6.4.1, fixing the interaction ofURL'shrefandsearchParamsproperties. - 11.11.0
Upgraded our selector matching engine from
nwsmatchertonwsapi, bringing along extensive fixes, performance improvements, and additional selector support.
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.