Skip to content

chore(sdk-examples): update JS SDK import path to scoped package#2498

Merged
ElliotFriend merged 2 commits into
mainfrom
chore/sdk-examples-javascript-v15.1.0
Jun 15, 2026
Merged

chore(sdk-examples): update JS SDK import path to scoped package#2498
ElliotFriend merged 2 commits into
mainfrom
chore/sdk-examples-javascript-v15.1.0

Conversation

@ElliotFriend

Copy link
Copy Markdown
Contributor

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.).

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>
Copilot AI review requested due to automatic review settings June 15, 2026 15:45

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

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 import and CommonJS require statements 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.

Comment thread docs/build/guides/basics/verify-trustlines.mdx Outdated
Comment thread docs/build/guides/basics/verify-trustlines.mdx Outdated
Comment thread docs/learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx Outdated
@stellar-jenkins-ci

Copy link
Copy Markdown

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@stellar-jenkins-ci

Copy link
Copy Markdown

@ElliotFriend ElliotFriend merged commit 64da816 into main Jun 15, 2026
9 checks passed
@ElliotFriend ElliotFriend deleted the chore/sdk-examples-javascript-v15.1.0 branch June 15, 2026 19:43
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>
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