Skip to content

chore(deps): update dependency jsdom to v31 - #1258

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/jsdom-31.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/jsdom-31.x

Conversation

@renovate

@renovate renovate Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
jsdom 30.1.3 → 31.0.1 age confidence

Release Notes

jsdom/jsdom (jsdom)

v31.0.1

Compare Source

  • 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

Compare Source

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.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@coderabbitai

coderabbitai Bot commented Nov 8, 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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 96934040-c843-47ad-b00d-07af2230ed33

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

@nx-cloud

nx-cloud Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit d9b9085

Command Status Duration Result
nx affected -t build -c production ✅ Succeeded 44s View ↗
nx affected -t test -c ci ✅ Succeeded <1s View ↗
nx affected -t lint ✅ Succeeded <1s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-12-02 16:11:00 UTC

nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from 1a8db05 to b3a00e5 Compare November 9, 2026 03:21
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch 2 times, most recently from 4b9f87b to 6ac2552 Compare November 10, 2026 06:55
@codecov

codecov Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.25%. Comparing base (bf70f7f) to head (d9b9085).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1258   +/-   ##
=======================================
  Coverage   93.25%   93.25%           
=======================================
  Files          81       81           
  Lines        1215     1215           
  Branches      328      328           
=======================================
  Hits         1133     1133           
  Misses         31       31           
  Partials       51       51           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch 15 times, most recently from 51d0756 to 2e45665 Compare November 17, 2026 15:28
@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch 4 times, most recently from 9f44b62 to def172b Compare November 19, 2026 08:13
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch 2 times, most recently from 5080881 to bcbece7 Compare November 21, 2026 12:49
@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch 2 times, most recently from 29d8fb2 to 5ab2ec7 Compare November 22, 2026 02:39
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from 5ab2ec7 to 58cba51 Compare November 22, 2026 06:00
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from 58cba51 to d79f3f9 Compare November 22, 2026 09:50
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from d79f3f9 to a562fb0 Compare November 23, 2026 05:11
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from a562fb0 to e37929f Compare November 24, 2026 03:03
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from e37929f to 020e0c4 Compare November 25, 2026 23:26
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from 020e0c4 to b420fe1 Compare November 27, 2026 05:46
nx-cloud[bot]

This comment was marked as outdated.

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from b420fe1 to 9dcebee Compare November 28, 2026 04:52

@nx-cloud nx-cloud Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Important

At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.

Nx Cloud has identified a possible root cause for your failed CI:

We saw all ten test:ci tasks fail with "Package subpath './node/index' is not defined by exports" in @angular-devkit/architect, a failure that does not appear on main. The only change in our PR is the jsdom 31 bump, which likely shifted the resolved Angular/Nx toolchain versions. We could not find a safe fix, so no changes are proposed, and the next step is to compare the resolved @angular-devkit/* and @nx/* versions in the lockfile.

No code changes were suggested for this issue.

Trigger a rerun:

Rerun CI

Nx Cloud View detailed reasoning on Nx Cloud ↗


🎓 Learn more about Self-Healing CI on nx.dev

@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch 9 times, most recently from 731662c to 42030d3 Compare December 1, 2026 23:52
@renovate
renovate Bot force-pushed the renovate/jsdom-31.x branch from 42030d3 to d9b9085 Compare December 2, 2026 16:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants