Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,8 @@ implementation in JavaScript that can be used on either Node.js or web browsers.

- **[API Reference](https://stellar.github.io/js-stellar-base/)**

> **Warning!** The Node version of this package uses the [`sodium-native`](https://www.npmjs.com/package/sodium-native) package, a native implementation of [Ed25519](https://ed25519.cr.yp.to/) in Node.js, as an [optional dependency](https://docs.npmjs.com/files/package.json#optionaldependencies).
> This means that if for any reason installation of this package fails, `stellar-base` will fallback to the much slower implementation contained in [`tweetnacl`](https://www.npmjs.com/package/tweetnacl).
>
> If you'd explicitly prefer **not** to install the `sodium-native` package, pass the appropriate flag to skip optional dependencies when installing this package (e.g. `--no-optional` if using `npm install` or `--without-optional` using `yarn install`).
>
> If you are using `stellar-base` in a browser you can ignore this. However, for production backend deployments you should most likely be using `sodium-native`.
> If `sodium-native` is successfully installed and working,
> `StellarBase.FastSigning` variable will be equal `true`. Otherwise it will be
> `false`.
> ⚠️ **Deprecation Notice:** `@stellar/stellar-base` still works, but is no longer actively updated. Future updates, including protocol releases, ship only in [`@stellar/stellar-sdk`](https://www.npmjs.com/package/@stellar/stellar-sdk), which re-exports this package's full API. Switch your dependency to `@stellar/stellar-sdk` to keep receiving updates. ⚠️

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Clarify that migration must update import specifiers

The notice tells users to “Switch your dependency” to @stellar/stellar-sdk, but the Quick start/Install snippets immediately below still install and import @stellar/stellar-base. In projects that remove the base package and keep require("@stellar/stellar-base")/imports unchanged, the SDK re-export is not used and the app fails at module resolution instead of receiving updates. Please make the migration wording or examples explicitly change the import/install target to @stellar/stellar-sdk.

Useful? React with 👍 / 👎.



## Quick start

Expand Down
Loading