github AssemblyScript/assemblyscript v0.17.0

latest releases: v0.26.7, v0.26.6, v0.26.5...
3 years ago

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

Don't miss a new assemblyscript release

NewReleases is sending notifications on new releases.