Skip to content

Releases: stellar/js-xdr

v3.1.2

18 Jul 23:37
07174f9
Compare
Choose a tag to compare

Fixed

  • Increase robustness of compatibility across multiple js-xdr instances in an environment (@Shaptic in #122).

New Contributors

Full Changelog: v3.1.1...v3.1.2

v3.1.1

20 Mar 16:39
77dbb1b
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 (#118).

v3.1.0

30 Jan 01:12
80b7f29
Compare
Choose a tag to compare

Added

  • The raw, underlying XdrReader and XdrWriter types are now exposed by the library for reading without consuming the entire stream (#116).

Fixed

  • Added additional type checks for passing a bytearray-like object to XdrReaders and improves the error with details (#116).
  • Bump follow-redirects from 1.15.3 to 1.15.4 (#115).

Full Changelog: v3.0.1...v3.1.0

v3.0.1

20 Nov 21:30
7bc9b84
Compare
Choose a tag to compare

Fixes

  • This package is now being published to @stellar/js-xdr on NPM.
  • The versions at js-xdr are now considered deprecated (#111).
  • Misc. dependencies have been upgraded (#104, #106, #107, #108, #105).

Full Changelog: v3.0.0...v3.0.1

v3.0.0

22 Jun 20:38
f98705f
Compare
Choose a tag to compare

Breaking Changes

  • Add support for easily encoding integers larger than 32 bits (#100).

This (partially) breaks the API for creating Hyper and UnsignedHyper instances. Previously, you would pass low and high parts to represent the lower and upper 32 bits. Now, you can pass the entire 64-bit value directly as a bigint or string instance, or as a list of "chunks" like before, e.g.:

-new Hyper({ low: 1, high: 2 }); // representing (1 << 32) + 2 = 4294967298n
+new Hyper(4294967298n);
+new Hyper("4294967298");
+new Hyper(1, 2);

Note that stellar/dts-xdr has been updated to generate the correct TypeScript definitions that correspond to this change.

v2.0.0

21 Apr 23:02
03cbefc
Compare
Choose a tag to compare
  • Refactor XDR serialization/deserialization logic (#91).
  • Replace long dependency with native BigInt arithmetics.
  • Replace lodash dependency with built-in Array and Object methods, iterators.
  • Add buffer dependency for WebPack browser polyfill.
  • Update devDependencies to more recent versions, modernize bundler pipeline.
  • Automatically grow underlying buffer on writes (#84 fixed).
  • Always check that the entire read buffer is consumed (#32 fixed).
  • Check actual byte size of the string on write (#33 fixed).
  • Fix babel-polyfill build warnings (#34 fixed).

Thank you @orbitlens for your efforts on this release! 🎉

Full Changelog: v1.3.0...v2.0.0

v1.3.0

12 Apr 21:12
892b662
Compare
Choose a tag to compare
  • Inline and modernize the cursor dependency (#63).

v1.2.0

12 Nov 19:44
c3543c4
Compare
Choose a tag to compare
  • Add method validateXDR(input, format = 'raw') which validates if a given XDR is valid or not. (#56).

v1.1.4

07 Apr 21:32
a7a65de
Compare
Choose a tag to compare
  • Remove core-js dependency (#45).

v1.1.3

23 Jan 19:34
71d7a4f
Compare
Choose a tag to compare
  • Split out reference class to it's own file to avoid circular import (#39).