Skip to content

wasmer-sdk: v0.3.0

Compare
Choose a tag to compare
@Michael-F-Bryan Michael-F-Bryan released this 28 Nov 08:58
691c766

0.3.0 (2023-11-27)

⚠ BREAKING CHANGES

  • Removed the Container, Manifest, and Volume types
  • Functionality needing a Runtime will now use a lazily initialized global runtime if one wasn't provided
  • Renamed SpawnConfig and RunConfig to SpawnOptions and RunOptions.

Features

  • A Wasmer package now has a commands field which maps a Command's name to its instance (243d4b9)
  • A Wasmer package now has an entrypoint field with a runnable Command (243d4b9)
  • Added a Command.binary() method for accessing the binary run by a Command (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 a Directory 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 a DirectoryInit which will be used to instantiate a new Directory (e43ea8c)

Code Refactoring

  • Removed the Container, Manifest, and Volume types (e2ed292)
  • Renamed SpawnConfig and RunConfig to SpawnOptions and RunOptions. (e43ea8c)