wasmforge 0.1.0
wasmforge: ^0.1.0 copied to clipboard
WASM-native building blocks for Flutter Web: typed JS interop, capability detection, and Web Worker + SharedArrayBuffer compute with graceful fallbacks.
Changelog #
0.1.0 #
Initial release.
- Core interop layer: typed
package:web/dart:js_interopaccess, capability detection (isWeb,isCrossOriginIsolated,supportsWasmGc), and conditional-import fallbacks so the package is importable everywhere. - Concurrency module:
WorkerPoolfor off-main-thread compute in Web Workers (dart2wasm worker entrypoints, with a dart2js fallback path) andSharedBufferoverSharedArrayBuffer+Atomics, capability-gated with automatic message-passing fallback when cross-origin isolation is unavailable. - Public testing toolkit (
package:wasmforge/testing.dart): pure-Dart fakes usable in VM unit tests plus JS-interop mocks for browser tests.