chore: note js-stellar-sdk v15.1.0 BalanceResponse.revocable deprecation#2472
Closed
ElliotFriend wants to merge 1 commit into
Closed
chore: note js-stellar-sdk v15.1.0 BalanceResponse.revocable deprecation#2472ElliotFriend wants to merge 1 commit into
ElliotFriend wants to merge 1 commit into
Conversation
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
Contributor
There was a problem hiding this comment.
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
:::infocallout under the JavaScript SDK section notingBalanceResponse.revocabledeprecation. - 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()`: |
|
Preview is available here: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
:::infocallout to the JavaScript SDK section ofdocs/tools/sdks/client-sdks.mdxnoting the deprecation ofBalanceResponse.revocableand providing a before/after migration snippetContext
js-stellar-sdkv15.1.0 was released May 4, 2026. Therevocablefield onBalanceResponse(trustline balance objects returned fromloadAccount()) is now deprecated in favour ofauthorizedToMaintainLiabilities.Other notable changes in v15.1.0:
FederationServernow follows RFC 1035RpcServer.pollTransactionFederationServerandCallBuilder.stream()getAssetBalancetransactionscollection to account responsesNo existing code examples used
.revocabledirectly, so only the informational callout with a migration snippet was added.Test plan
https://claude.ai/code/session_0153obE5b1Rb9p6MAFVydK9R
Generated by Claude Code