Repository navigation
v0.1.0
-
WasmRuntime:- Added
WasmModuleFunctiontypedef to represent a WebAssembly-exported function with metadata including the Dart function and avarArgsflag. - Updated
WasmModule.getFunctionsignature to returnWasmModuleFunction<F>?instead of justF?.
- Added
-
WasmRunnerWasm:- Updated function invocation logic in
ApolloRunnerWasmto handleWasmModuleFunctionwithvarArgsflag. - Added special handling for functions with no arguments and functions expecting a single
Listargument.
- Updated function invocation logic in
-
wasm_runtime_generic.dart:- Updated
WasmModuleGeneric.getFunctionto returnnullasWasmModuleFunction<F>?.
- Updated
-
wasm_runtime_io.dart:- Updated
WasmModuleIO.getFunctionto return aWasmModuleFunctionwithvarArgs: true.
- Updated
-
wasm_runtime_dart_html.dart:- Deprecated
WasmRuntimeDartHTMLin favor ofWasmRuntimeWeb. - Updated
WasmModuleBrowser.getFunctionto return aWasmModuleFunctionwithvarArgs: true. - Updated
createWasmRuntimeto returnWasmRuntimeDartHTMLwith deprecation warning.
- Deprecated
-
wasm_runtime_web.dart:- New
WasmRuntimeWebimplementation usingdart:js_interopandwebpackage. - Added JS interop bindings for WebAssembly APIs using extension types.
- Implemented
WasmModuleBrowserwrapping_WasmInstancewith proper JS interop. getFunctionreturns a Dart function wrapping JS function calls with argument conversion andvarArgs: false.- Added utilities to convert JS BigInt to Dart
numorBigInt. - Updated
createWasmRuntimeto returnWasmRuntimeWeb. - Added extensions for JS function invocation and JSAny type checks and casts.
- New
-
pubspec.yaml:- Added dependency on
web: ^1.1.1.
- Added dependency on
-
Tests:
- Added new tests
operation3andoperation4verifying multi-parameter Dart functions compiled to Wasm and executed correctly.
- Added new tests