jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
In short
2 new1 fixed3 changed
Release note
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.Added
element.closest().Changed
hashchangeandpopstateevents to no longer bubble, per a specification update.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).
Upgraded
cssstyleto v1.0.0, bringing along various fixes to our CSS parser and object model.Upgraded
nwsapito v2.0.7, bringing along various fixes to our selector engine.
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.