@stellar/stellar-sdk 16.0.0-rc.1 → 16.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -28
- package/dist/stellar-sdk-axios.js +247 -232
- package/dist/stellar-sdk-axios.js.map +1 -1
- package/dist/stellar-sdk-axios.min.js +1 -1
- package/dist/stellar-sdk-axios.min.js.map +1 -1
- package/dist/stellar-sdk.js +50 -35
- package/dist/stellar-sdk.js.map +1 -1
- package/dist/stellar-sdk.min.js +1 -1
- package/dist/stellar-sdk.min.js.map +1 -1
- package/lib/axios/cjs/base/auth.js +11 -11
- package/lib/axios/cjs/base/auth.js.map +1 -1
- package/lib/axios/cjs/base/keypair.js +1 -1
- package/lib/axios/cjs/base/keypair.js.map +1 -1
- package/lib/axios/cjs/bindings/config.js +1 -1
- package/lib/axios/cjs/contract/assembled_transaction.js +6 -1
- package/lib/axios/cjs/contract/assembled_transaction.js.map +1 -1
- package/lib/axios/cjs/contract/types.js.map +1 -1
- package/lib/axios/cjs/horizon/horizon_axios_client.js +1 -1
- package/lib/axios/cjs/rpc/axios.js +1 -1
- package/lib/axios/cjs/rpc/server.js +13 -4
- package/lib/axios/cjs/rpc/server.js.map +1 -1
- package/lib/axios/esm/base/auth.d.ts +19 -7
- package/lib/axios/esm/base/auth.js +11 -11
- package/lib/axios/esm/base/auth.js.map +1 -1
- package/lib/axios/esm/base/keypair.js +1 -1
- package/lib/axios/esm/base/keypair.js.map +1 -1
- package/lib/axios/esm/bindings/config.js +1 -1
- package/lib/axios/esm/contract/assembled_transaction.js +6 -1
- package/lib/axios/esm/contract/assembled_transaction.js.map +1 -1
- package/lib/axios/esm/contract/types.d.ts +9 -0
- package/lib/axios/esm/contract/types.js.map +1 -1
- package/lib/axios/esm/horizon/horizon_axios_client.js +1 -1
- package/lib/axios/esm/rpc/axios.js +1 -1
- package/lib/axios/esm/rpc/server.d.ts +7 -2
- package/lib/axios/esm/rpc/server.js +13 -4
- package/lib/axios/esm/rpc/server.js.map +1 -1
- package/lib/cjs/base/auth.js +11 -11
- package/lib/cjs/base/auth.js.map +1 -1
- package/lib/cjs/base/keypair.js +1 -1
- package/lib/cjs/base/keypair.js.map +1 -1
- package/lib/cjs/bindings/config.js +1 -1
- package/lib/cjs/contract/assembled_transaction.js +6 -1
- package/lib/cjs/contract/assembled_transaction.js.map +1 -1
- package/lib/cjs/contract/types.js.map +1 -1
- package/lib/cjs/horizon/horizon_axios_client.js +1 -1
- package/lib/cjs/rpc/axios.js +1 -1
- package/lib/cjs/rpc/server.js +13 -4
- package/lib/cjs/rpc/server.js.map +1 -1
- package/lib/esm/base/auth.d.ts +19 -7
- package/lib/esm/base/auth.js +11 -11
- package/lib/esm/base/auth.js.map +1 -1
- package/lib/esm/base/keypair.js +1 -1
- package/lib/esm/base/keypair.js.map +1 -1
- package/lib/esm/bindings/config.js +1 -1
- package/lib/esm/contract/assembled_transaction.js +6 -1
- package/lib/esm/contract/assembled_transaction.js.map +1 -1
- package/lib/esm/contract/types.d.ts +9 -0
- package/lib/esm/contract/types.js.map +1 -1
- package/lib/esm/horizon/horizon_axios_client.js +1 -1
- package/lib/esm/rpc/axios.js +1 -1
- package/lib/esm/rpc/server.d.ts +7 -2
- package/lib/esm/rpc/server.js +13 -4
- package/lib/esm/rpc/server.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,31 +64,7 @@ You can use a CDN:
|
|
|
64
64
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/stellar-sdk/{version}/stellar-sdk.js"></script>
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Note that this method relies on using a third party to host the JS library. This
|
|
70
|
-
may not be entirely secure. You can self-host it via [Bower](http://bower.io):
|
|
71
|
-
|
|
72
|
-
```shell
|
|
73
|
-
bower install @stellar/stellar-sdk
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
and include it in the browser:
|
|
77
|
-
|
|
78
|
-
```html
|
|
79
|
-
<script src="./bower_components/stellar-sdk/stellar-sdk.js"></script>
|
|
80
|
-
<script>
|
|
81
|
-
console.log(StellarSdk);
|
|
82
|
-
</script>
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
If you don't want to use or install Bower, you can copy the packaged JS files
|
|
86
|
-
from the [Bower repo](https://github.com/stellar/bower-js-stellar-sdk), or just
|
|
87
|
-
build the package yourself locally (see
|
|
88
|
-
[Developing :arrow_right: Building](#building)) and copy the bundle.
|
|
89
|
-
|
|
90
|
-
| Always make sure that you are using the latest version number. They can be found on the [releases page](https://github.com/stellar/js-stellar-sdk/releases) in GitHub. |
|
|
91
|
-
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
67
|
+
> **Note:** Always make sure that you are using the latest version number. They can be found on the [releases page](https://github.com/stellar/js-stellar-sdk/releases) in GitHub.
|
|
92
68
|
|
|
93
69
|
### Custom Installation
|
|
94
70
|
|
|
@@ -155,9 +131,9 @@ Futurenet expose their own).
|
|
|
155
131
|
|
|
156
132
|
These docs and the API reference cover the latest version only. To read docs for
|
|
157
133
|
an older version, find its Git tag on the
|
|
158
|
-
[releases page](https://github.com/stellar/js-stellar-sdk/releases) and browse
|
|
159
|
-
`docs/` directory at that ref on GitHub. The release notes there mark the
|
|
160
|
-
changes in each version.
|
|
134
|
+
[releases page](https://github.com/stellar/js-stellar-sdk/releases) and browse
|
|
135
|
+
the `docs/` directory at that ref on GitHub. The release notes there mark the
|
|
136
|
+
breaking changes in each version.
|
|
161
137
|
|
|
162
138
|
## Usage
|
|
163
139
|
|
|
@@ -171,6 +147,19 @@ The usage documentation for this library lives in a handful of places:
|
|
|
171
147
|
for AI tools. The site's URL, base path, and AI policy values live in
|
|
172
148
|
[`config/site.ts`](config/site.ts).
|
|
173
149
|
|
|
150
|
+
### AI agent documentation
|
|
151
|
+
|
|
152
|
+
Agents can use the documentation bundles published on the website:
|
|
153
|
+
|
|
154
|
+
- [`llms.txt`](https://stellar.github.io/js-stellar-sdk/llms.txt) — an index of
|
|
155
|
+
the guides, reference pages, and other agent-facing docs.
|
|
156
|
+
- [`llms-full.txt`](https://stellar.github.io/js-stellar-sdk/llms-full.txt) —
|
|
157
|
+
the full documentation corpus plus the changelog in one text file.
|
|
158
|
+
|
|
159
|
+
These generated bundles are not committed to the repo. To inspect bundles for a
|
|
160
|
+
local branch, run `pnpm docs:llms`; the generated files are written under
|
|
161
|
+
`public/` for the website build.
|
|
162
|
+
|
|
174
163
|
You can also refer to:
|
|
175
164
|
|
|
176
165
|
- the [documentation](https://developers.stellar.org/docs/data/horizon) for the
|
|
@@ -204,6 +193,11 @@ that support [fetch](https://developer.mozilla.org/en-US/docs/Web/API/fetch),
|
|
|
204
193
|
[MessageEvent](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent),
|
|
205
194
|
[EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget).
|
|
206
195
|
|
|
196
|
+
React Native apps using the Hermes engine may need to polyfill broken typed
|
|
197
|
+
array methods such as `subarray`, since this compatibility is no longer
|
|
198
|
+
provided by `@stellar/js-xdr`. If you run into issues, consider a polyfill such
|
|
199
|
+
as `@exodus/patch-broken-hermes-typed-arrays`.
|
|
200
|
+
|
|
207
201
|
#### Usage with Expo managed workflows
|
|
208
202
|
|
|
209
203
|
Expo has the same two requirements as React Native above — a global `Buffer` and
|