Skip to content

v2.9.1

Latest

Choose a tag to compare

@codama-releases codama-releases released this 20 Nov 10:59
c8e3940

Patch Changes

  • #335 72e8e07 Thanks @lorisleiva! - Escape and validate IDL values written into generated code. Docs escape comment terminators, e.g. src/**/*.ts, error messages are fully escaped within their template literals, and addresses are rendered as escaped string literals. Attributes rendered as they are, such as sizes, offsets, error codes, account flags and strategies, must hold a value of their type, or rendering throws CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE. Attributes given with another type, e.g. a size given as a string, now throw instead of being rendered as they are, and error codes must be non-negative integers.