@stellar/stellar-sdk 14.1.0 → 14.2.0

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.
Files changed (119) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +14 -20
  3. package/dist/stellar-sdk-minimal.js +449 -334
  4. package/dist/stellar-sdk-minimal.min.js +1 -1
  5. package/dist/stellar-sdk-no-axios.js +449 -334
  6. package/dist/stellar-sdk-no-axios.min.js +1 -1
  7. package/dist/stellar-sdk-no-eventsource.js +698 -510
  8. package/dist/stellar-sdk-no-eventsource.min.js +1 -1
  9. package/dist/stellar-sdk.js +698 -510
  10. package/dist/stellar-sdk.min.js +1 -1
  11. package/lib/contract/client.js +2 -2
  12. package/lib/contract/utils.js +7 -7
  13. package/lib/federation/index.d.ts +2 -2
  14. package/lib/horizon/call_builder.js +1 -1
  15. package/lib/horizon/horizon_api.js +0 -1
  16. package/lib/horizon/horizon_axios_client.js +4 -4
  17. package/lib/horizon/index.d.ts +1 -1
  18. package/lib/horizon/types/effects.d.ts +41 -41
  19. package/lib/horizon/types/trade.d.ts +1 -1
  20. package/lib/http-client/fetch-client.d.ts +2 -2
  21. package/lib/http-client/fetch-client.js +16 -16
  22. package/lib/http-client/index.js +2 -2
  23. package/lib/http-client/types.d.ts +2 -2
  24. package/lib/index.d.ts +11 -11
  25. package/lib/index.js +2 -2
  26. package/lib/minimal/contract/client.js +2 -2
  27. package/lib/minimal/contract/utils.js +7 -7
  28. package/lib/minimal/federation/index.d.ts +2 -2
  29. package/lib/minimal/horizon/call_builder.js +1 -1
  30. package/lib/minimal/horizon/horizon_api.js +0 -1
  31. package/lib/minimal/horizon/horizon_axios_client.js +4 -4
  32. package/lib/minimal/horizon/index.d.ts +1 -1
  33. package/lib/minimal/horizon/types/effects.d.ts +41 -41
  34. package/lib/minimal/horizon/types/trade.d.ts +1 -1
  35. package/lib/minimal/http-client/fetch-client.d.ts +2 -2
  36. package/lib/minimal/http-client/fetch-client.js +16 -16
  37. package/lib/minimal/http-client/index.js +2 -2
  38. package/lib/minimal/http-client/types.d.ts +2 -2
  39. package/lib/minimal/index.d.ts +11 -11
  40. package/lib/minimal/index.js +2 -2
  41. package/lib/minimal/rpc/api.d.ts +18 -9
  42. package/lib/minimal/rpc/api.js +3 -3
  43. package/lib/minimal/rpc/axios.js +3 -3
  44. package/lib/minimal/rpc/browser.d.ts +2 -2
  45. package/lib/minimal/rpc/index.d.ts +1 -1
  46. package/lib/minimal/rpc/parsers.d.ts +2 -2
  47. package/lib/minimal/rpc/parsers.js +19 -19
  48. package/lib/minimal/rpc/server.d.ts +72 -11
  49. package/lib/minimal/rpc/server.js +383 -267
  50. package/lib/minimal/rpc/transaction.d.ts +2 -2
  51. package/lib/minimal/rpc/transaction.js +6 -6
  52. package/lib/minimal/webauth/index.d.ts +2 -2
  53. package/lib/no-axios/contract/client.js +2 -2
  54. package/lib/no-axios/contract/utils.js +7 -7
  55. package/lib/no-axios/federation/index.d.ts +2 -2
  56. package/lib/no-axios/horizon/call_builder.js +1 -1
  57. package/lib/no-axios/horizon/horizon_api.js +0 -1
  58. package/lib/no-axios/horizon/horizon_axios_client.js +4 -4
  59. package/lib/no-axios/horizon/index.d.ts +1 -1
  60. package/lib/no-axios/horizon/types/effects.d.ts +41 -41
  61. package/lib/no-axios/horizon/types/trade.d.ts +1 -1
  62. package/lib/no-axios/http-client/fetch-client.d.ts +2 -2
  63. package/lib/no-axios/http-client/fetch-client.js +16 -16
  64. package/lib/no-axios/http-client/index.js +2 -2
  65. package/lib/no-axios/http-client/types.d.ts +2 -2
  66. package/lib/no-axios/index.d.ts +11 -11
  67. package/lib/no-axios/index.js +2 -2
  68. package/lib/no-axios/rpc/api.d.ts +18 -9
  69. package/lib/no-axios/rpc/api.js +3 -3
  70. package/lib/no-axios/rpc/axios.js +3 -3
  71. package/lib/no-axios/rpc/browser.d.ts +2 -2
  72. package/lib/no-axios/rpc/index.d.ts +1 -1
  73. package/lib/no-axios/rpc/parsers.d.ts +2 -2
  74. package/lib/no-axios/rpc/parsers.js +19 -19
  75. package/lib/no-axios/rpc/server.d.ts +72 -11
  76. package/lib/no-axios/rpc/server.js +383 -267
  77. package/lib/no-axios/rpc/transaction.d.ts +2 -2
  78. package/lib/no-axios/rpc/transaction.js +6 -6
  79. package/lib/no-axios/webauth/index.d.ts +2 -2
  80. package/lib/no-eventsource/contract/client.js +2 -2
  81. package/lib/no-eventsource/contract/utils.js +7 -7
  82. package/lib/no-eventsource/federation/index.d.ts +2 -2
  83. package/lib/no-eventsource/horizon/call_builder.js +1 -1
  84. package/lib/no-eventsource/horizon/horizon_api.js +0 -1
  85. package/lib/no-eventsource/horizon/horizon_axios_client.js +4 -4
  86. package/lib/no-eventsource/horizon/index.d.ts +1 -1
  87. package/lib/no-eventsource/horizon/types/effects.d.ts +41 -41
  88. package/lib/no-eventsource/horizon/types/trade.d.ts +1 -1
  89. package/lib/no-eventsource/http-client/fetch-client.d.ts +2 -2
  90. package/lib/no-eventsource/http-client/fetch-client.js +16 -16
  91. package/lib/no-eventsource/http-client/index.js +2 -2
  92. package/lib/no-eventsource/http-client/types.d.ts +2 -2
  93. package/lib/no-eventsource/index.d.ts +11 -11
  94. package/lib/no-eventsource/index.js +2 -2
  95. package/lib/no-eventsource/rpc/api.d.ts +18 -9
  96. package/lib/no-eventsource/rpc/api.js +3 -3
  97. package/lib/no-eventsource/rpc/axios.js +3 -3
  98. package/lib/no-eventsource/rpc/browser.d.ts +2 -2
  99. package/lib/no-eventsource/rpc/index.d.ts +1 -1
  100. package/lib/no-eventsource/rpc/parsers.d.ts +2 -2
  101. package/lib/no-eventsource/rpc/parsers.js +19 -19
  102. package/lib/no-eventsource/rpc/server.d.ts +72 -11
  103. package/lib/no-eventsource/rpc/server.js +383 -267
  104. package/lib/no-eventsource/rpc/transaction.d.ts +2 -2
  105. package/lib/no-eventsource/rpc/transaction.js +6 -6
  106. package/lib/no-eventsource/webauth/index.d.ts +2 -2
  107. package/lib/rpc/api.d.ts +18 -9
  108. package/lib/rpc/api.js +3 -3
  109. package/lib/rpc/axios.js +3 -3
  110. package/lib/rpc/browser.d.ts +2 -2
  111. package/lib/rpc/index.d.ts +1 -1
  112. package/lib/rpc/parsers.d.ts +2 -2
  113. package/lib/rpc/parsers.js +19 -19
  114. package/lib/rpc/server.d.ts +72 -11
  115. package/lib/rpc/server.js +383 -267
  116. package/lib/rpc/transaction.d.ts +2 -2
  117. package/lib/rpc/transaction.js +6 -6
  118. package/lib/webauth/index.d.ts +2 -2
  119. package/package.json +17 -9
package/CHANGELOG.md CHANGED
@@ -3,6 +3,27 @@
3
3
 
4
4
  A breaking change will get clearly marked in this log.
5
5
 
6
+
7
+ ## Unreleased
8
+
9
+
10
+ ## [v14.2.0](https://github.com/stellar/js-stellar-sdk/compare/v14.1.1...v14.2.0)
11
+
12
+ ### Added
13
+ * `rpc.Server` now includes `getAccountEntry`, `getTrustlineEntry`, and `getClaimableBalance` methods to facilitate retrieving those entries without manually constructing the ledger keys ([#1218](https://github.com/stellar/js-stellar-sdk/pull/1218), [#1221](https://github.com/stellar/js-stellar-sdk/pull/1221)).
14
+
15
+ ### Fixed
16
+ * The `getTransactions` API no longer requires `startLedger` when providing `cursor` because they are mutually exclusive ([#1192](https://github.com/stellar/js-stellar-sdk/pull/1192)).
17
+ * Updated `@stellar/stellar-base` to latest patch (see its [release notes](https://github.com/stellar/js-stellar-base/releases/tag/v14.0.1), [#1221](https://github.com/stellar/js-stellar-sdk/pull/1221)).
18
+
19
+
20
+ ## [v14.1.1](https://github.com/stellar/js-stellar-sdk/compare/v14.1.0...v14.1.1)
21
+
22
+ ### Fixed
23
+ * Added missing `transactionIndex` and `operationIndex` to `getEvents` return schema ([#1206](https://github.com/stellar/js-stellar-sdk/pull/1206)).
24
+ * Remove previously-deprecated and now-removed `pagingToken` from `getEvents` (use `id` instead or the top-level `cursor`, depending on pagination needs) ([#1207](https://github.com/stellar/js-stellar-sdk/pull/1207)).
25
+
26
+
6
27
  ## [v14.1.0](https://github.com/stellar/js-stellar-sdk/compare/v14.0.0...v14.1.0)
7
28
 
8
29
  ### Added
package/README.md CHANGED
@@ -1,24 +1,18 @@
1
+ # Stellar JS SDK (js-stellar-sdk)
1
2
 
2
- <div align="center">
3
- <img alt="Stellar" src="https://github.com/stellar/.github/raw/master/stellar-logo.png" width="558" />
4
- <br/>
5
- <strong>Creating equitable access to the global financial system</strong>
6
- <h1>js-stellar-sdk</h1>
7
- </div>
8
-
9
- <p align="center">
10
- <a href="https://badge.fury.io/js/@stellar%2Fstellar-sdk"><img src="https://badge.fury.io/js/@stellar%2Fstellar-sdk.svg" alt="npm version" height="18"></a>
11
- <a href="https://www.npmjs.com/package/@stellar/stellar-sdk">
12
- <img alt="Weekly Downloads" src="https://img.shields.io/npm/dw/@stellar/stellar-sdk" />
13
- </a>
14
- <a href="https://github.com/stellar/js-stellar-sdk/actions/workflows/tests.yml"><img alt="Test Status" src="https://github.com/stellar/js-stellar-sdk/actions/workflows/tests.yml/badge.svg" /></a>
15
- </p>
16
-
17
- js-stellar-sdk is a JavaScript library for communicating with a
18
- [Stellar Horizon server](https://github.com/stellar/go/tree/master/services/horizon) and [Soroban RPC](https://developers.stellar.org/docs/data/rpc).
19
- It is used for building Stellar apps either on Node.js or in the browser, though it can be used in other environments with some tinkering.
20
-
21
- It provides:
3
+
4
+ <a href="https://badge.fury.io/js/@stellar%2Fstellar-sdk"><img src="https://badge.fury.io/js/@stellar%2Fstellar-sdk.svg" alt="npm version" height="18"></a>
5
+ <a href="https://www.npmjs.com/package/@stellar/stellar-sdk">
6
+ <img alt="Weekly Downloads" src="https://img.shields.io/npm/dw/@stellar/stellar-sdk" />
7
+ </a>
8
+ <a href="https://github.com/stellar/js-stellar-sdk/actions/workflows/tests.yml"><img alt="Test Status" src="https://github.com/stellar/js-stellar-sdk/actions/workflows/tests.yml/badge.svg" /></a>
9
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/stellar/js-stellar-sdk)
10
+
11
+ `js-stellar-sdk` is a JavaScript library for communicating with a
12
+ [Stellar Horizon server](https://developers.stellar.org/docs/data/apis/horizon) and [Stellar RPC](https://developers.stellar.org/docs/data/apis/rpc).
13
+ While primarily intended for applications built on Node.js or in the browser, it can be adapted for use in other environments with some tinkering.
14
+
15
+ The library provides:
22
16
 
23
17
  - a networking layer API for Horizon endpoints (REST-based),
24
18
  - a networking layer for Soroban RPC (JSONRPC-based).