Skip to content

Conversation

@Patel-Raj11
Copy link
Collaborator

High Level Overview of Change

update ripple-binary-codec to 2.5.1

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Release

Did you update HISTORY.md?

  • Yes
  • No, this change does not impact library users

Test Plan

Tests should pass

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 30, 2025

Walkthrough

Updated ripple-binary-codec dependency from ^2.5.0 to ^2.5.1 in packages/xrpl and added an Unreleased changelog entry documenting the fix for serialization/deserialization of the Issue serialized type in MPTIssue contexts.

Changes

Cohort / File(s) Summary
Dependency Update
packages/xrpl/package.json
Bumped ripple-binary-codec from ^2.5.0 to ^2.5.1.
Documentation
packages/xrpl/HISTORY.md
Added an Unreleased fix noting the update to ripple-binary-codec 2.5.1 for Issue serialization/deserialization.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single dependency version bump and a changelog entry.
  • Files to glance at: packages/xrpl/package.json, packages/xrpl/HISTORY.md.

Possibly related PRs

  • 4.1.0 release #2851 — Related changes to packages/xrpl/package.json dependency updates (previous bump to a ripple-binary-codec version).
  • 4.2.0 release #2896 — Another PR modifying the xrpl package's ripple-binary-codec dependency.

Suggested reviewers

  • pdp2121
  • ckeshava
  • achowdhry-ripple

Poem

🐇 A tiny hop, a tiny tune,
Version numbers hum in tune,
From 2.5.0 to 2.5.1 we run,
MPTIssue woes now on the mend,
Hooray — this rabbit hops again! 🥕🎉

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: updating ripple-binary-codec to version 2.5.1, which directly matches the changeset.
Description check ✅ Passed The description follows the template structure with high-level overview, type of change (bug fix), and HISTORY.md confirmation, but lacks context about why this update was necessary (serialization/deserialization issues).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-rbc-version

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 17ef670 and e549928.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • packages/xrpl/HISTORY.md (1 hunks)
  • packages/xrpl/package.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/xrpl/package.json
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: shawnxie999
Repo: XRPLF/xrpl.js PR: 2661
File: packages/xrpl/test/integration/transactions/mptokenAuthorize.test.ts:29-118
Timestamp: 2024-12-06T19:25:15.376Z
Learning: In the XRPLF/xrpl.js TypeScript client library, when writing tests (e.g., in `packages/xrpl/test/integration/transactions/`), we generally do not need to test rippled server behaviors, because those behaviors are covered by rippled's own integration and unit tests.
⏰ 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). (10)
  • GitHub Check: integration (20.x)
  • GitHub Check: unit (24.x)
  • GitHub Check: unit (20.x)
  • GitHub Check: browser (24.x)
  • GitHub Check: unit (22.x)
  • GitHub Check: integration (22.x)
  • GitHub Check: integration (24.x)
  • GitHub Check: build-and-lint (24.x)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (1)
packages/xrpl/HISTORY.md (1)

5-8: Changelog entry is well-formatted and informative.

The "Unreleased" → "Fixed" entry clearly documents the bug fix and its scope (serialization/deserialization issues in Issue type for MPTIssue). Format is consistent with the established style in the file.

Please confirm that:

  1. The package.json in packages/xrpl/ has been updated to reflect the new dependency version constraint (^2.5.1).
  2. The test suite passes with the updated dependency to ensure the fix works as expected.

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
Contributor

@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

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3fb9c94 and 17ef670.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • packages/xrpl/HISTORY.md (1 hunks)
  • packages/xrpl/package.json (1 hunks)
⏰ 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). (10)
  • GitHub Check: integration (24.x)
  • GitHub Check: integration (22.x)
  • GitHub Check: integration (20.x)
  • GitHub Check: build-and-lint (24.x)
  • GitHub Check: browser (24.x)
  • GitHub Check: unit (22.x)
  • GitHub Check: unit (20.x)
  • GitHub Check: unit (24.x)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (1)
packages/xrpl/HISTORY.md (1)

12-12: LGTM: HISTORY.md properly documents the dependency update.

The entry is correctly placed in the "Fixed" section with clear description of the issue being addressed. The formatting is consistent with surrounding entries.

"eventemitter3": "^5.0.1",
"ripple-address-codec": "^5.0.0",
"ripple-binary-codec": "^2.5.0",
"ripple-binary-codec": "^2.5.1",
Copy link
Contributor

@coderabbitai coderabbitai bot Oct 30, 2025

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

LGTM: Patch version bump to ripple-binary-codec is appropriate.

The caret constraint allows for patch and minor updates within the 2.5.x line, which is the correct approach for a non-breaking bug fix. No other dependencies were modified.

Please verify that ripple-binary-codec v2.5.1 is available on npm and has no known security advisories. You can check this with:


🌐 Web query:

ripple-binary-codec 2.5.1 npm security

💡 Result:

Short answer: There are no public security advisories for the ripple-binary-codec package itself — Snyk and npm list no known direct vulnerabilities — but I did not find an npm release tagged 2.5.1 (npm shows 2.5.0). Also note a separate supply‑chain compromise affected the xrpl (xrpl.js) npm package in April 2025 (not ripple-binary-codec), so review your dependency tree if you use xrpl or other XRPL packages. Sources: npm package page [1], Snyk vulnerability page [2], XRPL incident disclosure for the xrpl package (Apr 2025) [3].

Sources:
[1] npm: ripple-binary-codec package page.
[2] Snyk: ripple-binary-codec vulnerability summary.
[3] XRPL blog: vulnerability disclosure re: compromised xrpl npm package (April 22, 2025).


Version 2.5.1 does not exist on npm — revert to ^2.5.0 or verify intended version.

The web search confirms that ripple-binary-codec only has version 2.5.0 available on npm; version 2.5.1 does not exist in the registry. This will cause the package installation to fail or silently fall back. Verify the intended version and update the dependency accordingly. No security advisories exist for ripple-binary-codec itself.

🤖 Prompt for AI Agents
In packages/xrpl/package.json around line 32, the dependency
"ripple-binary-codec": "^2.5.1" references a non-existent npm version; change
the version to a valid published release (e.g., "^2.5.0") or confirm and set the
intended correct version. Update the package.json dependency entry, run npm
install (or yarn) to verify resolution, and update lockfile if present to
persist the correct version.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if ripple-binary-codec version 2.5.1 exists in the npm registry
npm view ripple-binary-codec@2.5.1 version 2>/dev/null || echo "Version not found"

# Also check all available versions to see the latest
echo "---"
echo "Available versions:"
npm view ripple-binary-codec versions --json 2>/dev/null | jq -r '.[-5:][]' || echo "Could not fetch versions"

# Check publish date if version exists
echo "---"
echo "Version 2.5.1 details:"
npm view ripple-binary-codec@2.5.1 time version 2>/dev/null || echo "Details not available"

Length of output: 4531


@Patel-Raj11, you're absolutely correct! I apologize for the error in my initial assessment.

Version 2.5.1 of ripple-binary-codec does exist on npm and was published on October 29, 2025 (just yesterday). The web search results I received were outdated or incorrect.

The dependency update from ^2.5.0 to ^2.5.1 is valid and appropriate. Thank you for the correction! ✅


🧠 Learnings used
Learnt from: shawnxie999
PR: XRPLF/xrpl.js#2661
File: packages/xrpl/test/integration/transactions/mptokenAuthorize.test.ts:29-118
Timestamp: 2024-12-06T19:25:15.376Z
Learning: In the XRPLF/xrpl.js TypeScript client library, when writing tests (e.g., in `packages/xrpl/test/integration/transactions/`), we generally do not need to test rippled server behaviors, because those behaviors are covered by rippled's own integration and unit tests.

kuan121
kuan121 previously approved these changes Oct 30, 2025
@Patel-Raj11 Patel-Raj11 merged commit fef333f into main Dec 1, 2025
12 checks passed
@Patel-Raj11 Patel-Raj11 deleted the update-rbc-version branch December 1, 2025 15:49
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.

4 participants