chore(sdk-examples): update JS SDK import path to scoped package#2498
Merged
Conversation
The JavaScript SDK was renamed from the unscoped `stellar-sdk` npm package to `@stellar/stellar-sdk` in v11.0.0 (current latest v15.1.0). The unscoped package is deprecated and pins to a pre-v11 release. Update all 16 import/require statements across 12 docs pages to the scoped `@stellar/stellar-sdk` package name. No API usage changed — these pages already use current APIs (Horizon.Server, rpc namespace, etc.). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates JavaScript/TypeScript code snippets in the docs to use the scoped npm package name @stellar/stellar-sdk instead of the deprecated unscoped stellar-sdk, aligning examples with the current SDK distribution.
Changes:
- Updated ESM
importand CommonJSrequirestatements across the affected MDX pages to reference@stellar/stellar-sdk. - Kept existing example logic intact while modernizing the package import path used in documentation snippets.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/tokens/quickstart.mdx | Updates SDK import to the scoped package in the quickstart snippet. |
| docs/tokens/publishing-asset-info.mdx | Updates CommonJS require to the scoped package in the Horizon example. |
| docs/tokens/how-to-issue-an-asset.mdx | Updates two CommonJS require statements to the scoped package in issuance examples. |
| docs/tokens/control-asset-access.mdx | Updates CommonJS require to the scoped package in the authorization example. |
| docs/platforms/stellar-disbursement-platform/admin-guide/making-your-wallet-sdp-ready.mdx | Updates Keypair import to the scoped package in the signature verification snippet. |
| docs/learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx | Updates SDK require to the scoped package (but the snippet still uses the legacy sdk.Server constructor). |
| docs/data/apis/horizon/api-reference/structure/pagination/README.mdx | Updates CommonJS require to the scoped package in the pagination request example. |
| docs/data/apis/horizon/api-reference/structure/pagination/page-arguments.mdx | Updates CommonJS require to the scoped package in the page-arguments example. |
| docs/build/guides/basics/verify-trustlines.mdx | Updates several imports to the scoped package, but still references unscoped stellar-sdk/rpc in two code blocks. |
| docs/build/apps/wallet/sep24.mdx | Updates TypeScript import to the scoped package in the SEP-24 example. |
| docs/build/apps/example-application-tutorial/contacts-list.mdx | Updates StrKey import to the scoped package in the tutorial snippet. |
| docs/build/apps/example-application-tutorial/confirmation-modal.mdx | Updates two scoped SDK imports in the modal and signup snippets. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Preview is available here: |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Preview is available here: |
briwylde08
approved these changes
Jun 15, 2026
zachfedor
pushed a commit
to zachfedor/stellar-docs
that referenced
this pull request
Jun 18, 2026
…llar#2498) * chore(sdk-examples): update JS SDK import path to scoped package The JavaScript SDK was renamed from the unscoped `stellar-sdk` npm package to `@stellar/stellar-sdk` in v11.0.0 (current latest v15.1.0). The unscoped package is deprecated and pins to a pre-v11 release. Update all 16 import/require statements across 12 docs pages to the scoped `@stellar/stellar-sdk` package name. No API usage changed — these pages already use current APIs (Horizon.Server, rpc namespace, etc.). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
The JavaScript SDK was renamed from the unscoped
stellar-sdknpm package to@stellar/stellar-sdkin v11.0.0 (current latest v15.1.0). The unscoped package is deprecated and pins to a pre-v11 release.Update all 16 import/require statements across 12 docs pages to the scoped
@stellar/stellar-sdkpackage name. No API usage changed — these pages already use current APIs (Horizon.Server, rpc namespace, etc.).