Skip to content

Releases: dao-xyz/borsh-ts

5.1.1

14 Jan 23:06
Compare
Choose a tag to compare
  • Improve u64 write performance

5.1.0

13 Jan 20:24
5134ba0
Compare
Choose a tag to compare
  • Feature: f32 and f64 support
@field({type: 'f32'})
f32: number
@field({type: 'f64'})
f64: number

5.0.4

09 Jan 19:29
Compare
Choose a tag to compare
  • Improved performance for schema retrieval

5.0.3

09 Jan 17:38
Compare
Choose a tag to compare
  • Add bounds check for u8
  • Reduce unnecessary function calls

5.0.2

09 Jan 12:19
Compare
Choose a tag to compare
  • Better performance for fixed Uint8Arrays

5.0.1

09 Jan 11:06
Compare
Choose a tag to compare
  • Faster memory allocation

5.0.0

09 Jan 10:42
Compare
Choose a tag to compare
  • 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 than Uint8Array
  • Breaking: vec('u8') and fixedArray('u8', size) is now deserialized into Uint8Array rather than number[]
  • Breaking: BinaryWriter will now emit the Uint8Array/Buffer by invoking the .finalize() method
  • Breaking: When deserializing into Uint8Arrays (fixedArray('u8', ... ), or vec('u8')or Uint8Array) 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

09 Dec 12:04
Compare
Choose a tag to compare
  • Make class inheritance to serialization/deserialization to behave as expected even if class names are not unique

4.0.6

09 Dec 08:58
Compare
Choose a tag to compare
  • Allow this library to be minified with uglifyjs

4.0.5

06 Dec 10:10
Compare
Choose a tag to compare
  • Correctly handle ArrayBuffer offsets when deserializing uint8arrays
  • ModulResolution Node16 for esm