jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
Upgrading jsdom From 16.5.0 to 16.7.0
5 releases in betweenevery note read
Release by release
- New
Added
AbortSignal.abort(). - New
Added dummy
xandyproperties to the return value ofgetBoundingClientRect(). - New
Implemented wrapping for
textareaEl.valueif thewrap=""attribute is specified. - Fixed
Fixed some bad cascade computation in
getComputedStyle().
- New
- New
Added
parentNode.replaceChildren(). - Fixed
Fixed jsdom's handling of when code running inside the jsdom throws
nullorundefinedas an exception.
- New
- Fixed
Fixed infinite recursion when using
MutationObservers to observe elements inside aMutationObservercallback.
- Fixed
- Fixed
Fixed
Access-Control-Allow-Headers: *to work withXMLHttpRequest. - Fixed
Fixed
xhr.responseto strip any leading BOM whenxhr.responseTypeis"json". - Fixed
Fixed
new Text()andnew Comment()constructors to properly set the resulting node'sownerDocument. - Fixed
Fixed
customElements.whenDefined()to resolve its returned promise with the custom element constructor, per recent spec updates.
- Fixed
- Fixed
Fixed a regression that broke
customElements.get()in v16.5.0. - Fixed
Fixed
window.eventto have a setter which overwrites thewindow.eventproperty with the given value, per the specification. This fixes an issue where after upgrading to jsdom v16.5.0 you would no longer be able to set a global variable namedeventin the jsdom context.
- Fixed
3 other lines we could not sort, mostly version bumps
- 16.7.0
Changed newline normalization in
<textarea>s according to recent HTML Standard updates. - 16.6.0
Removed the dependency on the deprecated
requestpackage, in the process fixing several issues with theXMLHttpRequestimplementation around header processing. Special thanks to vegardbb for completing this months-long effort! - 16.5.2
On Node.js v14.6.0+ where
WeakRefs are available, fixedNodeIteratorto no longer stop working when more than tenNodeIteratorinstances are created, and to use less memory due to inactiveNodeIterators sticking around.
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.