github codama-idl/codama @codama/errors@1.11.0

Minor Changes

  • #1095 b418a9e Thanks @lorisleiva! - Add the CODAMA_ERROR__UNSUPPORTED_VERSION error code for Codama IDLs that predate the 1.0.0 specification. The CODAMA_ERROR__VERSION_MISMATCH message now points older versions at the @codama/upgrade package and newer versions at updating their Codama dependencies.

Patch Changes

  • #1094 abefbeb Thanks @lorisleiva! - Fix validateCodamaVersion to compare the document's version against the Codama spec version (CODAMA_VERSION) instead of the npm package version, which is an unrelated namespace and caused false mismatches whenever the two drifted apart. The function now accepts any string and narrows it to CodamaVersion on success, rejects unparsable versions, and no longer special-cases 0.x versions. The CODAMA_ERROR__VERSION_MISMATCH message is reworded accordingly.
  • Updated dependencies [fa4a453, 55b9ede, dabfe42]:
    • @codama/node-types@1.11.0

Don't miss a new codama release

NewReleases is sending notifications on new releases.