Skip to content

[Snyk] Security upgrade jsdom from 26.0.0 to 27.0.1 - #150

Open
peterj wants to merge 1 commit into
mainfrom
snyk-fix-2603cdcab464f4aefbc350e03f09e094
Open

peterj wants to merge 1 commit into
mainfrom
snyk-fix-2603cdcab464f4aefbc350e03f09e094

Conversation

@peterj

@peterj peterj commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Uncaught Exception
SNYK-JS-PARSE5-22742152
  828  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Uncaught Exception

@peterj

peterj commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Merge Risk: High

This major version upgrade from jsdom 26.x to 27.x introduces significant behavioral changes that can break tests and builds.

Key Breaking Changes:

  • Inconsistent Pointer Events API: jsdom v27 adds the window.PointerEvent constructor but does not add the corresponding methods like setPointerCapture to element prototypes. This breaks the common feature detection pattern of checking for typeof window.PointerEvent, which can lead to unexpected TypeError exceptions at runtime in testing libraries or application code that relies on this check.

  • Performance Degradation: Users have reported significant performance degradation in v27 compared to v26, which may cause test suites to fail due to timeouts. This requires verification and potentially adjusting test timeout configurations.

  • Bundling Issues: A change in how internal assets are located can cause failures when jsdom is bundled with tools like WebPack, particularly for environments like the Electron main process.

Recommendation: Due to the subtle but critical nature of the Pointer Events API change, this upgrade should be handled with caution. Thoroughly re-run your test suite and pay close attention to any new TypeError exceptions or test timeouts. If you use libraries that interact with pointer events (like @testing-library/react), be prepared for potential breakages.

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

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.

2 participants