Skip to content

Releases: stellar/js-stellar-base

v14.0.4

22 Dec 19:02
e28e4b5

Choose a tag to compare

v14.0.4

Fixed

  • Fixes a bug in Address which prevented it from decoding claimable balances (#825).
  • Fixes bugs in Soroban.formatTokenAmount that would cause a lack of leading or trailing zeroes at the decimal point in some cases (#821, #823).

Contributors

Full Changelog: v14.0.3...v14.0.4

v14.0.3

01 Dec 16:31
e8e3950

Choose a tag to compare

v14.0.3

Fixed

  • Add conversions for timepoint and duration scval types (#819)

New Contributors

Full Changelog: v14.0.2...v14.0.3

v14.0.2

10 Nov 21:28
c18336d

Choose a tag to compare

v14.0.2

Fixed

  • Lowered the maximum bid for fee-bumped Soroban transactions by not doubling the resource fee (#817).

Contributors

Full Changelog: v14.0.1...v14.0.2

v14.0.1

18 Sep 16:33
5bac0b6

Choose a tag to compare

v14.0.1

Fixed

  • Added missing Asset.toString() TypeScript definition (#1218).

v14.0.0

14 Aug 16:32
b82822b

Choose a tag to compare

v14.0.0: Protocol 23

Breaking Changes

  • This package now requires >= Node 20.
  • XDR definitions have been updated to align with Protocol 23 (#800).
  • Removed the custom Buffer.subarray polyfill introduced in v11.0.1 as a workaround for React Native's Hermes engine. Please use @exodus/patch-broken-hermes-typed-arrays as an alternative, if needed (#795).

Added

  • The sodium-native and tweetnacl dependencies have been replaced with @noble/curves (#802).
  • Support for claimable balances and liquidity pools in StrKey (#799).
  • Support for claimable balances, liquidity pools, and muxed accounts in Address (#801).
  • Added the ability for nativeToScVal to convert arrays with differing types to smart contract values (#803). For example,
nativeToScVal([1, "x", "y"], { type: [ "i128", "symbol" ] })

returns a Vec<i128, symbol, string>.

Fixed

  • Fix browser compatibility with proper module resolution and UMD configuration (#798).
  • Remove MuxedAccount.parseBaseAddress from TypeScript definitions (#797).

Contributors

@overcat @Shaptic

Full Changelog: v13.1.0...v14.0.0

v14.0.0-rc.2: Protocol 23 Release Candidate 2

09 Jul 00:34
440b60d

Choose a tag to compare

v14.0.0-rc.2: Protocol 23, Release Candidate 2

Please refer to v14.0.0-rc.1 for more release notes in this major version update.

Fixed

  • Correctly encode claimable balances and muxed accounts by @Shaptic in #808

Full Changelog: v13.1.0...v14.0.0-rc.2

v14.0.0-rc.1: Protocol 23 Release Candidate

25 Jun 18:23
3f82e7e

Choose a tag to compare

v14.0.0-rc.1: Protocol 23, Release Candidate 1

Breaking Changes

  • This package now requires >= Node 20.
  • XDR definitions have been updated to align with Protocol 23 (#800).
  • Removed the custom Buffer.subarray polyfill introduced in #733 in v11.0.1 as a workaround for React Native's Hermes engine. Please use @exodus/patch-broken-hermes-typed-arrays as an alternative, if needed (#795).

Added

  • The sodium-native and tweetnacl dependencies have been replaced with @noble/curves (#802).
  • Support for claimable balances and liquidity pools in StrKey (#799).
  • Support for claimable balances, liquidity pools, and muxed accounts in Address (#801).
  • Added the ability for nativeToScVal to convert arrays with differing types to smart contract values, e.g., nativeToScVal([1, "x", "y"], { type: [ "i128", "symbol" ]}) will give you a Vec<i128, symbol, string> (#803).

Fixed

  • Fix browser compatibility with proper module resolution and UMD configuration (#798).
  • Remove MuxedAccount.parseBaseAddress from TypeScript definitions (#797).

Full Changelog: v13.1.0...v14.0.0-rc.1

v13.1.0

28 Mar 23:22
087e2d6

Choose a tag to compare

v13.1.0

Added

  • nativeToScVal now supports encoding Keypairs as addresses (#794).
  • 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):
export type SigningCallback = (
  preimage: xdr.HashIdPreimage
) => Promise<
  BufferLike |
  { signature: BufferLike, publicKey: string }
>;

Fixed

  • scValToNative will decode addresses more efficiently and reliably (#794).

v13.0.1

14 Nov 18:57
1036eab

Choose a tag to compare

v13.0.1

Fixed

  • Add support for buildInvocationTree to parse V2 of creation calls by @Shaptic in #784
  • Add TypeScript definitions for new invocation field by @Shaptic in #785

v13.0.0

08 Nov 06:02
ca27152

Choose a tag to compare

v13.0.0: Protocol 22.

This version is unchanged from beta.1, whose changelog is replicated below.

Breaking Changes

  • XDR definitions have been upgraded to Protocol 22 (#777).

Added

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