Skip to content

Releases: AssemblyScript/assemblyscript

v0.17.1

29 Oct 01:03
c7ba137
Compare
Choose a tag to compare

Bug fixes

  • Add package exports fallback for the CLI, dist files, etc. (#1527) (019515e)

Other

v0.17.0

26 Oct 01:02
cf20c6c
Compare
Choose a tag to compare

Breaking changes

  • Make Rtrace ESM by default, with UMD fallback (#1515) (2e249e4)
    Rtrace is now an ES module by default as well.
  • Generalize runtime (#1503) (8c97612)
    The __alloc family of built-ins has been split, now being named __new. __renew, __newString, __newArray etc. when dealing with managed objects. Furthermore, internal memory layouts of managed objects have changed. As a result, the new heap.alloc/realloc/free APIs now allow working with unmanaged heap memory more naturally and do not imply a managed object header anymore, more closely resembling malloc/realloc/free in C.
  • Make loader ESM by default, with UMD fallback (#1513) (ff80a4e)
    The loader is now an ES module by default so it works out of the box on the web. Users of older node.js versions may have to switch to require("@assemblyscript/loader/umd").
  • Wrap RHS of SMI shifts to maximum size of type in bits (#1511) (9b57abd)
    When shifting a small integer value of type i8/u8 or i16/u16, only the 3 respectively 4 least significant bits of the RHS value affect the result, analogous to the result of an i32.shl only being affected by the 5 least significant bits of the RHS value. Example: someI8 << 8 previously produced the value 0, but now produces someI8 due to masking the RHS as 8 & 7 = 0 (3 bits).

Bug fixes

  • Use explicit cast in Usize/Isize#toString (#1517) (bee3b73)
  • Fix publishing / update dependencies (#1516) (32d10b4)
  • Keep recompiling when unifying local flags in loops (a0a9da7)

Other

v0.16.1

17 Oct 00:58
dad5add
Compare
Choose a tag to compare

0.16.1 (2020-10-17)

Bug Fixes

  • Fix conflicting imports type definition in loader (#1508) (dad5add)

v0.16.0

16 Oct 00:58
81fda4c
Compare
Choose a tag to compare

0.16.0 (2020-10-16)

Bug Fixes

  • Small integer rotl/rotr should use temp variables (81fda4c)

  • Refactor binary expression compilation to be reusable in builtins (#1489) (a4dc45e), closes #1489

BREAKING CHANGES

  • The compiler's convertExpression does no longer take a wrap argument.

v0.15.2

13 Oct 00:56
b4ca3f9
Compare
Choose a tag to compare

0.15.2 (2020-10-13)

Bug Fixes

  • Fix rotl/rotr builtins for small integers (#1494) (041d35b)

v0.15.1

09 Oct 00:54
a373d93
Compare
Choose a tag to compare

0.15.1 (2020-10-09)

Bug Fixes

v0.15.0

07 Oct 00:54
97dcab6
Compare
Choose a tag to compare

0.15.0 (2020-10-07)

BREAKING CHANGES

  • RTrace is now a class and the onrealloc callback has been split into onresize and onmove.

v0.14.13

06 Oct 00:54
3223f76
Compare
Choose a tag to compare

0.14.13 (2020-10-06)

Features

  • Add bultins: i32/i64/f32/f64.add/sub/mul (#1484) (3223f76)

v0.14.12

28 Sep 00:52
125865a
Compare
Choose a tag to compare

0.14.12 (2020-09-28)

Features

  • loader: Use TextDecoder for large strings (#1471) (125865a)

v0.14.11

20 Sep 00:51
9f38cc4
Compare
Choose a tag to compare

0.14.11 (2020-09-20)

Features

  • Update reference types support to latest Binaryen (#1465) (9f38cc4)