wasm_interop 2.0.1 wasm_interop: ^2.0.1 copied to clipboard
This package provides a Dart wrapper for WebAssembly JavaScript API
Changelog #
2.0.1 #
-
Documentation updates.
-
Fixed error objects not being thrown correctly.
2.0.0 #
-
Null-safety release.
-
Updated to the latest WebAssembly IDL:
-
Added interop support for 64-bit integer Globals.
-
Added support for Globals and Tables of
externref
type. -
Added a new
Memory.shared
constructor.
-
-
Breaking API changes:
-
Module.imports
andModule.exports
getters generate and return aList
of descriptors instead of anIterable
. -
ModuleImportDescriptor
andModuleExportDescriptor
no longer overridetoString()
. -
Instance.fromBytes
andInstance.fromBuffer
sync factories have been removed. -
Instance.functions
andInstance.globals
have static types ofMap<String, Function>
andMap<String, Global>
respectively. -
ExportedFunction
wrapper class has been removed. -
Memory
constructor now uses required named parameters. -
Table
no longer extendsListBase
. -
Default
Table()
constructor have been removed. -
Table.length
setter has been removed. Users should explicitly callTable.grow()
instead. -
Global.value
setter and getter have a static type ofObject?
.
-
-
The package adds
JsBigInt
extension onBigInt
class to enable interop with JavaScript BigInt values.
1.0.0-dev.1.0 #
-
Implemented
WebAssembly.Global
interface. -
Updated to the latest SDK.
1.0.0-dev.0.0 #
- Initial release.