Skip to content

Releases: stellar/js-stellar-base

v13.0.0-beta.1

27 Sep 18:30
faaa561
Compare
Choose a tag to compare
v13.0.0-beta.1 Pre-release
Pre-release

v13.0.0-beta.1: Protocol 22

This is the first release that supports Protocol 22. While the network has not upgraded yet, you can start integrating the new features into your codebase if you want a head start. Keep in mind that while the binary XDR is backwards-compatible, the naming and layout of structures is not. In other words, this build will continue to work on Protocol 21, but you may have to update code that references XDR directly.

Breaking Changes

  • XDR definitions have been upgraded to Protocol 22 (#769, #774).

Added

  • You can create contracts with constructors via a new, optional parameter of Operation.createCustomContract, constructorArgs: xdr.ScVal[] (#770).

Full Changelog: v12.1.1...v13.0.0-beta.1

v12.1.1

12 Sep 19:22
6930a70
Compare
Choose a tag to compare

v12.1.1

Fixed

  • Add missing methods to TypeScript definitions (#766).
  • Fix the TypeScript definition of walkInvocationTree to allow void returns on the callback function as intended rather than forcing a return null (#765).
  • Fix authorizeEntry to use the correct public key when passing Keypairs (#772).
  • Upgrade misc. dependencies (#771, #773, #775).

Contributors

@Shaptic @kalepail

Full Changelog: v12.1.0...v12.1.1

v12.1.0

19 Jul 19:58
14717f1
Compare
Choose a tag to compare

Added

  • TransactionBuilder now has addOperationAt and clearOperationAt methods to allow manipulation of individual operations (#757).

Fixed

  • Improve the efficiency and portability of asset type retrieval (#758).
  • nativeToScVal now correctly sorts maps lexicographically based on the keys to match what the Soroban environment expects (#759).
  • humanizeEvents now handles events without a contractId set more reliably (#764).
  • nativeToScVal now allows all integer types to come from strings (#763).

New Contributors

Full Changelog: v12.0.1...v12.1.0

v12.0.1

14 Jun 16:44
c13cad1
Compare
Choose a tag to compare

v12.0.1

Fixed

  • Export TypeScript definition for StrKey.isValidContract (#751).
  • scValToNative would fail when the values contained error codes because the parsing routine hadn't been updated to the new error schemas. Errors are now converted to the following format (#753):
interface Error {
  type: "contract" | "system";
  code: number;
  value?: string; // only present for type === 'system'
}

You can refer to the XDR documentation for additional explanations for each error code.

New Contributors

Full Changelog: v12.0.0...v12.0.1

v12.0.0

30 May 21:54
2f38f46
Compare
Choose a tag to compare

Protocol 21: Stable Release

This is exactly the same as v12.0.0-rc.1 with only dependency upgrades, but the full changelog from the previous stable version is replicated below.

Breaking Changes

Added

  • To facilitate serialization and deserialization for downstream systems, this package now exports cereal.XdrWriter and cereal.XdrReader which come directly from @stellar/js-xdr (#744).

Fixed

  • Updated various dependencies (#737, #739).
  • Buffer and Uint8Array compatibility has improved in StrKey (#746).

New Contributors

Full Changelog: v11.0.1...v12.0.0

v12.0.0-rc.1

14 May 21:43
b96281b
Compare
Choose a tag to compare
v12.0.0-rc.1 Pre-release
Pre-release

Protocol 21

Breaking Changes

Added

  • To facilitate serialization and deserialization for downstream systems, this package now exports cereal.XdrWriter and cereal.XdrReader which come directly from @stellar/js-xdr (#744).

Fixed

  • Updated various dependencies (#737, #739).
  • Buffer and Uint8Array compatibility has improved in StrKey (#746).

New Contributors

Full Changelog: v11.0.1...v12.0.0-rc.1

v11.0.1

20 Mar 21:20
8fe2d8c
Compare
Choose a tag to compare

Fixed

  • Add compatibility with pre-ES2016 environments (like some React Native JS compilers) by adding a custom Buffer.subarray polyfill (#733).
  • Upgrade underlying dependencies, including @stellar/js-xdr which should broaden compatibility to pre-ES2016 environments (#734, #735).

v11.0.0

12 Feb 20:18
6ca0750
Compare
Choose a tag to compare

Note: This version is (still) compatible with Protocol 20. Most people should be unaffected by the technically-breaking changes below and can treat this more like a v10.0.3 patch release.

Breaking Changes

  • Starting from v10.0.0-beta.0, we set BigNumber.DEBUG in bignumber.js to true internally, which affects all code using BigNumber. This behavior has been fixed and only affects this library: globally, BigNumber.DEBUG now remains at its default setting (i.e. disabled). This is technically a breaking behavior change and is released as such (#729).

Fixed

  • Dependencies have been updated to their latest compatible versions (#726, #730).

Full Changelog: v10.0.2...v11.0.0

v10.0.2

23 Jan 01:23
29875cb
Compare
Choose a tag to compare

Fixed

  • The contractId field is correctly omitted from humanized events when it wasn't present in the structure (#721).
  • Misc. outdated or incorrect documentation has been updated (#723, #720).
  • Dependencies have been updated (#724).

Full Changelog: v10.0.1...v10.0.2

v10.0.1

15 Dec 22:02
8e85dac
Compare
Choose a tag to compare

Fixed

  • The TypeScript definition for Asset.contractId() now includes a missing parameter (the networkPassphrase changes the ID for a contract; #718).

New Contributors

Full Changelog: v10.0.0...v10.0.1