Skip to content

Releases: Chia-Mine/clvm-js

v1.0.2

03 Aug 17:16
277a2c0
Compare
Choose a tag to compare

This version is compatible with 1a5cb17895d8707f784a85180bc97d3c6ebe71a0 of [email protected]

Fixed

  • Fixed an issue where op_pubkey_for_exp was missing.
  • Fixed an issue where arithmetic op of atoms larger than 32 bit integer did not work.

Added

  • Added bigint_to_bytes function in src/casts.ts
  • Added tests for Bytes-BigInt conversion.

v1.0.1

02 Aug 15:39
e6ccb30
Compare
Choose a tag to compare

This version is compatible with 1a5cb17895d8707f784a85180bc97d3c6ebe71a0 of [email protected]

Changed

  • Improved Stream::read performance by removing extra memory copy.

v1.0.0

01 Aug 13:19
4a072f0
Compare
Choose a tag to compare

This version is compatible with 1a5cb17895d8707f784a85180bc97d3c6ebe71a0 of [email protected]

Removed

  • Removed .dist folder from git.
    • This folder made it harder to check diffs between versions.

Added

  • Added GitHub Action
  • Added str(), repr() utility functions.
  • Added Bytes::subarray to get bytes data without additional memory allocation/copy.

Changed

  • Updated README.md
  • Changed method name Bytes::get_byte_at to Bytes::at (Breaking change).

Deprecated

  • Deprecated python specific type definition such as str, int. Use string, number instead.

v0.0.19

01 Aug 02:46
632d883
Compare
Choose a tag to compare

There are 2 breaking changes.

  • Changed OperatorDict arguments format.
    Past: OperatorDict(atom_op_function_map, quote_atom, apply_atom, unknown_op_handler)
    New: OperatorDict(atom_op_function_map, option)
    where option is {quote_atom: Bytes, apply_atom: Bytes, unknown_op_handler: typeof default_unknown_op}

  • When you initialize Bytes using constructor like new Byte(data), data is not copied but just stored and keeps reference of data, for performance enhancement.
    In javascript, byte copy by TypedArray constructor is not sufficiently fast.
    So I left user an option how to initialize Bytes instance. Data copy, or Store reference.
    If you want to copy data and cut reference apart, then please get Bytes instance by Bytes.from factory function.

Resolved a deep tree performance issue
Before this version, yarn test serialize_test --testNamePattern=test_very_deep_tree was really slow. It took around 80 seconds to complete test.
At this version, I've managed to improve test complete time to 79s -> 2s by pre-allocating buffer memory on Stream instance.

Changed

  • Changed OperatorDict arguments format.
  • When you initialize Bytes using constructor like new Byte(data), data is not copied but just stored and keeps reference of data, for performance enhancement.
  • Greatly improved overall performance by pre-allocating buffer memory on Stream instance.
  • Improved performance of Bytes::equal_to.
  • Changed parameter type of SExp::equal_to from CastableType to any
  • Replaced use of instanceof operator for non-native types.
  • Updated bls-signatures version to 0.2.1-beta.1
  • Improved Bytes::concat performance.
  • Reorganized dist folder

Fixed

  • Fixed an issue where SExp.to(<boolean>) did not work the same as python's clvm.
  • Fixed an issue where Bytes-SExp comparison like b('aaa').equal_to(SExp.null()) did not work.
  • Fixed an issue where OperatorDict did not throw Error when either quote or apply is not specified.

Added

  • Added list() function working similar to Python's list().
  • Added Bytes::repeat function.

v0.0.18

01 Aug 02:54
8bac48a
Compare
Choose a tag to compare

Changed

  • Fixed an issue where int_to_bytes did not work as expected if the argument is a negative number.
  • Changed Bytes::toString() to return python's bytes.__repr__ style string.

v0.0.17

01 Aug 02:54
3c7d6d9
Compare
Choose a tag to compare

Changed

  • Updated jscrypto version to 1.0.2

v0.0.16

01 Aug 02:55
440c050
Compare
Choose a tag to compare

Added

  • Added license information to README.md

Fixed

  • Fixed a bug in sexp_from_stream
  • Fixed incorrect use of int_to_bytes

v0.0.15

01 Aug 02:55
153b999
Compare
Choose a tag to compare

Fixed

  • Fixed a bug in pre_build.js

v0.0.14

01 Aug 02:56
Compare
Choose a tag to compare

Changed

  • Changed new line style for files in dist/ from windows-style(CR) to linux-style(LF).

Removed

  • Removed WordArray32 from possible argument of Bytes.from.

Added

  • Added Bytes.SHA256().