package
Parse a changeset file's contents into a usable json object
npm install @changesets/parseGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 3 packages.
684.1 kB
Includes dependencies.
Parse a changeset from its written format to a data object.
import { parseChangesetFile } from "@changesets/parse";
const changeset = `---
"pkg-a": minor
"pkg-b": patch
---
A summary of the change`;
const parsedChangeset = parseChangesetFile(changeset);
// {
// "summary": "A summary of the change",
// "releases": [
// { "name": "pkg-a", "type": "minor" },
// { "name": "pkg-b", "type": "patch" }
// ]
// }Note that this does not include the changeset id, but it is normally given as the file name, which parse is not aware of.
Latest published Aug 11, 2026
latest
next
andarist
mateuszburzynski@gmail.com