Part of the js-stellar-sdk modernization epic.
Depends on: Task 3 (Rollup build).
Goal
Absorb the migrated TypeScript js-stellar-base source (currently staged under src/base/) as first-class in-repo code.
Scope
- Promote
src/base/ to a permanent subpath, exposed via @stellar/stellar-sdk/base (or re-exported from the root as today).
- Move
js-stellar-base unit tests into test/unit/base/ and wire them into the existing Vitest runs.
- Remove the
@stellar/stellar-base dependency from package.json.
- Rewrite internal imports (
src/horizon/, src/rpc/, src/contract/, src/webauth/, etc.) to reference the in-repo base module directly instead of the published package.
- Update TypeScript path mappings, export maps, and Rollup entry points so
base is buildable as both a subpath export and as part of the root bundle.
- Document the vendoring in
CONTRIBUTING.md and note in CHANGELOG.md that @stellar/stellar-base is no longer a separate runtime dependency.
Acceptance
Risks
- Downstream projects pinning
@stellar/stellar-base directly will need a migration note in release notes.
Part of the js-stellar-sdk modernization epic.
Depends on: Task 3 (Rollup build).
Goal
Absorb the migrated TypeScript
js-stellar-basesource (currently staged undersrc/base/) as first-class in-repo code.Scope
src/base/to a permanent subpath, exposed via@stellar/stellar-sdk/base(or re-exported from the root as today).js-stellar-baseunit tests intotest/unit/base/and wire them into the existing Vitest runs.@stellar/stellar-basedependency frompackage.json.src/horizon/,src/rpc/,src/contract/,src/webauth/, etc.) to reference the in-repobasemodule directly instead of the published package.baseis buildable as both a subpath export and as part of the root bundle.CONTRIBUTING.mdand note inCHANGELOG.mdthat@stellar/stellar-baseis no longer a separate runtime dependency.Acceptance
@stellar/stellar-baseremoved fromdependencies.import { Keypair } from '@stellar/stellar-sdk'with no extra install.Risks
@stellar/stellar-basedirectly will need a migration note in release notes.