@stellar/stellar-base 13.0.0 → 13.1.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.
- package/CHANGELOG.md +23 -0
- package/dist/stellar-base.js +27070 -26551
- package/dist/stellar-base.min.js +1 -1
- package/lib/address.js +3 -3
- package/lib/auth.js +38 -22
- package/lib/invocation.js +22 -6
- package/lib/scval.js +28 -8
- package/package.json +17 -14
- package/types/curr.d.ts +10 -0
- package/types/index.d.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## [`v13.1.0`](https://github.com/stellar/js-stellar-base/compare/v13.0.1...v13.1.0)
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
* `nativeToScVal` now supports encoding `Keypair`s as addresses ([#794](https://github.com/stellar/js-stellar-base/pull/794)).
|
|
9
|
+
* Within `authorizeEntry`, the `SigningCallback` callback function should now return an object containing both the signature and the identity of the signer. In multi-signature situations, it isn't necessarily the case that the address within the authorization entry is the one that actually signs that entry. Thus, the callback now takes the following form, where the original `Promise<BufferLike>` option is preserved for backwards compatibility and should be considered deprecated ([#783](https://github.com/stellar/js-stellar-base/pull/783)):
|
|
10
|
+
```typescript
|
|
11
|
+
export type SigningCallback = (
|
|
12
|
+
preimage: xdr.HashIdPreimage
|
|
13
|
+
) => Promise<
|
|
14
|
+
BufferLike |
|
|
15
|
+
{ signature: BufferLike, publicKey: string }
|
|
16
|
+
>;
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
* `scValToNative` will decode addresses more efficiently and reliably ([#794](https://github.com/stellar/js-stellar-base/pull/794)).
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [`v13.0.1`](https://github.com/stellar/js-stellar-base/compare/v13.0.0...v13.0.1)
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
* `buildInvocationTree` will now successfully walk creation invocations with constructor arguments ([#784](https://github.com/stellar/js-stellar-base/pull/784)).
|
|
27
|
+
|
|
5
28
|
|
|
6
29
|
## [`v13.0.0`](https://github.com/stellar/js-stellar-base/compare/v12.1.1...v13.0.0)
|
|
7
30
|
|