Releases: near/borsh-js
Releases · near/borsh-js
v2.0.0
v1.0.0
Highlights:
a complete rewrite of the library which includes multiple advantages over the current v0.7.0
:
- Vanilla JS implementation, does not rely on
Buffer
, for which it is compatible with a greater number of environments. - It can (de)serialize single values,
objects
and instances ofClasses
. Previously we were only able to (de)serialize specific instances of classes. - The new
Schema
is consistent across types, and a thoughtful validation of the Schema is in place. - Each
serialize/deserialize
relies on a singleSchema
, solving some longstanding problems with the previous "Indexing by Class" approach. - Thoughtfully tested across multiple scenarios.
- Now it's also support to run in smart contract environment with near-sdk-js!
What's Changed
- fix: add missing dependency by @chadoh in #50
- add build to ci and fix build by @ailisp in #58
- Major Update of Borsh by @gagdiez in #65
New Contributors
Full Changelog: v0.7.0...v1.0.0
v0.7.0
Highlights:
- Added support for serialization/deserialization of
map
s - TextDecoder does not rely on
global
anymore - redundant files are not published to
npm
Commits:
- build artifacts 3b9ceed
- pretty (#46) 8eeabaf
- Serialize and deserialize support for
Map
type. (#41) b80a6d4 - Change TextDecoder resolution to not rely on
global
(#40) 1eed6ae - build: do not add source and tests to npm package (#37) 261d9cd
- Merge pull request #35 from near/formating-fix 2bbd16e
- tests fixed 226b6b8
- test action tets (broken tests) 2f2f0eb
- prettier fixed 0ceaf1d
- pretty test 2 5aabc06
- formating test 7feefc5
- Formatting fix dca02da
- Add Prettier to keep code consistent. (#33) 9ed926b
v0.6.0
Highlights:
- added ability to specify custom Reader/Writer
- deserialize now returns instance of
classType
Commits:
v0.5.0...v0.6.0
v0.5.0
Highlights:
- Added support for fixed arrays
- Added ability to pass custom serialize/deserialize functions
Commits:
v0.4.0
writeU16
, readU16
, writeI256
, readU256
, writeU512
, readU512
functions added
deserializeUnchecked
function added for deserialization without the lengths check
writeU64
accepts number
writeI128
accepts number