sigildocs

(sigil changes parse)

(sigil changes parse) - Changeset file parsing

Parses changeset files using the npm changesets format:


"package-name": minor "other-package": patch


Description of the change goes here.

Exports

Parse a changeset file from disk Returns a <changeset> record or #f if parsing fails

Parse a changeset from a string (for testing)

Parse changeset content Returns (packages . description) or #f

Parse changeset-style frontmatter Format: "package-name": bump-type Returns (packages . remaining-lines) or (#f . lines)

Check if string is a front matter delimiter (---)

Parse a package bump line: "package-name": bump-type Returns <package-bump> or #f

Find the last colon in a string (to handle colons in package names)

Parse a quoted string, removing surrounding quotes Supports both "string" and unquoted strings

Load all changesets from a directory Returns a list of <changeset> records

Format a changeset as a string for writing to disk

Get basename without extension