Skip to content

WasmEdge Go v0.14.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 14 Feb 08:39

v0.14.0 (2025-02-14)

Breaking Changes:

  • Removed wasmedge.ValType and wasmedge.RefType const values, and introduce the wasmedge.ValType struct.
    • Added the wasmedge.NewValTypeI32() API to replace the wasmedge.ValType_I32 const value.
    • Added the wasmedge.NewValTypeI64() API to replace the wasmedge.ValType_I64 const value.
    • Added the wasmedge.NewValTypeF32() API to replace the wasmedge.ValType_F32 const value.
    • Added the wasmedge.NewValTypeF64() API to replace the wasmedge.ValType_F64 const value.
    • Added the wasmedge.NewValTypeV128() API to replace the wasmedge.ValType_V128 const value.
    • Added the wasmedge.NewValTypeFuncRef() API to replace the wasmedge.ValType_FuncRef const value.
    • Added the wasmedge.NewValTypeExternRef() API to replace the wasmedge.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 is i32 or not.
    • Added the (*wasmedge.ValType).IsI64() API to specify the value type is i64 or not.
    • Added the (*wasmedge.ValType).IsF32() API to specify the value type is f32 or not.
    • Added the (*wasmedge.ValType).IsF64() API to specify the value type is f64 or not.
    • Added the (*wasmedge.ValType).IsV128() API to specify the value type is v128 or not.
    • Added the (*wasmedge.ValType).IsFuncRef() API to specify the value type is funcref or not.
    • Added the (*wasmedge.ValType).IsExternRef() API to specify the value type is externref 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.
  • Updated the supported WASM proposals.
    • Added the wasmedge.Proposal.GC.
    • Added the wasmedge.Proposal.RELAXED_SIMD.
    • Added the wasmedge.Proposal.COMPONENT_MODEL.
  • 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 of wasmedge.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.