Packages

jsdom

31.0.1 · 13 Nov 2026MIT166.8M / weekRepositoryHomepagenpmAtom feed

Your version

28.0.0

major2 Feb 2026Where it was published

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 XMLHttpRequest fetches and WebSocket upgrade requests to be interceptable by the new customizable resource loading. (Except synchronous XMLHttpRequests.)

  • 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 using WebSockets.

  • Fixed <iframe>, <frame>, and <img> (when canvas is installed) to fire load events, not error events, 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.