Skip to content

chore: note js-stellar-sdk v15.1.0 BalanceResponse.revocable deprecation#2472

Closed
ElliotFriend wants to merge 1 commit into
mainfrom
chore/sdk-examples-javascript-v15.1.0
Closed

chore: note js-stellar-sdk v15.1.0 BalanceResponse.revocable deprecation#2472
ElliotFriend wants to merge 1 commit into
mainfrom
chore/sdk-examples-javascript-v15.1.0

Conversation

@ElliotFriend

Copy link
Copy Markdown
Contributor

Summary

  • Adds an :::info callout to the JavaScript SDK section of docs/tools/sdks/client-sdks.mdx noting the deprecation of BalanceResponse.revocable and providing a before/after migration snippet

Context

js-stellar-sdk v15.1.0 was released May 4, 2026. The revocable field on BalanceResponse (trustline balance objects returned from loadAccount()) is now deprecated in favour of authorizedToMaintainLiabilities.

Other notable changes in v15.1.0:

  • Domain validation in FederationServer now follows RFC 1035
  • Fixed polling loop logic in RpcServer.pollTransaction
  • Fixed URL mutation issues in FederationServer and CallBuilder.stream()
  • Fixed trustline flag bitmasks in getAssetBalance
  • Added transactions collection to account responses
  • Upgraded axios from 1.14.0 to 1.15.0

No existing code examples used .revocable directly, so only the informational callout with a migration snippet was added.

Test plan

  • Verify the info callout renders correctly on the Client SDKs page
  • Confirm the code snippet in the callout is syntactically valid

https://claude.ai/code/session_0153obE5b1Rb9p6MAFVydK9R


Generated by Claude Code

js-stellar-sdk v15.1.0 (May 4, 2026) deprecates BalanceResponse.revocable
in favour of authorizedToMaintainLiabilities on trustline balance objects.
Added an info callout in the JavaScript SDK section of client-sdks.mdx
with a before/after migration snippet.

https://claude.ai/code/session_0153obE5b1Rb9p6MAFVydK9R
Copilot AI review requested due to automatic review settings May 28, 2026 22:10

Copilot AI left a comment

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.

Pull request overview

Adds documentation to the Client SDKs page to alert JavaScript SDK users about a newly deprecated field in js-stellar-sdk v15.1.0 and show a simple migration mapping.

Changes:

  • Added an :::info callout under the JavaScript SDK section noting BalanceResponse.revocable deprecation.
  • Included a before/after JavaScript snippet to migrate to authorizedToMaintainLiabilities.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


:::info v15.1.0 deprecation

`BalanceResponse.revocable` is deprecated in favour of `authorizedToMaintainLiabilities`. Update any code that reads this field on trustline balance objects returned from `loadAccount()`:
@stellar-jenkins-ci

Copy link
Copy Markdown

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.

3 participants