Releases: stellar/js-xdr
Releases · stellar/js-xdr
v3.1.2
v3.1.1
v3.1.0
Added
- The raw, underlying
XdrReader
andXdrWriter
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
XdrReader
s 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
v3.0.0
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
- Refactor XDR serialization/deserialization logic (#91).
- Replace
long
dependency with nativeBigInt
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