Skip to content

chore: update dependencies and remove unused config files - #559

Merged
jleni merged 1 commit into
mainfrom
dev
Jul 28, 2025
Merged

chore: update dependencies and remove unused config files#559
jleni merged 1 commit into
mainfrom
dev

Conversation

@jleni

@jleni jleni commented Jul 28, 2025

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Updated several dependencies to newer versions for improved stability and compatibility.
    • Removed the .nvmrc file specifying the Node.js version.
    • Deleted the .eslintignore file, which may result in ESLint processing additional directories.

@coderabbitai

coderabbitai Bot commented Jul 28, 2025

Copy link
Copy Markdown

Walkthrough

This change deletes the .eslintignore and .nvmrc configuration files and updates several dependency versions in package.json, including both runtime and development dependencies. No source code, logic, or exported/public entities were modified.

Changes

Cohort / File(s) Change Summary
Config File Removals
.eslintignore, .nvmrc
Deleted configuration files: .eslintignore (ESLint ignore rules) and .nvmrc (Node version).
Dependency Updates
package.json
Updated dependency versions: runtime (@ledgerhq/hw-transport-http, axios) and dev (@ledgerhq/hw-transport, @types/node).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jleni
jleni merged commit c3da791 into main Jul 28, 2025
7 of 8 checks passed
@jleni
jleni deleted the dev branch July 28, 2025 17:17

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

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

25-37: Nit: duplicate typings and types keys

types is a synonym for typings; keeping both is harmless but redundant.

-  "typings": "./dist/index.d.ts",
-  "types": "./dist/index.d.ts",
+  "types": "./dist/index.d.ts",
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Knowledge Base: Disabled due to Reviews > Disable Knowledge Base setting

📥 Commits

Reviewing files that changed from the base of the PR and between ce2cbfd and 77c38eb.

⛔ Files ignored due to path filters (2)
  • .yarn/releases/yarn-4.3.1.cjs is excluded by !**/.yarn/**
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • .eslintignore (0 hunks)
  • .nvmrc (0 hunks)
  • package.json (2 hunks)
💤 Files with no reviewable changes (2)
  • .eslintignore
  • .nvmrc
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: test-with-docker
  • GitHub Check: test-with-docker
🔇 Additional comments (1)
package.json (1)

41-53: Ensure the lockfile is regenerated

After runtime dependency bumps, remember to commit the updated pnpm-lock.yaml so CI and consumers get deterministic installs.

Comment thread package.json
Comment on lines +44 to 46
"@ledgerhq/hw-transport-http": "^6.30.8",
"axios": "^1.11.0",
"axios-retry": "^4.5.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Double-check for breaking changes & security advisories in newly-bumped runtime deps

The bumps stay within the same major versions, so breaking-changes risk is low, but both @ledgerhq/hw-transport-http and axios have a history of shipping minor-version breaking changes and security patches.
Please run the full test-suite and scan the new versions for known CVEs before releasing.

Example commands:


🏁 Script executed:

# audit axios & ledger transport
pnpm audit --prod
# run tests to surface runtime regressions
pnpm test

Length of output: 1742


High-Severity Vulnerability in axios via @ledgerhq/hw-transport-http – Upgrade Required

Our pnpm audit --prod surfaced a critical issue (GHSA-jr5f-v2jv-69x6):
The version of axios pulled in by @ledgerhq/hw-transport-http (<1.8.2) is vulnerable to SSRF and credential leakage. Although your top-level axios (^1.11.0) is already patched, the indirect dependency remains at risk.

Please address this by:

  • Bumping @ledgerhq/hw-transport-http to a release that depends on axios ≥1.8.2 (e.g. upgrade to the latest 6.x patch), or adding a package resolution to force axios ≥1.8.2.
  • Running:
    pnpm install
    pnpm audit --prod   # should report 0 vulnerabilities
    pnpm test            # ensure all specs pass locally
  • Confirming no breaking changes have been introduced by reviewing changelogs and executing your full test suite.

Lines to update in package.json (approx. 44–46):

- "@ledgerhq/hw-transport-http": "^6.30.8",
+ "@ledgerhq/hw-transport-http": "^6.31.0",  # or whichever 6.x+ release pins axios ≥1.8.2
🤖 Prompt for AI Agents
In package.json around lines 44 to 46, the dependency
@ledgerhq/hw-transport-http uses a vulnerable axios version below 1.8.2. To fix
this, upgrade @ledgerhq/hw-transport-http to the latest 6.x patch version that
depends on axios 1.8.2 or higher. After updating, run pnpm install, then pnpm
audit --prod to verify no vulnerabilities remain, and finally run pnpm test to
ensure no breaking changes affect the codebase.

Comment thread package.json
Comment on lines +56 to 60
"@ledgerhq/hw-transport": "^6.31.8",
"@types/dockerode": "^3.3.42",
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.0.15",
"@types/node": "^24.1.0",
"@types/pngjs": "^6.0.5",

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

@types/node@24.x does not match the declared Node >= 22 engine

@types/node follows Node’s even-number LTS cadence; 24.x targets an upcoming Node v24 release, while the project explicitly supports Node >= 22.
Mixing the two can provoke false typings or missing APIs at compile-time.

If you only intend to support Node 22, pin to @types/node@22.x instead:

-    "@types/node": "^24.1.0",
+    "@types/node": "^22.0.0",

Otherwise, update the "engines.node" field and CI matrix accordingly.

📝 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
"@ledgerhq/hw-transport": "^6.31.8",
"@types/dockerode": "^3.3.42",
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.0.15",
"@types/node": "^24.1.0",
"@types/pngjs": "^6.0.5",
"@ledgerhq/hw-transport": "^6.31.8",
"@types/dockerode": "^3.3.42",
"@types/fs-extra": "^11.0.4",
- "@types/node": "^24.1.0",
+ "@types/node": "^22.0.0",
"@types/pngjs": "^6.0.5",
🤖 Prompt for AI Agents
In package.json around lines 56 to 60, the version of @types/node is set to
24.x, which does not align with the declared Node engine version >= 22. To fix
this, either change the @types/node version to 22.x to match the supported Node
version or update the "engines.node" field and the CI configuration to support
Node 24. Choose one approach to ensure consistency between the Node engine
version and the @types/node typings.

@jleni
jleni restored the dev branch July 28, 2025 17:22
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