Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 05:22
c29a8ea

Install:

  • mise use github:moonrockz/smithy@0.2.0
  • moon add moonrockz/smithy-syntax@0.2.0

Wasm files:

  • smithy.wasm needs a host that supplies the __moonbit_fs_unstable imports and wasi_snapshot_preview1.fd_write. wasmtime alone fails with unknown import: __moonbit_fs_unstable::….
  • smithy-gc.wasm needs a host with WebAssembly GC that supplies the __moonbit_fs_unstable imports and spectest.print_char. wasmtime alone fails with unknown import: __moonbit_fs_unstable::….

Smithy now loads smithy.contracts#conditions and validates JMESPath syntax, modeled member references, function arguments, and boolean results during assembly. The new moonrockz/jmespath package exposes standalone parsing, an inspectable AST with source spans, JSON evaluation, and diagnostics with source locations. IDL/JSON conversion preserves contract expressions and documentation. Serialization does not evaluate contracts. Existing models without contract traits need no changes.

🚀 Features

🏗️ Build and CI

Full changelog: v0.1.1...v0.2.0