jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Your version
In short
1 fixed1 changed
Release note
Changed
jsdom.nodeLocation()to returnundefinedwhen used on nodes that originate via fragment parsing (e.g., viainnerHTML). Previously it would return based on the node location of the fragment string, which made node locations unreliable with respect to the original document source. This restores the behavior that was present in v14.0.0, and was accidentally broken in v14.1.0.Fixed calling
window.close()inside theWindow'sloadevent to no longer crash.
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.