jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 6.3.0 to 6.4.0
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Release by release
- New
Added
jsdom.nodeLocation(node)to get the location within the source text of a given node. - New
Added
jsdom.reconfigureWindow(window, { top })to allow changing the value of a window'stopproperty. - New
Added the
elementargument to the custom resource loader, so you can customize resource loads depending on which element loaded them.
- New
2 other lines we could not sort, mostly version bumps
- 6.4.0
Updated
getElementsByClassNameto match the spec. It now correctly splits on whitespace to try to find elements with all the given classes; it returns aHTMLCollectioninstead of aNodeList; and it memoizes the result. - 6.4.0
Updated
NodeListandHTMLCollectionto match the spec. The most noticable change is thatHTMLCollectionno longer inherits fromNodeList.
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.