0.7.0 (2024-08-06)
- Add atoms to manifests and use latest revision of webc crate (29e26f4)
- Add registry API and tests (12b00b7)
- Allow users to specify just their token while initializing the library + minor fixes (2b4211c)
- Allow users to specify metadata in various formats (a16acfa)
- Update wasmer dependencies (9f69d51)
- Use same
Wasmer
type as output of created packages, update tests (21c8ff8)
- Add more tests and remove spurious tracing messages (c3081da)
- address comments (ec087eb)
- Resolve a deadlock where the future returned by thread pool's sleep_now() method will never resolve when invoked from a syscall (4ce8a54)
- Use a global variable to signal which init function to use (0464d61)
- use env variables in tests (0fdd6ba)
- use git repository to patch
webc
(9b256b2) - Use single input for initalization function (0b5eab9)
- Use spaces instead of tabs in the js part of the code (ff5db26)
- with -> assert (591bdcb)
0.6.0 (2023-12-21)
- The
@wasmer/sdk
Runtime
has removed the limit on the maximum number of worker threads it is allowed to spawn. The correspondingpoolSize
option has been removed fromRuntimeOptions
.
- The
@wasmer/sdk
Runtime
has removed the limit on the maximum number of worker threads it is allowed to spawn. The correspondingpoolSize
option has been removed fromRuntimeOptions
. (d5da4ea)
0.5.1 (2023-12-15)
- Bumped the
virtual-fs
dependency so we get a non-buggyStaticFile
implementation (fixes #366) (47b4633) - Made sure users still get typings whenever they import a file from
dist/
(956d404) - Update the
OptionOptions
type definition to acceptUint8Array
asstdin
, rather thanArrayBuffer
(a1d4045)
0.5.0 (2023-12-13)
- Renamed
Wasmer.fromWebc()
toWasmer.fromFile()
- 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 atwasmer_js_bg.wasm
- This should improve page load times for end users by being more cache-friendly and not needing to download/parse a ~6MB
- 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 asdist/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)
- 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 thanLibrary
(d34bb7a)
0.4.1 (2023-11-30)
- Set the maximum logging level in release mode to DEBUG (1648a27)
0.4.0 (2023-11-30)
- Renamed
Wasmer.fromWebc()
toWasmer.fromFile()
- The
Output
you get fromawait instance.wait()
now containsstdoutUtf8
andstderrUtf8
fields with stdout/stderr lazily parsed as UTF-8 strings (61f3319)
- Resolved an issue where constructing a
Directory
with aDirectoryInit
containing a nested file would error out while creating the file's parent directory (f45f561) - Resolved an unconditional panic when passing a
DirectoryInit
toCommand.spawn()
orrunWasix()
'smount
argument (50df67d)
- Renamed
Wasmer.fromWebc()
toWasmer.fromFile()
(8bf6868)
0.3.0 (2023-11-27)
- Removed the
Container
,Manifest
, andVolume
types - Functionality needing a
Runtime
will now use a lazily initialized global runtime if one wasn't provided - Renamed
SpawnConfig
andRunConfig
toSpawnOptions
andRunOptions
.
- A
Wasmer
package now has acommands
field which maps aCommand
's name to its instance (243d4b9) - A
Wasmer
package now has anentrypoint
field with a runnableCommand
(243d4b9) - Added a
Command.binary()
method for accessing the binary run by aCommand
(243d4b9) - Added a
Wasmer.fromWebc()
constructor for loading a*.webc
file (4606724) - Functionality needing a
Runtime
will now use a lazily initialized global runtime if one wasn't provided (70a2083) - Introduced a
DirectoryInit
type that lets you initialize aDirectory
with a map from file paths to their contents (553ded5) - Rewrote the top-level
Wasmer
type to represent a package that has been loaded and is ready for execution (9f54cb5) - Users are now able to mount directories using either a existing
Directory
or aDirectoryInit
which will be used to instantiate a newDirectory
(e43ea8c)
- Removed the
Container
,Manifest
, andVolume
types (e2ed292) - Renamed
SpawnConfig
andRunConfig
toSpawnOptions
andRunOptions
. (e43ea8c)
0.2.0 (2023-11-24)
- Users can now mount a
Directory
(backed by an in-memory filesystem) when spawning WASIX instances (98e5d92)
- The logger will now proxy all messages to the main thread so output from Web Workers can be captured (dba73fd)