Skip to content

fix/deps for tradetrust#49

Closed
isaackps wants to merge 1 commit intomasterfrom
fix/deps-tt
Closed

fix/deps for tradetrust#49
isaackps wants to merge 1 commit intomasterfrom
fix/deps-tt

Conversation

@isaackps
Copy link
Copy Markdown

@isaackps isaackps commented Apr 24, 2026

Summary

Fix deps for TT repo

Summary by CodeRabbit

  • Chores
    • Updated dependency versions for TradeTrust library and adjusted versions of Ethers and web-did-resolver libraries.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

📝 Walkthrough

Walkthrough

Three dependency versions were adjusted in package.json: @tradetrust-tt/tradetrust bumped to ^6.10.3, ethers downgraded to ^5.7.2, and web-did-resolver pinned to exact version 2.0.4.

Changes

Cohort / File(s) Summary
Dependency Version Updates
package.json
Three package versions modified: @tradetrust-tt/tradetrust upgraded from ^6.10.1 to ^6.10.3, ethers downgraded from ^5.8.0 to ^5.7.2, and web-did-resolver changed from caret range ^2.0.4 to exact pin 2.0.4.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • rongquan1

Poem

🐰 Hop, hop, versions take flight,
Dependencies shimmer so bright,
Downgrade, upgrade, one pin so neat,
Package updates, our job complete! 📦✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete; it lacks required sections including detailed Changes and Issues sections as specified in the template. Expand the description to include a detailed Changes section listing all dependency updates and an Issues section linking related issues or stories.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix/deps for tradetrust' clearly relates to the changeset which updates dependency versions in package.json for the TradeTrust project.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/deps-tt

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
package.json (1)

39-39: Exact pin on web-did-resolver — intentional?

Switching from ^2.0.4 to 2.0.4 freezes this dep at a single version. While that's fine if you're working around a known bad release, the current evidence suggests it's unnecessary:

  • Many patch releases are available (2.0.5 through 2.0.32), blocking security and bug fixes.
  • src/did/resolver.ts only uses getResolver() with no arguments—a stable API surface.
  • ethr-did-resolver does not depend on web-did-resolver, so no version conflict risk exists.

If the pin is intentional, add a brief comment explaining why (e.g., // pinned due to X). Otherwise, revert to ^2.0.4 to benefit from patch updates.

🔧 Suggested revert if the pin is not deliberate
-    "web-did-resolver": "2.0.4"
+    "web-did-resolver": "^2.0.4"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` at line 39, The dependency "web-did-resolver" is pinned to
2.0.4; either loosen it back to a caret range to receive patch updates (change
"web-did-resolver": "2.0.4" -> "web-did-resolver": "^2.0.4") or, if the pin was
intentional, add a brief comment near the package entry explaining why it's
pinned (e.g., pinned due to a specific regression) and reference that decision
in the repo; note that src/did/resolver.ts uses getResolver() with no extra args
so a caret range is safe unless you have a specific reason to pin.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Line 35: The package.json currently lists conflicting versions for ethers
across dependencies.ethers, overrides.ethers, and peerDependencies.ethers; pick
one version (either ^5.7.2 or ^5.8.0) and make them consistent: update
dependencies.ethers, overrides.ethers, and peerDependencies.ethers to the same
chosen semver string and remove any redundant override if you want the natural
resolution to apply; if you intentionally downgraded to ^5.7.2, keep overrides
in sync or remove the override and document the reason in the PR description.

---

Nitpick comments:
In `@package.json`:
- Line 39: The dependency "web-did-resolver" is pinned to 2.0.4; either loosen
it back to a caret range to receive patch updates (change "web-did-resolver":
"2.0.4" -> "web-did-resolver": "^2.0.4") or, if the pin was intentional, add a
brief comment near the package entry explaining why it's pinned (e.g., pinned
due to a specific regression) and reference that decision in the repo; note that
src/did/resolver.ts uses getResolver() with no extra args so a caret range is
safe unless you have a specific reason to pin.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 15e5cb35-1273-4013-af69-747cd4793e48

📥 Commits

Reviewing files that changed from the base of the PR and between 1cb2616 and 961e213.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json

Comment thread package.json
"debug": "^4.3.1",
"did-resolver": "^3.1.0",
"ethers": "^5.8.0",
"ethers": "^5.7.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

ethers v5.7.2 vs 5.8.0 changelog breaking changes or regressions

💡 Result:

Ethers.js v5.8.0 is a security-focused maintenance release for the legacy v5 branch after v5.7.2. There are no documented breaking changes or regressions in the official release notes. Key changes: - Updated elliptic library to address npm audit warnings (bug fixes in elliptic do not affect ethers functionality). - Bumped ws package to fix DoS vulnerability via excessive HTTP headers in WebSocket connections. - Added ENS support for Sepolia. - Added modern networks, updated third-party provider URLs (e.g., Alchemy, QuickNode). A minor code reordering in the bundled UMD file (ethers.umd.js) around line 11820 moves an if-statement for hex string padding, but this is a non-functional change from rebuilding with updated dependencies. The release explicitly addresses security audit issues without altering the public API. For bundled file diffs, refer to the mentioned gist in the release notes (not surfaced in search results). Upgrade is recommended for security fixes.

Citations:


🏁 Script executed:

git ls-files | grep -E "^package\.json$"

Repository: TradeTrust/tt-verify

Length of output: 77


🏁 Script executed:

cat -n package.json | head -80

Repository: TradeTrust/tt-verify

Length of output: 3202


Resolve the version inconsistency between dependencies, overrides, and peerDependencies for ethers.

Line 35 pins dependencies.ethers to ^5.7.2, but line 42 pins overrides.ethers to ^5.8.0. npm overrides take precedence, so the override will force all resolutions to ^5.8.0 regardless of the dependency version, negating the stated downgrade and creating divergence from peerDependencies.ethers: ^5.7.2 (line 69).

Choose one direction and align all three:

Option A — align everything on 5.7.2
   "overrides": {
-    "ethers": "^5.8.0"
+    "ethers": "^5.7.2"
   },
Option B — keep 5.8.0 as before
-    "ethers": "^5.7.2",
+    "ethers": "^5.8.0",

If a specific issue with 5.8.0 motivated the downgrade, document it in the PR description. Note: v5.8.0 is a security-focused release with no documented breaking changes or regressions from v5.7.2.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"ethers": "^5.7.2",
"ethers": "^5.8.0",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` at line 35, The package.json currently lists conflicting
versions for ethers across dependencies.ethers, overrides.ethers, and
peerDependencies.ethers; pick one version (either ^5.7.2 or ^5.8.0) and make
them consistent: update dependencies.ethers, overrides.ethers, and
peerDependencies.ethers to the same chosen semver string and remove any
redundant override if you want the natural resolution to apply; if you
intentionally downgraded to ^5.7.2, keep overrides in sync or remove the
override and document the reason in the PR description.

@isaackps isaackps closed this Apr 24, 2026
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.

1 participant