Commit d0657f1
Modernization (#1444)
* [Modernization] Make fetch default (#1394)
* Replace __USE_AXIOS__ dynamic require with static fetch default
* Add babel and webpack aliasing to emit axios variant from shared source
* Flip package.json exports: fetch default, /axios opt-in, drop /no-axios
* Update eventsource and remove no-eventsource build (#1395)
* update eventsource to v4.1.0 and remove conditional import of eventsource
* remove the dom-monkeypatch as its now included in the tsconfig lib field
* build and export cjs and esm build varients, remove export of umd bundles
* Base Migration (#1399)
* move stellar-base src under src/base
* migrate from classic yarn to pnpm (#1400)
* remove randomBytes for universal crypto.getRandomValues
* replace sha.js with noble/hashes and update to version 2.2.0
* update BigNumber to v11.0.0
* replace noble/curves with noble/ed25519 for reduced bundle size
* replace toml with smol-toml
* replace URI for native URL (#1402)
* refactor: replace URI usage for native URL + URLSearchParam objects
* allow expandUriTemplate to handle relative templated links
* Tooling modernization: Node 22, husky v9, pnpm minimumReleaseAge, drop nyc (#1408)
* Update husky config + remove nyc
* Root .nvmrc + bump Node to v22
* pnpm minimumReleaseAge config
* Use pnpm workspace (#1417)
* New docs (#1413)
* TypeDoc setup
* P27 updates (#1429)
* Update XDR base URLs and improve Makefile for TypeScript definitions
* pull and regenerate xdr definitions for p27
* handle signing the new SorobanCredential varients
* add CAP-71 delegate-credential signing helpers
- buildAuthorizationEntryPreimage: expose the signature payload (authorizeEntry
now builds its preimage through it)
- buildWithDelegatesEntry: wrap ADDRESS/ADDRESS_V2 into ADDRESS_WITH_DELEGATES,
sorting + de-duping delegates; top-level signature defaults to Void
- authorizeEntry: optional forAddress to fill a specific node (top-level or a
delegate) instead of always the top-level
- export the new helpers + DelegateSignature/BuildWithDelegatesParams from base
* Update readme + pre-push check for docs (#1430)
* Pre-push hook + updated docs
* Update pre-push hook
* Add @stellar/stellar-base migration guide to the installation docs
* Map xdr.HashIdPreimage in typedoc to fix docs:reference build
---------
Co-authored-by: oceans404 <so.orpilla@gmail.com>
* Tx builder type regression (#1438)
* Implement TransactionSource interface for Account and MuxedAccount classes; update TransactionBuilder to use TransactionSource
* TSDoc: Replace @internal with @ignore tag (#1436)
* TSDoc: Replace @internal with @ignore tag
* Add friendbot call builder items
* Dependency updates (#1433)
* Minor: axios + bignumber.js
* Patch: vitest + @vitest
* Minor astro + patch @astro
* Minor: esbuild to v0.27.7 (not latest v0.28.0)
* Some patch + minor
* Major: @rollup/plugin-commonjs
* Major: cross-env + dotenv
* Major: jsdom
* Updated pnpm-lock
* Auth flag namespace (#1441)
* add back AuthFlag namespace
* fix: update build types script for axios to ensure generated types are copied correctly
* P27 guide (#1440)
* add p27 guide
* docs: add task-oriented guides (connect-and-fund, send-a-payment) + internal-link tooling (#1434)
* docs: add internal-link tooling (base-prefix rewriting + dead-link validation)
* docs: add connect-and-fund and send-a-payment guides
* docs: add issue-an-asset guide
* docs: refine issue-an-asset guide (token framing, typed helper, review fixes)
* docs: add query-and-stream guide
* docs: add handle-errors guide
* docs: link guides 02-04 to the handle-errors guide
Add error-handling pointers now that guide 05 exists (sibling-link upgrade):
a primary pointer in guide 02's submit section and lighter pointers in 03/04.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: add invoke-a-contract guide (06)
Teaches invoking a deployed Soroban contract from JS with contract.Client and
AssembledTransaction: connect over RPC, preview a call by simulation, then sign
and send a state change. Uses the increment contract; deployment is linked out
to the Stellar CLI tutorial. Regenerate llms bundles.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: add contract-auth guide (07)
Covers signing Soroban contract authorization for an account other than the
transaction source, framed for AddressV2 (CAP-0071-02) readiness: the same code
is correct on the legacy ADDRESS credential today and on AddressV2 after the
Protocol 28 flip. Distinguishes envelope signing from authorization-entry
signing, and gives a before/after migration for hand-rolled signers
(buildAuthorizationEntryPreimage / authorizeEntry).
Also upgrades the Invoke a Contract guide's closing link to point at this guide,
replaces numbered guide references with named links, and regenerates the llms
bundles.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: fold versioning into the home page, drop it as a guide
Versioning and compatibility is reference material, not a task how-to, so it
moves out of the guides nav into a 'Versioning and compatibility' section on the
home page (README -> index). Repoints the agents.md reference to the new
home-page anchor and regenerates index.md + llms bundles.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: add migration guide (00)
A versioned breaking-changes guide for upgrading to the v16 modernization release (base fold-in, native fetch, ESM, Node 22) and Protocol 27 / 28 Soroban auth (AddressV2). Modeled on viem's migration guide: one section per version, one entry per change, with before/after diffs. Sorts first in the guides nav and opens with a pointer to the home-page versioning section.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: link API references in migration guide (00)
Link the first mention of each documented symbol (Keypair, the auth helpers, contract.Client/basicNodeSigner/signAuthEntries, rpc.Server/Horizon.Server, getLatestLedger, BalanceResponse, SigningCallback) to its reference page, base-agnostic, matching guide 07. Anchors verified against the rendered reference pages; internal link check passes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Ryan Yang <ryan.yang@stellar.org>
Co-authored-by: Iveta <iveta@stellar.org>
* update package version to 16.0.0-rc.1
* fix: improve token formatting logic
---------
Co-authored-by: Iveta <quietbits@users.noreply.github.com>
Co-authored-by: oceans404 <so.orpilla@gmail.com>
Co-authored-by: Steph <91382964+oceans404@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Iveta <iveta@stellar.org>1 parent c5eafa2 commit d0657f1
398 files changed
Lines changed: 182806 additions & 11501 deletions
File tree
- .github/workflows
- .husky
- bin
- config
- docs
- guides
- reference
- public
- scripts
- src
- base
- generated
- numbers
- operations
- util
- bindings
- cli
- contract
- errors
- federation
- horizon
- types
- http-client
- rpc
- starlightComponents
- stellartoml
- styles
- utils
- webauth
- test
- e2e
- src
- integration
- test-utils
- unit
- base
- numbers
- operations
- support
- util
- server
- horizon
- soroban
- spec
- utils
- types
- base32.js
- stellar__js-xdr
- website
- xdr
- curr
- next
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | | - | |
21 | | - | |
22 | 28 | | |
23 | | - | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | | - | |
| 33 | + | |
28 | 34 | | |
29 | | - | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
22 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | | - | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | | - | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | | - | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | | - | |
| 45 | + | |
0 commit comments