From f3903efa413282a2f97c1e2a945f9180eb7fcf36 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 10 Jan 2024 14:32:51 +0100 Subject: [PATCH 1/2] Remove VM.Create --- lib.go | 5 ----- 1 file changed, 5 deletions(-) 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 From a4e53ceb72617185b55c72ca5c67110e2e279c6c Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 10 Jan 2024 14:33:03 +0100 Subject: [PATCH 2/2] Start MIGRATING.md --- docs/MIGRATING.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/MIGRATING.md 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.