Releases: dao-xyz/borsh-ts
Releases · dao-xyz/borsh-ts
5.1.1
- Improve u64 write performance
5.1.0
- Feature: f32 and f64 support
@field({type: 'f32'})
f32: number
@field({type: 'f64'})
f64: number
5.0.4
- Improved performance for schema retrieval
5.0.3
- Add bounds check for u8
- Reduce unnecessary function calls
5.0.2
- Better performance for fixed Uint8Arrays
5.0.1
- Faster memory allocation
5.0.0
- 3-4x speed improvement (as fast or faster than protobufjs now for benchmarks in this repo)
- Breaking: In NodeJs Buffer will be returned with
serialize
rather thanUint8Array
- Breaking:
vec('u8')
andfixedArray('u8', size)
is now deserialized intoUint8Array
rather thannumber[]
- Breaking: BinaryWriter will now emit the Uint8Array/Buffer by invoking the
.finalize()
method - Breaking: When deserializing into Uint8Arrays (
fixedArray('u8', ... )
, orvec('u8')
orUint8Array
) you will get a view of the serialized bytes rather than a copy. - Feature: Support for custom array size encoding
- Feature: Support for custom string size encoding
4.0.7
- Make class inheritance to serialization/deserialization to behave as expected even if class names are not unique
4.0.6
- Allow this library to be minified with uglifyjs
4.0.5
- Correctly handle ArrayBuffer offsets when deserializing uint8arrays
- ModulResolution Node16 for esm