Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 2.44 KB

File metadata and controls

52 lines (30 loc) · 2.44 KB

Changelog

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

v0.3.0 — 2025-05-25

Added

  • Mutating methods SetOK and SetErr on result types (Result[Shape, OK, Err]).

Changed

  • Breaking: BoolResult is now represented as a uint8 rather than a bool. This fixes an issue with TinyGo where bool values are treated distinctly from uint8. See #344 for more information.

Fixed

  • #344: the memory representation of option and result now use uint8 instead of bool for the discriminator. LLVM optimizes bool values into a single bit, which breaks WIT variants where the associated types share memory.

v0.2.2 — 2025-03-16

Fixed

  • Updated error handling to address a build issue in TinyGo.

v0.2.1 — 2025-03-16

Fixed

  • Fixed cyclical dependency on package encoding/json when package cm is used in TinyGo package syscall. Files that import encoding/json will have a _json.go suffix and can be excluded when this package is copied into std.

v0.2.0 — 2025-03-15

Added

  • Initial support for Component Model async types stream, future, and error-context.
  • Initial support for JSON serialization of WIT list, enum, and record types.
  • Added cm.CaseUnmarshaler helper for text and JSON unmarshaling of enum and variant types.

Changed

  • Breaking: package cm: removed bool from Discriminant type constraint. It was not used by code generation.

v0.1.0 — 2024-12-14

Initial version, extracted into module go.bytecodealliance.org/cm.