Skip to content

Commit

Permalink
Release v8.0.0-beta.0 (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic authored Apr 12, 2022
1 parent 23439dc commit 533dac1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
run: gulp

- name: Publish npm package
run: yarn publish
run: yarn publish --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31 changes: 28 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,40 @@

## Unreleased

**Note:** As of this release, the minimum supported version of NodeJS is **14.x**.

## [v8.0.0-beta.0](https://github.com/stellar/js-stellar-base/compare/v7.0.0..v8.0.0-beta.0)

**This release adds support for Protocol 19**, which includes [CAP-21](https://stellar.org/protocol/cap-21) (new transaction preconditions) and [CAP-40](https://stellar.org/protocol/cap-40) (signed payload signers).

This is considered a beta release until the XDR for the Stellar protocol stabilizes and is officially released.

### Breaking

As of this release, the minimum supported version of NodeJS is **14.x**.

- Two XDR types have been renamed:
* `xdr.OperationId` is now `xdr.HashIdPreimage`
* `xdr.OperationIdId` is now `xdr.HashIdPreimageOperationId`

### Add

- Support for converting signed payloads ([CAP-40](https://stellar.org/protocol/cap-40)) to and from their StrKey (`P...`) representation ([#511](https://github.com/stellar/js-stellar-base/pull/511)).
- Support for converting signed payloads ([CAP-40](https://stellar.org/protocol/cap-40)) to and from their StrKey (`P...`) representation ([#511](https://github.com/stellar/js-stellar-base/pull/511)):
* `Keypair.signPayloadDecorated(data)`
* `StrKey.encodeSignedPayload(buf)`
* `StrKey.decodeSignedPayload(str)`
* `StrKey.isValidSignedPayload(str)`

- Support for creating transactions with the new preconditions ([CAP-21](https://stellar.org/protocol/cap-21)) via `TransactionBuilder` ([#513](https://github.com/stellar/js-stellar-base/pull/513)).

- A way to convert between addresses (like `G...` and `P...`, i.e. the `StrKey` class) and their respective signer keys (i.e. `xdr.SignerKey`s), particularly for use in the new transaction preconditions ([#520](https://github.com/stellar/js-stellar-base/pull/520)).
- A way to convert between addresses (like `G...` and `P...`, i.e. the `StrKey` class) and their respective signer keys (i.e. `xdr.SignerKey`s), particularly for use in the new transaction preconditions ([#520](https://github.com/stellar/js-stellar-base/pull/520)):
* `SignerKey.decodeAddress(address)`
* `SignerKey.encodeSignerKey(address)`
* `TransactionBuilder.setTimebounds(min, max)`
* `TransactionBuilder.setLedgerbounds(min, max)`
* `TransactionBuilder.setMinAccountSequence(seq)`
* `TransactionBuilder.setMinAccountSequenceAge(age)`
* `TransactionBuilder.setMinAccountSequenceLedgerGap(gap)`
* `TransactionBuilder.setExtraSigners([signers])`

### Fix

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stellar-base",
"version": "7.0.0",
"version": "8.0.0-beta.0",
"description": "Low level stellar support library",
"main": "./lib/index.js",
"types": "./types/index.d.ts",
Expand Down

0 comments on commit 533dac1

Please sign in to comment.