v0.14.0 (2025-02-14)
Breaking Changes:
- Removed
wasmedge.ValType
andwasmedge.RefType
const values, and introduce thewasmedge.ValType
struct.- Added the
wasmedge.NewValTypeI32()
API to replace thewasmedge.ValType_I32
const value. - Added the
wasmedge.NewValTypeI64()
API to replace thewasmedge.ValType_I64
const value. - Added the
wasmedge.NewValTypeF32()
API to replace thewasmedge.ValType_F32
const value. - Added the
wasmedge.NewValTypeF64()
API to replace thewasmedge.ValType_F64
const value. - Added the
wasmedge.NewValTypeV128()
API to replace thewasmedge.ValType_V128
const value. - Added the
wasmedge.NewValTypeFuncRef()
API to replace thewasmedge.ValType_FuncRef
const value. - Added the
wasmedge.NewValTypeExternRef()
API to replace thewasmedge.ValType_ExterunRef
const value. - Added the
(*wasmedge.ValType).IsEqual()
API to compare the equivalent of two value types. - Added the
(*wasmedge.ValType).IsI32()
API to specify the value type isi32
or not. - Added the
(*wasmedge.ValType).IsI64()
API to specify the value type isi64
or not. - Added the
(*wasmedge.ValType).IsF32()
API to specify the value type isf32
or not. - Added the
(*wasmedge.ValType).IsF64()
API to specify the value type isf64
or not. - Added the
(*wasmedge.ValType).IsV128()
API to specify the value type isv128
or not. - Added the
(*wasmedge.ValType).IsFuncRef()
API to specify the value type isfuncref
or not. - Added the
(*wasmedge.ValType).IsExternRef()
API to specify the value type isexternref
or not. - Added the
(*wasmedge.ValType).IsRef()
API to specify the value type is a reference type or not. - Added the
(*wasmedge.ValType).IsRefNull()
API to specify the value type is a nullable reference type or not.
- Added the
- Updated the supported WASM proposals.
- Added the
wasmedge.Proposal.GC
. - Added the
wasmedge.Proposal.RELAXED_SIMD
. - Added the
wasmedge.Proposal.COMPONENT_MODEL
.
- Added the
- Added the error return in
(*wasmedge.Global).SetValue()
API. - Applied the new
wasmedge.ValType
struct to all related APIs.wasmedge.NewFunctionType()
accepts the new[]*wasmedge.ValType
for parameters now.(*wasmedge.FunctionType).GetParameters()
returns the new[]*wasmedge.ValType
now.(*wasmedge.FunctionType).GetReturns()
returns the new[]*wasmedge.ValType
now.wasmedge.NewTableType()
accepts the new*wasmedge.ValType
instead ofwasmedge.RefType
for parameters now.(*wasmedge.TableType).GetRefType()
returns the new*wasmedge.ValType
now.wasmedge.NewGlobalType()
accepts the new*wasmedge.ValType
for parameters now.(*wasmedge.GlobalType).GetValType()
returns the new*wasmedge.ValType
now.
Features:
- Updated to the WasmEdge 0.14.0.
- Added the new
(*wasmedge.Compiler).CompileBuffer()
API for compiling WASM from buffer. - Added the tag type and tag instance for the exception-handling proposal.
- Added the
wasmedge.ExternType_Tag
const value. - Added the
wasmedge.TagType
struct for tag type. - Added the
(*wasmedge.TagType).GetFunctionType()
API. - Added the
wasmedge.Tag
struct for tag instance. - Added the
(*wasmedge.Tag).GetTagType()
API. - Added the
(*wasmedge.Module).FindTag()
API to retrieve exported tag instances from a module instance. - Added the
(*wasmedge.Module).ListTag()
API to list all exported tag instance names from a module instance.
- Added the