diff --git a/docs/MIGRATING.md b/docs/MIGRATING.md new file mode 100644 index 00000000..4c24cf5d --- /dev/null +++ b/docs/MIGRATING.md @@ -0,0 +1,5 @@ +# Migrating docs for callers of the wasmvm Go project + +## 1.x -> 2.0 + +- `VM.Create` was removed. Use `VM.StoreCode` instead. diff --git a/lib.go b/lib.go index e88714e4..3b1ef6fd 100644 --- a/lib.go +++ b/lib.go @@ -41,11 +41,6 @@ func (vm *VM) Cleanup() { api.ReleaseCache(vm.cache) } -// Deprecated: Renamed to StoreCode -func (vm *VM) Create(code WasmCode) (Checksum, error) { - return vm.StoreCode(code) -} - // StoreCode will compile the Wasm code, and store the resulting compiled module // as well as the original code. Both can be referenced later via Checksum. // This must be done one time for given code, after which it can be