@stellar/stellar-sdk 13.0.0 → 13.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 (71) hide show
  1. package/CHANGELOG.md +24 -4
  2. package/README.md +1 -1
  3. package/dist/stellar-sdk-minimal.js +41079 -40629
  4. package/dist/stellar-sdk-minimal.min.js +1 -1
  5. package/dist/stellar-sdk-no-axios.js +51476 -50336
  6. package/dist/stellar-sdk-no-axios.min.js +1 -1
  7. package/dist/stellar-sdk-no-eventsource.js +44487 -44397
  8. package/dist/stellar-sdk-no-eventsource.min.js +1 -1
  9. package/dist/stellar-sdk.js +54884 -54104
  10. package/dist/stellar-sdk.min.js +1 -1
  11. package/lib/contract/assembled_transaction.js +3 -5
  12. package/lib/contract/client.d.ts +2 -0
  13. package/lib/contract/client.js +72 -11
  14. package/lib/contract/sent_transaction.d.ts +3 -1
  15. package/lib/contract/spec.js +1 -1
  16. package/lib/friendbot/index.d.ts +1 -0
  17. package/lib/horizon/call_builder.d.ts +1 -1
  18. package/lib/horizon/horizon_api.d.ts +15 -0
  19. package/lib/horizon/horizon_axios_client.js +1 -1
  20. package/lib/horizon/server.d.ts +5 -0
  21. package/lib/horizon/server.js +80 -59
  22. package/lib/minimal/contract/assembled_transaction.js +3 -5
  23. package/lib/minimal/contract/client.d.ts +2 -0
  24. package/lib/minimal/contract/client.js +72 -11
  25. package/lib/minimal/contract/sent_transaction.d.ts +3 -1
  26. package/lib/minimal/contract/spec.js +1 -1
  27. package/lib/minimal/friendbot/index.d.ts +1 -0
  28. package/lib/minimal/horizon/call_builder.d.ts +1 -1
  29. package/lib/minimal/horizon/horizon_api.d.ts +15 -0
  30. package/lib/minimal/horizon/horizon_axios_client.js +1 -1
  31. package/lib/minimal/horizon/server.d.ts +5 -0
  32. package/lib/minimal/horizon/server.js +80 -59
  33. package/lib/minimal/rpc/api.d.ts +2 -1
  34. package/lib/minimal/rpc/axios.js +1 -1
  35. package/lib/minimal/rpc/parsers.js +1 -0
  36. package/lib/minimal/rpc/server.js +27 -8
  37. package/lib/no-axios/contract/assembled_transaction.js +3 -5
  38. package/lib/no-axios/contract/client.d.ts +2 -0
  39. package/lib/no-axios/contract/client.js +72 -11
  40. package/lib/no-axios/contract/sent_transaction.d.ts +3 -1
  41. package/lib/no-axios/contract/spec.js +1 -1
  42. package/lib/no-axios/friendbot/index.d.ts +1 -0
  43. package/lib/no-axios/horizon/call_builder.d.ts +1 -1
  44. package/lib/no-axios/horizon/horizon_api.d.ts +15 -0
  45. package/lib/no-axios/horizon/horizon_axios_client.js +1 -1
  46. package/lib/no-axios/horizon/server.d.ts +5 -0
  47. package/lib/no-axios/horizon/server.js +80 -59
  48. package/lib/no-axios/rpc/api.d.ts +2 -1
  49. package/lib/no-axios/rpc/axios.js +1 -1
  50. package/lib/no-axios/rpc/parsers.js +1 -0
  51. package/lib/no-axios/rpc/server.js +27 -8
  52. package/lib/no-eventsource/contract/assembled_transaction.js +3 -5
  53. package/lib/no-eventsource/contract/client.d.ts +2 -0
  54. package/lib/no-eventsource/contract/client.js +72 -11
  55. package/lib/no-eventsource/contract/sent_transaction.d.ts +3 -1
  56. package/lib/no-eventsource/contract/spec.js +1 -1
  57. package/lib/no-eventsource/friendbot/index.d.ts +1 -0
  58. package/lib/no-eventsource/horizon/call_builder.d.ts +1 -1
  59. package/lib/no-eventsource/horizon/horizon_api.d.ts +15 -0
  60. package/lib/no-eventsource/horizon/horizon_axios_client.js +1 -1
  61. package/lib/no-eventsource/horizon/server.d.ts +5 -0
  62. package/lib/no-eventsource/horizon/server.js +80 -59
  63. package/lib/no-eventsource/rpc/api.d.ts +2 -1
  64. package/lib/no-eventsource/rpc/axios.js +1 -1
  65. package/lib/no-eventsource/rpc/parsers.js +1 -0
  66. package/lib/no-eventsource/rpc/server.js +27 -8
  67. package/lib/rpc/api.d.ts +2 -1
  68. package/lib/rpc/axios.js +1 -1
  69. package/lib/rpc/parsers.js +1 -0
  70. package/lib/rpc/server.js +27 -8
  71. package/package.json +24 -20
package/CHANGELOG.md CHANGED
@@ -7,6 +7,26 @@ A breaking change will get clearly marked in this log.
7
7
  ## Unreleased
8
8
 
9
9
 
10
+ ## [v13.2.0](https://github.com/stellar/js-stellar-sdk/compare/v13.1.0...v13.2.0)
11
+
12
+ ### Added
13
+ * Support passing in an optional `options.address` to the `contract.Client.deploy` method ([#1158](https://github.com/stellar/js-stellar-sdk/pull/1158)).
14
+
15
+ ### Fixed
16
+ * Extend support for parsing contract specifications in environments that don't have WebAssembly compilers ([#1157](https://github.com/stellar/js-stellar-sdk/pull/1157)).
17
+ * Upgraded `@stellar/stellar-base` dependency to latest version ([#1159](https://github.com/stellar/js-stellar-sdk/pull/1159)).
18
+
19
+
20
+ ## [v13.1.0](https://github.com/stellar/js-stellar-sdk/compare/v13.0.0...v13.1.0)
21
+
22
+ ### Added
23
+ * Added `Horizon.Server.root` to obtain information from the Horizon root endpoint ([#1122](https://github.com/stellar/js-stellar-sdk/pull/1122/)).
24
+
25
+ ### Fixed
26
+ * When using a friendbot that points to a Horizon instance that has ledger metadata disabled, you can no longer extract the account sequence from the response. Instead, we hit RPC directly ([#1107](https://github.com/stellar/js-stellar-sdk/pull/1107/)).
27
+ * `rpc.Server.getEvents()` now correctly returns the `cursor` field at the top-level response ([#1124](https://github.com/stellar/js-stellar-sdk/pull/1124)).
28
+
29
+
10
30
  ## [v13.0.0](https://github.com/stellar/js-stellar-sdk/compare/v12.3.0...v13.0.0)
11
31
  This is a direct re-tag of rc.2 with the only change being an upgrade to the `stellar-base` library to incorporate a patch release. Nonetheless, the entire changelog from the prior major version here is replicated for a comprehensive view on what's broken, added, and fixed.
12
32
 
@@ -298,7 +318,7 @@ interface FeeDistribution {
298
318
 
299
319
  ### Added
300
320
  - `rpc.server.simulateTransaction` now supports an optional `stateChanges?: LedgerEntryChange[]` field ([#963](https://github.com/stellar/js-stellar-sdk/pull/963)):
301
- * If `Before` is omitted, it constitutes a creation, if `After` is omitted, it constitutes a deletions, note that `Before` and `After` cannot be be omitted at the same time. Each item follows this schema:
321
+ * If `Before` is omitted, it constitutes a creation, if `After` is omitted, it constitutes a deletions, note that `Before` and `After` cannot be omitted at the same time. Each item follows this schema:
302
322
 
303
323
  ```typescript
304
324
  interface LedgerEntryChange {
@@ -348,7 +368,7 @@ import {
348
368
  +import { Spec } from '@stellar/stellar-sdk/contract'
349
369
  ```
350
370
 
351
- - Previously, `AssembledTransaction.signAndSend()` would return a `SentTransaction` even if the transaction never finalized. That is, if it successfully sent the transaction to the network, but the transaction was still `status: 'PENDING'`, then it would `console.error` an error message, but return the indeterminate transaction anyhow. **It now throws** a `SentTransaction.Errors.TransactionStillPending` error with that error message instead ([#962](https://github.com/stellar/js-stellar-sdk/pull/962)).
371
+ - Previously, `AssembledTransaction.signAndSend()` would return a `SentTransaction` even if the transaction was never finalized. That is, if it successfully sent the transaction to the network, but the transaction was still `status: 'PENDING'`, then it would `console.error` an error message, but return the indeterminate transaction anyhow. **It now throws** a `SentTransaction.Errors.TransactionStillPending` error with that error message instead ([#962](https://github.com/stellar/js-stellar-sdk/pull/962)).
352
372
 
353
373
  ### Deprecated
354
374
 
@@ -732,7 +752,7 @@ Refer to the release notes for the betas (e.g. [v9.0.0-beta.0](https://github.co
732
752
 
733
753
  ### Updates
734
754
 
735
- - Updates the following SEP-10 utility functions to be compilant with the protocols ([#709](https://github.com/stellar/js-stellar-sdk/pull/709/), [stellar-protocol/#1036](https://github.com/stellar/stellar-protocol/pull/1036))
755
+ - Updates the following SEP-10 utility functions to be compliant with the protocols ([#709](https://github.com/stellar/js-stellar-sdk/pull/709/), [stellar-protocol/#1036](https://github.com/stellar/stellar-protocol/pull/1036))
736
756
  - Updated `utils.buildChallengeTx()` to accept muxed accounts (`M...`) for client account IDs
737
757
  - Updated `utils.buildChallengeTx()` to accept a `memo` parameter to attach to the challenge transaction
738
758
  - Updated `utils.readChallengeTx()` to provide a `memo` property in the returned object
@@ -1052,7 +1072,7 @@ The following functions were renamed:
1052
1072
  - `xdr.OperationType.setOption()` -> `xdr.OperationType.setOptions()`
1053
1073
  - `xdr.OperationType.manageDatum()` -> `xdr.OperationType.manageData()`
1054
1074
 
1055
- The following enum values were rename in `OperationType`:
1075
+ The following enum values were renamed in `OperationType`:
1056
1076
 
1057
1077
  - `setOption` -> `setOptions`
1058
1078
  - `manageDatum` -> `manageData`
package/README.md CHANGED
@@ -65,7 +65,7 @@ You can use a CDN:
65
65
  <script src="https://cdnjs.cloudflare.com/ajax/libs/stellar-sdk/{version}/stellar-sdk.js"></script>
66
66
  ```
67
67
 
68
- Note that this method relies using a third party to host the JS library. This may not be entirely secure. You can self-host it via [Bower](http://bower.io):
68
+ Note that this method relies on using a third party to host the JS library. This may not be entirely secure. You can self-host it via [Bower](http://bower.io):
69
69
 
70
70
  ```shell
71
71
  bower install @stellar/stellar-sdk