Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Dargon789
Copy link
Owner

@Dargon789 Dargon789 commented Jul 11, 2025

snyk-top-banner

Snyk has created this PR to upgrade mocha from 10.8.2 to 11.7.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 13 versions ahead of your current version.

  • The recommended version was released 24 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Missing Release of Resource after Effective Lifetime
SNYK-JS-INFLIGHT-6095116
131 Proof of Concept
Release notes
Package name: mocha from mocha GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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

For more information:

Summary by Sourcery

Upgrade mocha dependency from version 10.8.2 to 11.7.0 in hardhat-chai-matchers

Bug Fixes:

  • Address missing resource release vulnerability (SNYK-JS-INFLIGHT-6095116)

Enhancements:

  • Bump mocha to 11.7.0

Snyk has created this PR to upgrade mocha from 10.8.2 to 11.7.0.

See this package in npm:
mocha

See this project in Snyk:
https://app.snyk.io/org/dargon789/project/9d331153-a53f-4ab9-b8d6-cf7af96dd110?utm_source=github&utm_medium=referral&page=upgrade-pr
@vercel
Copy link

vercel bot commented Jul 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hardhat-project-uz7z ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2025 6:52pm

@codesandbox
Copy link

codesandbox bot commented Jul 11, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@sourcery-ai
Copy link

sourcery-ai bot commented Jul 11, 2025

Reviewer's Guide

This pull request updates the mocha testing dependency in the hardhat-chai-matchers package from version 10.x to 11.7.0 by modifying the version specifier in package.json, resolving a security issue and pulling in the latest fixes and features.

File-Level Changes

Change Details Files
Upgrade mocha dependency to ^11.7.0
  • Change mocha version spec from ^10.0.0 to ^11.7.0
packages/hardhat-chai-matchers/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
npm/mocha ^11.7.0 🟢 7.3
Details
CheckScoreReason
Maintained🟢 1026 commit(s) and 28 issue activity found in the last 90 days -- score normalized to 10
Security-Policy🟢 10security policy file detected
Code-Review🟢 10all changesets reviewed
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
License🟢 10license file detected
Binary-Artifacts🟢 10no binaries found in the repo
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration
Packaging🟢 10packaging workflow detected
Pinned-Dependencies🟢 5dependency not pinned by hash detected -- score normalized to 5
Fuzzing⚠️ 0project is not fuzzed
SAST🟢 3SAST tool is not run on all commits -- score normalized to 3
Vulnerabilities⚠️ 057 existing vulnerabilities detected

Scanned Files

  • packages/hardhat-chai-matchers/package.json

@Dargon789 Dargon789 merged commit 3288a42 into main Jul 11, 2025
19 of 27 checks passed
@Dargon789 Dargon789 deleted the snyk-upgrade-19df4b88adb01f4000c0f18733852467 branch July 11, 2025 19:19
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants