(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-changeset-fileprocedureParse a changeset file from disk Returns a <changeset> record or #f if parsing fails
parse-changeset-stringprocedureParse a changeset from a string (for testing)
parse-changeset-contentprocedureParse changeset content Returns (packages . description) or #f
parse-changeset-frontmatterprocedureParse changeset-style frontmatter Format: "package-name": bump-type Returns (packages . remaining-lines) or (#f . lines)
front-matter-delimiter?procedureCheck if string is a front matter delimiter (---)
parse-package-bump-lineprocedureParse a package bump line: "package-name": bump-type Returns <package-bump> or #f
find-last-colonprocedureFind the last colon in a string (to handle colons in package names)
parse-quoted-stringprocedureParse a quoted string, removing surrounding quotes Supports both "string" and unquoted strings
load-all-changesetsprocedureLoad all changesets from a directory Returns a list of <changeset> records
format-changesetprocedureFormat a changeset as a string for writing to disk
path-basename-without-extprocedureGet basename without extension