jsdom
31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed
28.1.0 is the newest release of 28.x.
In short
1 new7 fixed2 changed
Release note
Overhauled resource loading customization. See the new README for details on the new API.
Added MIME type sniffing to
<iframe>and<frame>loads.Regression:
WebSockets are no longer correctly throttled to one connection per origin. This is a result of the bug at nodejs/undici#4743.Fixed decoding of the query components of
<a>and<area>elements in non-UTF-8 documents.Fixed
XMLHttpRequestfetches andWebSocketupgrade requests to be interceptable by the new customizable resource loading. (Except synchronousXMLHttpRequests.)Fixed the referrer of a document to be set correctly when redirects are involved; it is now the initiating page, not the last hop in the redirect chain.
Fixed correctness bugs when passing
ArrayBuffers or typed arrays to various APIs, where they would not correctly snapshot the data.Fixed
require("url").parse()deprecation warning when usingWebSockets.Fixed
<iframe>,<frame>, and<img>(whencanvasis installed) to fireloadevents, noterrorevents, on non-OK HTTP responses.Fixed many small issues in
XMLHttpRequest.
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.