Skip to content

chore(deps): bump the testing group across 1 directory with 2 updates - #9359

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/testing-fbf579634c
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/testing-fbf579634c

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the testing group with 2 updates in the / directory: global-jsdom and jsdom.

Updates global-jsdom from 30.0.0 to 31.0.0

Changelog

Sourced from global-jsdom's changelog.

{31.0.0} - {2026-11-09}

  • Raise minimum jsdom peer dependency to v31
Commits

Updates jsdom from 30.1.3 to 31.0.1

Release notes

Sourced from jsdom's releases.

v31.0.1

  • Improved performance of computed style reads, selector matching, CSS variable substitution, CSS shorthand updates, and focus handling on pages with many style rules. (@​scttcper)
  • Improved performance when building detached DOM trees and reading node.isConnected. (@​scttcper)
  • 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. (@​rome-xi)
  • Fixed CSS ident() results containing spaces or leading digits losing their required escaping during serialization and variable substitution. (@​scttcper)
  • Fixed 'max-lines' values combining an integer and auto to serialize with the integer first, such as 3 auto.

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
  • b76da26 31.0.1
  • 8a39b93 Track whether each node is connected
  • 463254b Speed up type and relative selector matching
  • afb7299 Fix max-lines serialization order
  • 574765e Fix tabIndex reflection of invalid and out-of-range values
  • 2cdcc44 Skip stylesheets that cannot apply to an element
  • 1ba3b6b Skip fetch cancellation test on affected Node versions
  • 40a0a14 Reduce CSS shorthand mutation overhead
  • 8a68119 Speed up CSS variable substitution
  • da2b11b Index pseudo-element rules apart from element rules
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested review from a team as code owners December 1, 2026 17:40
@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nodejs-org Ready Ready Preview Dec 3, 2026 5:23pm UTC

Request Review

@dependabot dependabot Bot added auto-merge Ready to automatically merge after being open for 48 hours dependencies Pull requests that update a dependency file github_actions:pull-request Trigger Pull Request Checks javascript Pull requests that update javascript code labels Dec 1, 2026
@github-actions github-actions Bot removed the github_actions:pull-request Trigger Pull Request Checks label Dec 1, 2026
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.15%. Comparing base (19b8d5f) to head (85f4d13).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9359      +/-   ##
==========================================
- Coverage   87.18%   87.15%   -0.04%     
==========================================
  Files          92       92              
  Lines        6656     6656              
  Branches      404      404              
==========================================
- Hits         5803     5801       -2     
- Misses        849      851       +2     
  Partials        4        4              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

📦 Build Size Comparison

Summary

Metric Value
Old Total First Load JS 7.23 MB
New Total First Load JS 7.23 MB
Delta 0 B (0.00%)

Bumps the testing group with 2 updates in the / directory: [global-jsdom](https://github.com/modosc/global-jsdom) and [jsdom](https://github.com/jsdom/jsdom).


Updates `global-jsdom` from 30.0.0 to 31.0.0
- [Changelog](https://github.com/modosc/global-jsdom/blob/main/HISTORY.md)
- [Commits](https://github.com/modosc/global-jsdom/commits)

Updates `jsdom` from 30.1.3 to 31.0.1
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Commits](jsdom/jsdom@v30.1.3...v31.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump the testing group with 2 updates chore(deps): bump the testing group across 1 directory with 2 updates Dec 3, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/testing-fbf579634c branch from 8b6a631 to 85f4d13 Compare December 3, 2026 17:22
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedjsdom@​30.1.3 ⏵ 31.0.198100100 +19680 -19
Updatedglobal-jsdom@​30.0.0 ⏵ 31.0.010010010088 +1100

View full report

This branch was successfully deployed

1 active deployment
Preview — 85f4d13c Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Ready to automatically merge after being open for 48 hours dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant