You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renamed Output.stdoutUtf8 and friends to make the more common use case shorter
Importing @wasmer/sdk will now use the smaller, non-embedded bundle by default
This should improve page load times for end users by being more cache-friendly and not needing to download/parse a ~6MB *.js file on startup
Users will need to explicitly import @wasmer/sdk/dist/WasmerSDKBundled.js if they want the old behaviour
Users may need to call setWorkerUrl() to point at wasmer_js_bg.wasm
Features
Renamed Output.stdoutUtf8 and friends to make the more common use case shorter (f94cc58)
The package now includes dist/WasmerSDKBundled.* files which embed the compiled Rust code as a base64 string as well as dist/WasmerSDK.* files which load the Rust code from the server as a *.wasm binary at runtime (75c4bf1)
Importing @wasmer/sdk will now use the smaller, non-embedded bundle by default (75c4bf1)
Bug Fixes
A warning will now be emitted when the @wasmer/sdk package is loaded outside of a Cross-Origin Isolated context (4dc5799)
Errors encountered when the scheduler handles a message are now logged at the error level so they get printed by default (c5decb5)
Mitigated a race condition in the thread pool by marking workers as "busy" when they are sent blocking tasks, rather than when the tasks are received (35292d8)
The UMD module now exposes @wasmer/sdk under the name, WasmerSDK, rather than Library (d34bb7a)