Skip to content

[Snyk] Fix for 2 vulnerabilities#215

Open
mnk-blr wants to merge 1 commit into
mainfrom
snyk-fix-7067f03e712d5176a3a876db82dbfbc4
Open

[Snyk] Fix for 2 vulnerabilities#215
mnk-blr wants to merge 1 commit into
mainfrom
snyk-fix-7067f03e712d5176a3a876db82dbfbc4

Conversation

@mnk-blr

@mnk-blr mnk-blr commented Mar 3, 2026

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 2 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 Inefficient Algorithmic Complexity
SNYK-JS-MINIMATCH-15353389
  170  
medium severity Incorrect Control Flow Scoping
SNYK-JS-TOOTALLNATEONCE-15250612
  52  

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Comment thread package.json
"@typescript-eslint/parser": "^5.59.5",
"dts-bundle": "^0.7.3",
"eslint": "^8.56.0",
"eslint": "^9.1.0",

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.

🚨 Breaking Change - ESLint v9 Incompatibility

ESLint v9 requires @typescript-eslint v7+ but this package still uses v5.59.5. This will cause build failures.

Required changes:

  • Update @typescript-eslint/parser to ^7.0.0
  • Update @typescript-eslint/eslint-plugin to ^7.0.0
  • Consider migrating .eslintrc.js to flat config format as ESLint v9 prefers it

Impact: ESLint will fail to run with current configuration.

Comment thread package.json
"eslint-plugin-testing-library": "^5.11.0",
"jest": "^27.4.6",
"jsdom": "^19.0.0",
"jest": "^29.0.0",

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.

🚨 Breaking Change - Jest v29 Requires ts-jest v29+

Jest v29 is incompatible with ts-jest v27.1.1. This will cause test failures.

Required changes:

  • Update ts-jest to ^29.0.0
  • Update @types/jest to ^29.0.0
  • Migrate Jest configuration to remove deprecated globals syntax

Files to update:

  • jest.config.sdk.js - Replace globals.ts-jest with transform configuration
  • Test files using @testing-library/react-hooks need migration to RTL 13+ patterns

Comment thread package.json
"jest": "^27.4.6",
"jsdom": "^19.0.0",
"jest": "^29.0.0",
"jsdom": "^23.0.0",

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.

⚠️ Potential Breaking Change - JSDOM v23

JSDOM v23 introduces breaking changes in Node.js globals handling that could affect tests using postMessage patterns (critical for this SDK's iframe communication).

Recommended actions:

  • Test the postMessage bridge functionality thoroughly
  • Verify src/main/post-message-event-bridge.spec.ts still passes
  • Check if any polyfills are needed for updated JSDOM behavior

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