Skip to content

Commit 3e38b60

Browse files
authored
Release v7.0.0 of stellar-base (#489)
1 parent 4a145ad commit 3e38b60

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

CHANGELOG.md

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,13 @@
33

44
## Unreleased
55

6-
### Add
7-
8-
- A new helper method is introduced to help convert from muxed account addresses to their underlying Stellar addresses ([#485](https://github.com/stellar/js-stellar-base/pull/485)):
9-
10-
```ts
11-
function extractBaseAddess(address: string): string;
12-
```
13-
14-
- The following muxed account validation functions are now available from Typescript ([#483](https://github.com/stellar/js-stellar-base/pull/483/files)):
15-
16-
```typescript
17-
namespace StrKey {
18-
function encodeMed25519PublicKey(data: Buffer): string;
19-
function decodeMed25519PublicKey(data: string): Buffer;
20-
function isValidMed25519PublicKey(publicKey: string): boolean;
21-
}
226

23-
function decodeAddressToMuxedAccount(address: string, supportMuxing: boolean): xdr.MuxedAccount;
24-
function encodeMuxedAccountToAddress(account: xdr.MuxedAccount, supportMuxing: boolean): string;
25-
function encodeMuxedAccount(gAddress: string, id: string): xdr.MuxedAccount;
26-
```
7+
## [v7.0.0](https://github.com/stellar/js-stellar-base/compare/v6.0.6..v7.0.0)
278

28-
- Adds a helper function `Transaction.getClaimableBalanceId(int)` which lets you pre-determine the hex claimable balance ID of a `createClaimableBalance` operation prior to submission to the network ([#482](https://github.com/stellar/js-stellar-base/pull/482)).
9+
This release introduces **unconditional support for muxed accounts** ([#485](https://github.com/stellar/js-stellar-base/pull/485)).
2910

3011
### Breaking Changes
3112

32-
This release introduces **unconditional support for muxed accounts** ([#485](https://github.com/stellar/js-stellar-base/pull/485)).
33-
3413
In [v5.2.0](https://github.com/stellar/js-stellar-base/releases/tag/v5.2.0), we introduced _opt-in_ support for muxed accounts, where you would need to explicitly pass a `true` flag if you wanted to interpret muxed account objects as muxed addresses (in the form `M...`, see [SEP-23](https://stellar.org/protocol/sep-23)). We stated that this would become the default in the future. That is now the case.
3514

3615
The following fields will now always support muxed properties:
@@ -73,9 +52,32 @@ There are several other breaking changes:
7352
let mux2 = new MuxedAccount(mux1.baseAccount(), '2');
7453
```
7554

55+
56+
- Introduced a new helper method to help convert from muxed account addresses to their underlying Stellar addresses ([#485](https://github.com/stellar/js-stellar-base/pull/485)):
57+
58+
```ts
59+
function extractBaseAddess(address: string): string;
60+
```
61+
62+
- The following muxed account validation functions are now available from Typescript ([#483](https://github.com/stellar/js-stellar-base/pull/483/files)):
63+
64+
```typescript
65+
namespace StrKey {
66+
function encodeMed25519PublicKey(data: Buffer): string;
67+
function decodeMed25519PublicKey(data: string): Buffer;
68+
function isValidMed25519PublicKey(publicKey: string): boolean;
69+
}
70+
71+
function decodeAddressToMuxedAccount(address: string, supportMuxing: boolean): xdr.MuxedAccount;
72+
function encodeMuxedAccountToAddress(account: xdr.MuxedAccount, supportMuxing: boolean): string;
73+
function encodeMuxedAccount(gAddress: string, id: string): xdr.MuxedAccount;
74+
```
75+
76+
- Added a helper function `Transaction.getClaimableBalanceId(int)` which lets you pre-determine the hex claimable balance ID of a `createClaimableBalance` operation prior to submission to the network ([#482](https://github.com/stellar/js-stellar-base/pull/482)).
77+
7678
### Fix
7779

78-
- Add `Buffer` as a parameter type option for the `Keypair` constructor in Typescript [#484](https://github.com/stellar/js-stellar-base/pull/484).
80+
- Add `Buffer` as a parameter type option for the `Keypair` constructor in Typescript ([#484](https://github.com/stellar/js-stellar-base/pull/484)).
7981

8082

8183
## [v6.0.6](https://github.com/stellar/js-stellar-base/compare/v6.0.5..v6.0.6)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stellar-base",
3-
"version": "6.0.6",
3+
"version": "7.0.0",
44
"description": "Low level stellar support library",
55
"main": "./lib/index.js",
66
"types": "./types/index.d.ts",

0 commit comments

Comments
 (0)