Skip to content

Releases: near/borsh-js

v2.0.0

24 Nov 01:27
3783185
Compare
Choose a tag to compare

What's Changed

  • update README.md : fix incorrect Description of Enums type by @cbot918 in #74
  • Fixed explanation of enums in README.md by @gagdiez in #68
  • fix: ut8-string encode/decode by @gagdiez in #76
  • feat: remove unnecesary utils by @gagdiez in #77

New Contributors

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

v1.0.0

04 Aug 10:01
93a633d
Compare
Choose a tag to compare

Highlights:

a complete rewrite of the library which includes multiple advantages over the current v0.7.0:

  1. Vanilla JS implementation, does not rely on Buffer, for which it is compatible with a greater number of environments.
  2. It can (de)serialize single values, objects and instances of Classes. Previously we were only able to (de)serialize specific instances of classes.
  3. The new Schema is consistent across types, and a thoughtful validation of the Schema is in place.
  4. Each serialize/deserialize relies on a single Schema, solving some longstanding problems with the previous "Indexing by Class" approach.
  5. Thoughtfully tested across multiple scenarios.
  6. Now it's also support to run in smart contract environment with near-sdk-js!

What's Changed

New Contributors

Full Changelog: v0.7.0...v1.0.0

v0.7.0

02 Dec 12:52
Compare
Choose a tag to compare

Highlights:

  • Added support for serialization/deserialization of maps
  • TextDecoder does not rely on global anymore
  • redundant files are not published to npm

Commits:

v0.6.0...v0.7.0

v0.6.0

18 Aug 09:01
Compare
Choose a tag to compare

Highlights:

  • added ability to specify custom Reader/Writer
  • deserialize now returns instance of classType

Commits:
v0.5.0...v0.6.0

v0.5.0

23 Jul 07:09
Compare
Choose a tag to compare

Highlights:

  • Added support for fixed arrays
  • Added ability to pass custom serialize/deserialize functions

Commits:

  • add fixed array serialization/deserialization (#27) ebb340c
  • call class serialize/deserialize methods (#20) 4d4bce3
  • Merge pull request #18 from near/repo-update a69361d
  • borsh repo updated in package.json 62c05ee

v0.4.0...v0.5.0

v0.4.0

15 Jun 05:51
Compare
Choose a tag to compare

writeU16, readU16, writeI256, readU256, writeU512, readU512 functions added
deserializeUnchecked function added for deserialization without the lengths check
writeU64 accepts number
writeI128 accepts number

0.3.1...0.4.0

v0.3.1

04 Dec 22:36
Compare
Choose a tag to compare
  • breaking changes: camelCase is used instead of a snake_case
  • bug fixes
  • baseEncode and baseDecode added