@geut/chast

Unist compatible spec for changelogs and helpers to nodes creation

Usage no npm install needed!

<script type="module">
  import geutChast from 'https://cdn.skypack.dev/@geut/chast';
</script>

README

chast

Unist compatible spec for changelogs and helpers to nodes creation

Structure

interface Root <: Node {
  children: [Preface, Release*]
}
interface Preface <: Node {
  children: [Node]
}
interface Release <: Node {
  identifier: string,
  version: string,
  url: string?
  yanked: boolean?
  unreleased: boolean?
  children: [Action]
}
interface Action <: Node {
  name: string
  children: [Change*, Group*]
}
interface Group <: Node {
  name: string,
  children: [Change]
}
interface Change <: Node {
  children: [Node]
}