Skip to content

build(deps-dev): bump jsdom from 30.1.3 to 31.0.0 - #2286

Merged
cursor[bot] merged 1 commit into
masterfrom
dependabot/npm_and_yarn/jsdom-31.0.0
Nov 16, 2026
Merged

cursor[bot] merged 1 commit into
masterfrom
dependabot/npm_and_yarn/jsdom-31.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps jsdom from 30.1.3 to 31.0.0.

Release notes

Sourced from jsdom's releases.

v31.0.0

Breaking changes

  • Changed the optional canvas and image decoding backend from canvas to @napi-rs/canvas. Install @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. 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. (@​Brooooooklyn)
  • 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.
  • 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.

Other changes

  • Added window.reportError(), which dispatches an error event and reports uncanceled errors to the virtual console. (@​sarankumar1325)
  • Added element.ariaBrailleLabel and element.ariaBrailleRoleDescription. (@​Kjubikstronk)
  • Fixed page-completion load events to fire only on the window. Use window.addEventListener("load", ...) or window.onload instead of listening on the document.
  • Fixed document.open(), including implicit calls from document.write(), to clear event listeners and handlers from the document, its descendants, and its window when replacing the input stream.
  • Fixed document.write() to process successive writes through the parser's input stream, preserve insertion points across nested scripts, and make completed text immediately visible. Script-created input streams now remain open until document.close().
  • Fixed dynamically inserted scripts to respect script.async = false execution order, use their source text and document from preparation time, and avoid executing after adoption into another document. Scripts parsed through inert fragment APIs no longer execute when subsequently inserted.
  • Fixed unrelated images, stylesheets, and frames being delayed behind scripts, and resource completion events firing before nested stylesheet imports finish. Cyclic imports no longer prevent completion, and <style> elements in shadow trees now fire load events.
  • Fixed window.stop() to cancel pending subresource and XMLHttpRequest requests in descendant frames and suppress completion events for canceled loads, while allowing subsequent requests to proceed.
  • Fixed repeated document.close() calls replaying readiness and load events, and incorrect iframe load events when reopening documents from event handlers.
  • Fixed memory leaks where pending request interceptor promises retained closed windows, introduced in v28.0.0.
  • Fixed focus remaining on elements that become non-focusable after DOM or style changes. Focus now moves asynchronously to the document's viewport, and element.blur() can release it immediately.
  • Fixed document.hasFocus() returning false before an element is focused or during focus transitions within the document, including inside frames.
  • Fixed \<template> parsing and template.innerHTML serialization in XML documents, including templates with namespace prefixes. (@​b84330808)
  • Fixed rect.toJSON() and performance.toJSON() to create their result objects in the method's realm instead of the host Node.js realm.
Commits
  • 825fa8e 31.0.0
  • 9f2e49a Add ariaBrailleLabel and ariaBrailleRoleDescription
  • 4c0a35e Flush text written with document.write()
  • fce11d3 Switch canvas support to @​napi-rs/canvas
  • 27614bf Fix document.hasFocus() during focus changes
  • 627ade2 Implement asynchronous focus fixup
  • 8bd17a2 Implement reportError()
  • 5ae66cf Update webidl2js and remove IDL workarounds
  • ce5a100 Align development scripts and CI
  • 9cc717f Adopt ESLint config v6 and oxfmt
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from chhoumann as a code owner November 16, 2026 12:46
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7724b22b-2ce1-4297-b800-65bea4fac566

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependabot build(deps-dev) standalone semver-major jsdom 30.1.3 → 31.0.0. Diff is package.json + lockfile only. Title will not cut a release (build(deps-dev):).

Usage. jsdom is a Vitest environment only (// @vitest-environment jsdom). It is not imported from src/ and is not in main.js. This repo does not install canvas / @napi-rs/canvas, so the optional canvas-backend swap does not apply. Unit tests do not drive JSDOM.fromURL() / blocking scripts / document.write(), which is where the parser-pause and load-event breaks show up. CSS/computed-style rewrite is exercised by the jsdom suite (custom properties in suggest.ts); 6986 tests passed.

Age gate. Direct 31.0.0 published 2026-11-05 (past cooldown). Transitives undici 8.12.2→8.12.4, parse5 8.1.1, entities 9.0.0, bcp-47 are all ≥7 days. jsdom@31.0.1 (2026-11-13, CSS/tabIndex perf+correctness) is still inside the 7-day window and correctly omitted.

Engines. jsdom 31 wants ^22.22.2 || ^24.15.0 || >=26.0.0. Repo engines stays >=22.13.0 (deps-dev; not bundled). Local Node 22.23.4 and CI Node 24 satisfy it.

Local (Node 22.23.4 / pnpm 11.28.7). Frozen install OK. pnpm run lint (oxlint + svelte-policy + tsc + svelte-check 0/0), pnpm run build, pnpm run test 6986 passed, 28 skipped. pnpm audit --prod 0. Full audit: pre-existing low deepmerge@4.3.1 via @sveltejs/vite-plugin-svelte (unchanged).

GitHub. Test, Build + Lint, Docs, CodeQL (both languages), Dependency Review, PR Title green. Platform Test skipped on PRs as designed.

No regressions. Approving and squash-merging.

Open in Web View Automation 

Sent by Cursor Automation: Dependabot PRs

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master moved under this PR (#2285 landed vitest 5.1.0 / oxlint / vite on the same lockfile), so GitHub now reports merge conflicts. I cannot post @dependabot rebase as this integration, so I will rebase onto current master on this branch, regenerate the lockfile, re-run lint/build/test, and merge if still green.

Open in Web View Automation 

Sent by Cursor Automation: Dependabot PRs

Bumps [jsdom](https://github.com/jsdom/jsdom) from 30.1.3 to 31.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Commits](jsdom/jsdom@v30.1.3...v31.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-version: 31.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/jsdom-31.0.0 branch from e263c1b to 821f0cb Compare November 16, 2026 12:53

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving after the rebase onto master (#2285 / vitest 5.1.0, oxlint 1.93.0, vite 8.3.7).

Diff vs current master is still only package.json (jsdom ^30.1.3 → ^31.0.0) and the lockfile graph swap. Dependabot’s rebase (821f0cbc) matches the lockfile I regenerated locally (empty diff).

Re-ran on Node 22.23.4 after the rebase: frozen install, pnpm run lint (oxlint + svelte-policy + tsc + svelte-check 0/0), pnpm run build, pnpm run test 6986 passed, 28 skipped (Vitest 5.1.0). pnpm audit --prod 0. jsdom still not in src/ or main.js.

Waiting on GitHub CI for 821f0cbc, then squash-merging. Title remains build(deps-dev): and will not cut a release.

Open in Web View Automation 

Sent by Cursor Automation: Dependabot PRs

@cursor
cursor Bot merged commit 00fceea into master Nov 16, 2026
10 checks passed
@cursor
cursor Bot deleted the dependabot/npm_and_yarn/jsdom-31.0.0 branch November 16, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants