Releases: AssemblyScript/assemblyscript
Releases · AssemblyScript/assemblyscript
v0.13.0
0.13.0 (2020-07-01)
BREAKING CHANGES
- Instance fields not definitely assigned within the constructor now yield an error, unless the field's name is annotated with a trailing
!
(checked at runtime), is of a nullable or is of a value type (initialized to zero). Fields of non-nullable reference types must be assigned beforethis
is either implicitly or explicitly returned from the constructor, passed to another function or another instance method is called onthis
. Overall the behavior is similar to, but not exactly the same as--strictPropertyInitialization
in TypeScript.
v0.12.5
v0.12.4
v0.12.3
v0.12.2
v0.12.1
v0.12.0
0.12.0 (2020-06-15)
Bug Fixes
- Fix version string in SDK dist files (#1336) (e5bfe15)
- Prevent stack overflow in portable fromCharCodes/CodePoints (#1340) (6dce0f2)
Code Refactoring
BREAKING CHANGES
- The internal
dtoa/itoa_stream
helpers (unsafeNumber#toString
) inutil/number
have been renamed todtoa/itoa_buffered
, don't take a redundant offset argument anymore, and the underlying core implementation helpers are no longer exposed. Usage now is:dtoa_buffered(buffer + byteOffset, value)
v0.11.0
0.11.0 (2020-06-14)
Code Refactoring
Features
BREAKING CHANGES
- The values of
ASC_TARGET
have been flipped, with JS (portable) now being0
, WASM32 being1
andWASM64
being2
. - The result of a
**
binary operation is now the common denominator integer if both operands are integers. Previously, the result was a float as if callingMath/f.pow
.
v0.10.2
v0.10.1
New features
- Added an experimental GC finalization hook to perform custom cleanup on free
- Implemented
radix
argument onNumber#toString
- Allow disabling arbitrary globals with
--use TheGlobal=
- Emit a warning when exporting a generic element with no concrete instances
- Implemented portable variants of
TypedArray.wrap
- Use node-like resolution instead of relative paths in
asinit
-generated tsconfigs, if possible - Updated Binaryen to latest incl. support for
f32x4/f64x2.ceil/floor/trunc/nearest
Relevant fixes
- Fixed
Array#flat
definitions - Improved error messages on unusual usages of
void
,null
andundefined
types - Fixed a resolver issue when calling function expressions
- Disabled aggressive ARC optimizations due to a pending issue
- Fixed a compiler issue when referencing variables in their own initializer
- Fixed an assertion on accesses to variables that failed to compile earlier
- Fixed Wasm module exports reference in
asinit
-generated index file