Patch Changes
-
#1090
fa4a453Thanks @lorisleiva! - Update the generated node types and constructors to@codama/spec@1.9.1. Generated docblocks now carry the enriched spec documentation (strategy walkthroughs with buffer diagrams for the offset type nodes, serialisation caveats, and worked examples), theCodamaVersiontype moves from'1.8.0'to'1.9.1', and new documents created viarootNode()are stamped with version1.9.1. -
#1093
55b9edeThanks @lorisleiva! - Widen theCodamaVersiontype from the exact pinned literal ('1.9.1') to a major-pinned template literal (1.${number}.${number}), so any document of the current spec major type-checks as aRootNoderather than only documents carrying the exact pinned version. Add agetCodamaVersionMajor(version)helper to@codama/nodesthat defensively extracts the major from an arbitrary version string, returningnullwhen it cannot be parsed. -
#1099
dabfe42Thanks @lorisleiva! - Bump the generatedCODAMA_VERSIONto 1.9.2 and refresh the generated documentation from the latest spec.