---
title: "jsdom 31.0.1: release notes, upgrades and advisories"
description: "jsdom 31.0.1: release notes, breaking changes by major version and no known security advisory."
url: https://inlinr.com/packages/jsdom
lang: en
---

[Packages](https://inlinr.com/packages)

# jsdom

31.0.1 · 13 Nov 2026 MIT 166.8M / week [Repository](https://github.com/jsdom/jsdom) [Homepage](https://github.com/jsdom/jsdom#readme) [npm](https://www.npmjs.com/package/jsdom) [Atom feed](https://inlinr.com/packages/feed/jsdom)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/jsdom/upgrade)

LineNewestSecurity

- 31.x 31.0.1 No known advisory Latest line
- 30.x 30.1.3 No known advisory [To 31.0.1](https://inlinr.com/packages/jsdom/upgrade/30.1.3-31.0.1)
- 29.x 29.1.1 No known advisory [To 31.0.1](https://inlinr.com/packages/jsdom/upgrade/29.1.1-31.0.1)
- 28.x 28.1.0 No known advisory [To 31.0.1](https://inlinr.com/packages/jsdom/upgrade/28.1.0-31.0.1)
- 27.x 27.4.0 No known advisory [To 31.0.1](https://inlinr.com/packages/jsdom/upgrade/27.4.0-31.0.1)
- 26.x 26.1.0 No known advisory [To 31.0.1](https://inlinr.com/packages/jsdom/upgrade/26.1.0-31.0.1)

## Latest releases

[All 281 releases](https://inlinr.com/packages/jsdom/releases)

1. 31.x · latest line
2. ### [31.0.1](https://inlinr.com/packages/jsdom/releases/31.0.1 "Open this release") [](https://github.com/jsdom/jsdom/releases/tag/v31.0.1 "Read this release where it was published")  
13 Nov 2026

  - Improved performance of computed style reads, selector matching, CSS variable substitution, CSS shorthand updates, and focus handling on pages with many style rules.
  - Improved performance when building detached DOM trees and reading `node.isConnected`.
  - Fixed `element.tabIndex` handling of invalid and out-of-range `tabindex=""` values to use the element's default instead of returning zero or wrapping. Values with trailing non-digits now use their leading integer, so `tabindex="1e2"` yields `1` instead of `100`.
3. ### [31.0.0](https://inlinr.com/packages/jsdom/releases/31.0.0 "Open this release") [](https://github.com/jsdom/jsdom/releases/tag/v31.0.0 "Read this release where it was published")  
5 Nov 2026  
Summary · from the note as AI read it  
Read before upgrading: 4 changes to make.

  - Breaking  
  Changed the optional canvas and image decoding backend from `canvas` to [@napi-rs/canvas](https://inlinr.com/packages/@napi-rs/canvas). Install [@napi-rs/canvas](https://inlinr.com/packages/@napi-rs/canvas) v1.0.13 or later in the v1.x series alongside jsdom; installing `canvas` alone no longer enables this support. The new backend provides prebuilt Skia binaries on supported platforms, and rendering and encoded image bytes can differ. Projects using native canvas objects or custom font registration should follow the [canvas migration guidance](https://github.com/jsdom/jsdom/blob/v31.0.0/README.md#canvas-support "https://github.com/jsdom/jsdom/blob/v31.0.0/README.md#canvas-support"). Added WebP serialization through `canvas.toDataURL()` and `canvas.toBlob()`. Fixed image loading to wait for decoding before firing `load`, discard obsolete source requests, avoid refetching when dimensions change, and prevent failed images from drawing stale contents. Fixed canvas context and serialization behavior, including unsupported context types, read-only `ctx.canvas`, image-drawing exceptions, MIME type and quality normalization, and asynchronous `null` results from `canvas.toBlob()` for empty canvases or encoding failures.
  - Breaking  
  Changed CSS parsing, selector matching, and computed styles to use a new integrated implementation, with substantially expanded support and faster selector queries and repeated style reads. This includes cascade layers, nesting, `@scope`, custom-property substitution and registration through `@property` and `CSS.registerProperty()`, typed `attr()`, conditional `if()`, shadow-tree styling with `:host`, `::slotted()`, and `::part()`, pseudo-element computed styles, and constructable stylesheets with `document.adoptedStyleSheets` and `shadowRoot.adoptedStyleSheets`. Fixed numerous cascade, shorthand, serialization, and default-style issues; computed declarations now stay live across DOM and stylesheet changes. CSS serialization and computed values can differ from previous releases.
  - Breaking  
  Changed HTML and XML parsing to pause at blocking scripts until their required resources are ready. The `JSDOM` constructor, `JSDOM.fromURL()`, and `JSDOM.fromFile()` can now return partially parsed documents. Wait for `DOMContentLoaded` for the finished tree, or the window's `load` event for load-delaying resources, checking `document.readyState` first in case the event has already fired. XML syntax errors encountered after asynchronous parsing resumes are reported through the virtual console as `"xml-parsing"` errors.
4. 30.x · maintenance
5. ### [30.1.3](https://inlinr.com/packages/jsdom/releases/30.1.3 "Open this release") [](https://github.com/jsdom/jsdom/releases/tag/v30.1.3 "Read this release where it was published")  
15 Oct 2026

  - Improved performance of `getComputedStyle()` and computed CSS property reads, including with stylesheets containing attribute selectors. ([@scttcper](https://github.com/scttcper), [@asamuzaK](https://github.com/asamuzaK))
  - Fixed slowdowns when focusing elements and running interaction tests, which regressed in v30.1.2.
  - Fixed `XMLHttpRequest` reusing credentials supplied to `xhr.open()` after cross-origin redirects, including in response to authentication challenges from the destination.

Dependency tracking

## Know when your own dependencies move

jsdom shipped 4 new majors in the last 12 months, among 17 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

No known security advisory.

## Health of 31.0.1

[Details](https://inlinr.com/packages/jsdom/security#signals)

- **Provenance**: Present
- **Publisher**: GitHub Actions
- **Maintainers**: 6
- **Scorecard**: 7.3 / 10
- **Size**: 6.9 MB

## Weekly downloads

## Works with

- [@napi-rs/canvas optional](https://inlinr.com/packages/@napi-rs/canvas)

Registry facts last checked 16 Nov 2026\. Releases and advisories last read 22 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
