Asserts that an IDL version is compatible with the Codama spec version
supported by the installed packages — i.e. that both share the same major —
and narrows it to CodamaVersion accordingly.
The IDL version is compared against the generated CODAMA_VERSION
spec constant, not the npm package version: the two are unrelated
namespaces. Accepts any string since IDLs usually arrive as
untrusted JSON; unparsable versions are rejected.
Asserts that an IDL version is compatible with the Codama spec version supported by the installed packages — i.e. that both share the same major — and narrows it to
CodamaVersionaccordingly.The IDL version is compared against the generated
CODAMA_VERSIONspec constant, not the npm package version: the two are unrelated namespaces. Accepts any string since IDLs usually arrive as untrusted JSON; unparsable versions are rejected.